Tazpanel - pkgs.cgi

[ Thread Index | Date Index | More lists.tuxfamily.org/slitaz Archives ]


Hi,
i've cloned tazpanel:
hg clone http://hg.slitaz.org/tazpanel

but still installing packages didn't work; so i've simply used $(GET)
and everything should work, or not?

cmd=$(GET do)
pkg=$(get pkg)

DIFF output
--- pkgs.cgi
+++ taz2/tazpanel/pkgs.cgi
@@ -462,8 +462,8 @@
 	 (t	opt=""
 		pkgs=""
 		cmdline=`echo ${QUERY_STRING#do=} | sed s'/&/ /g'`		
-		cmd=$(GET do)		
-		pkgs=$(GET pkg)
+		cmd=`echo ${cmdline} | awk '{print $1}'`		
+		pkgs=`echo $cmdline | sed -e s'/+/ /g' -e s'/pkg=//g' -e s/$cmd//`
 		cmd=`echo $cmd | tr [A-Z] [a-z]`		
 		case $cmd in
 			install)


Daniele

---
SliTaz GNU/Linux Mailing list - http://www.slitaz.org/


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/