tazpanel rev 98
network.cgi: Start improving it and adding features, also tiny fix to pkgs.cgo for clean-cache
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu Apr 14 20:39:50 2011 +0200 (2011-04-14) |
parents | 3eb6d92c32f1 |
children | 1f6667794d15 |
files | network.cgi pkgs.cgi |
line diff
1.1 --- a/network.cgi Thu Apr 14 20:36:07 2011 +0200 1.2 +++ b/network.cgi Thu Apr 14 20:39:50 2011 +0200 1.3 @@ -49,12 +49,19 @@ 1.4 *\ wifi\ *) 1.5 # Wireless connections settings 1.6 xhtml_header 1.7 - 1.8 cat << EOT 1.9 <h2>`gettext "Wireless connection`</h2> 1.10 + 1.11 +<h3>$(gettext "Configuration file")</h3> 1.12 +<p> 1.13 +$(gettext "These values are the wifi settings in the main 1.14 +/etc/network.conf configuration file") 1.15 +</p> 1.16 <pre> 1.17 -`grep ^WIFI_ /etc/network.conf` 1.18 +$(grep ^WIFI_ /etc/network.conf | syntax_highlighter conf) 1.19 </pre> 1.20 +<a class="button" href="index.cgi?file=/etc/network.conf&action=edit"> 1.21 + <img src="$IMAGES/edit.png" />$(gettext "Manual Edit")</a> 1.22 EOT 1.23 ;; 1.24 *)
2.1 --- a/pkgs.cgi Thu Apr 14 20:36:07 2011 +0200 2.2 +++ b/pkgs.cgi Thu Apr 14 20:39:50 2011 +0200 2.3 @@ -577,7 +577,7 @@ 2.4 <form method="get" action="$SCRIPT_NAME"> 2.5 <p> 2.6 `gettext "Packages in the cache:"` $cache_files ($cache_size) 2.7 - <input type="hidden" name="config" value="clean" /> 2.8 + <input type="hidden" name="admin" value="clean" /> 2.9 <input type="submit" value="Clean" /> 2.10 </p> 2.11 </form>