tazbug rev 82

web: plugins dont need to source httphelper.sh
author Christophe Lincoln <pankso@slitaz.org>
date Mon Feb 17 23:16:08 2014 +0100 (2014-02-17)
parents 065aa0214da6
children f9f34e345c7e
files web/plugins/dashboard/dashboard.cgi web/plugins/pkgs/pkgs.cgi web/plugins/skel/skel.cgi web/plugins/users/users.cgi
line diff
     1.1 --- a/web/plugins/dashboard/dashboard.cgi	Mon Feb 17 22:58:22 2014 +0100
     1.2 +++ b/web/plugins/dashboard/dashboard.cgi	Mon Feb 17 23:16:08 2014 +0100
     1.3 @@ -2,10 +2,8 @@
     1.4  #
     1.5  # TazBug Plugin - Dashboard
     1.6  #
     1.7 -. /usr/lib/slitaz/httphelper
     1.8  
     1.9 -case " $(GET) " in
    1.10 -	*\ dashboard\ *)
    1.11 +if [ "$(GET dashboard)" ]; then
    1.12  		d="Dashboard"
    1.13  		users=$(ls -1 $PEOPLE | wc -l)
    1.14  		bugs=$(ls -1 $bugdir | wc -l)
    1.15 @@ -61,5 +59,5 @@
    1.16  			echo "<a href='?$p'>$PLUGIN</a> - $SHORT_DESC"
    1.17  		done
    1.18  		echo '</pre>'
    1.19 -		html_footer && exit 0 ;;
    1.20 -esac
    1.21 +		html_footer && exit 0
    1.22 +fi
     2.1 --- a/web/plugins/pkgs/pkgs.cgi	Mon Feb 17 22:58:22 2014 +0100
     2.2 +++ b/web/plugins/pkgs/pkgs.cgi	Mon Feb 17 23:16:08 2014 +0100
     2.3 @@ -1,6 +1,6 @@
     2.4  #!/bin/sh
     2.5  #
     2.6 -# TinyCM/TazBug Plugin - Skeleton
     2.7 +# TazBug Plugin - Skeleton
     2.8  #
     2.9  
    2.10  if [ "$(GET packages)" ] || [ "$(GET pkg)" ]; then
     3.1 --- a/web/plugins/skel/skel.cgi	Mon Feb 17 22:58:22 2014 +0100
     3.2 +++ b/web/plugins/skel/skel.cgi	Mon Feb 17 23:16:08 2014 +0100
     3.3 @@ -2,7 +2,6 @@
     3.4  #
     3.5  # TinyCM/TazBug Plugin - Skeleton
     3.6  #
     3.7 -. /usr/lib/slitaz/httphelper
     3.8  
     3.9  if [ "$(GET skel)" ]; then
    3.10  	d="Skel"
     4.1 --- a/web/plugins/users/users.cgi	Mon Feb 17 22:58:22 2014 +0100
     4.2 +++ b/web/plugins/users/users.cgi	Mon Feb 17 23:16:08 2014 +0100
     4.3 @@ -2,7 +2,6 @@
     4.4  #
     4.5  # TinyCM/TazBug Plugin - Users Admin
     4.6  #
     4.7 -. /usr/lib/slitaz/httphelper
     4.8  
     4.9  case " $(GET) " in
    4.10  	*\ users\ *)