tazpanel diff index.cgi @ rev 411
boot.cgi: display log files in tabs
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jan 18 18:59:01 2015 +0100 (2015-01-18) |
parents | d1dbbf42b25e |
children | 299f204b8f1f |
line diff
1.1 --- a/index.cgi Wed Feb 19 09:36:22 2014 +0000 1.2 +++ b/index.cgi Sun Jan 18 18:59:01 2015 +0100 1.3 @@ -34,7 +34,7 @@ 1.4 rm -rf $tmp ;; 1.5 button) 1.6 cat <<EOT 1.7 - <a class="button" href='$SCRIPT_NAME?file=$1&action=diff'> 1.8 + <a class="button" href="?file=$1&action=diff"> 1.9 <img src="$IMAGES/help.png" />$(gettext 'Differences')</a> 1.10 EOT 1.11 esac 1.12 @@ -88,10 +88,10 @@ 1.13 1.14 if [ "$(GET action)" == "edit" ]; then 1.15 cat <<EOT 1.16 -<form method="post" action="$SCRIPT_NAME?file=$file"> 1.17 +<form method="post" action="?file=$file"> 1.18 <img src="$IMAGES/edit.png" /> 1.19 <input type="submit" value="$(gettext 'Save')"> 1.20 - <a class="button" href='$SCRIPT_NAME?file=$file&action=diff'> 1.21 + <a class="button" href="?file=$file&action=diff"> 1.22 <img src="$IMAGES/help.png" />$(gettext 'Differences')</a> 1.23 <textarea name="content" rows="30" style="width: 100%;"> 1.24 $(cat $file | htmlize) 1.25 @@ -103,7 +103,7 @@ 1.26 elif [ "$(GET action)" == "setvar" ]; then 1.27 data="$(. $(GET file) ;eval echo \$$(GET var))" 1.28 cat <<EOT 1.29 -<form method="post" action="$SCRIPT_NAME?file=$file"> 1.30 +<form method="post" action="?file=$file"> 1.31 <img src="$IMAGES/edit.png" /> 1.32 <input type="submit" value="$(gettext 'Save')"> 1.33 $(GET var) : 1.34 @@ -128,7 +128,7 @@ 1.35 fi 1.36 cat <<EOT 1.37 <div id="actions"> 1.38 - <a class="button" href='$SCRIPT_NAME?file=$file&action=edit'> 1.39 + <a class="button" href="?file=$file&action=edit"> 1.40 <img src="$IMAGES/edit.png" />$(gettext 'Edit')</a> 1.41 EOT 1.42 file_is_modified $file button 1.43 @@ -157,7 +157,7 @@ 1.44 xhtml_header 1.45 cat << EOT 1.46 <section> 1.47 -<form method="get" action="$SCRIPT_NAME"> 1.48 +<form method="get" action=""> 1.49 <div class="box"> 1.50 root@$(hostname):~# <input autofocus type="text" name="cmd" style="width: 80%;" /> 1.51 </div> 1.52 @@ -348,7 +348,7 @@ 1.53 $(ok_status_t) 1.54 </tbody> 1.55 </table> 1.56 -<p><a class="button" href="$SCRIPT_NAME?file=$output"> 1.57 +<p><a class="button" href="?file=$output"> 1.58 <img src="/styles/default/images/browser.png" /> 1.59 $(gettext 'View report')</a> 1.60 $(msg tip "$(gettext 'This report can be attached with a bug report on:') 1.61 @@ -371,11 +371,11 @@ 1.62 <p>$(gettext 'SliTaz administration and configuration Panel')<p> 1.63 </div> 1.64 <div id="actions"> 1.65 - <a class="button" href="$SCRIPT_NAME?terminal"> 1.66 + <a class="button" href="?terminal"> 1.67 <img src="$IMAGES/terminal.png" />$(gettext 'Terminal')</a> 1.68 - <a class="button" href="$SCRIPT_NAME?top"> 1.69 + <a class="button" href="?top"> 1.70 <img src="$IMAGES/monitor.png" />$(gettext 'Process activity')</a> 1.71 - <a class="button" href="$SCRIPT_NAME?report"> 1.72 + <a class="button" href="?report"> 1.73 <img src="$IMAGES/text.png" />$(gettext 'Create a report')</a> 1.74 </div> 1.75