tazinst rev 22 3.93
installer.cgi: add menu handler
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jan 06 00:24:26 2014 +0100 (2014-01-06) |
parents | cd2fbb482436 |
children | 110f55033cf0 |
files | installer.cgi |
line diff
1.1 --- a/installer.cgi Sat Jan 04 14:04:17 2014 +0000 1.2 +++ b/installer.cgi Mon Jan 06 00:24:26 2014 +0100 1.3 @@ -30,6 +30,22 @@ 1.4 # tazinst setup file 1.5 INSTFILE=/root/tazinst.conf 1.6 1.7 +#------ 1.8 +# menu 1.9 +#------ 1.10 +case "$1" in 1.11 +menu) [ "$REMOTE_USER" == "root" ] && cat << EOT 1.12 +<li><a href="/installer.cgi">$(gettext 'Install')</a> 1.13 + <ul> 1.14 + <li><a href="/installer.cgi?page=menu_install"><img 1.15 + src="/styles/default/images/tux.png" />$(gettext 'Install SliTaz')</a></li> 1.16 + <li><a href="/installer.cgi?page=menu_upgrade"><img 1.17 + src="/styles/default/images/recharge.png" />$(gettext 'Upgrade system')</a></li> 1.18 + </ul> 1.19 +</li> 1.20 +EOT 1.21 + exit 1.22 +esac 1.23 1.24 #----------- 1.25 # home page