tazpanel diff network.cgi @ rev 136
network.cgi: pscan is too slow, needs its own page
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Apr 16 14:40:49 2011 +0200 (2011-04-16) |
parents | 774a188359a2 |
children | 6aa939753084 |
line diff
1.1 --- a/network.cgi Sat Apr 16 13:46:45 2011 +0200 1.2 +++ b/network.cgi Sat Apr 16 14:40:49 2011 +0200 1.3 @@ -91,6 +91,19 @@ 1.4 # 1.5 1.6 case " $(GET) " in 1.7 + *\ scan\ *) 1.8 + # Scan open ports 1.9 + scan=$(GET scan) 1.10 + xhtml_header 1.11 + LOADING_MSG=$(gettext "Scanning open ports...") 1.12 + loading_msg 1.13 + cat << EOT 1.14 +<h2>`gettext "Port scanning for"` $scan</h2> 1.15 +<pre> 1.16 +$(pscan -b $scan) 1.17 +</pre> 1.18 +EOT 1.19 + ;; 1.20 *\ eth\ *) 1.21 # Wired connections settings 1.22 xhtml_header 1.23 @@ -115,7 +128,7 @@ 1.24 fi 1.25 . /etc/network.conf 1.26 cat << EOT 1.27 -<h2>`gettext "Ethernet connection`</h2> 1.28 +<h2>`gettext "Ethernet connection"`</h2> 1.29 1.30 <h3>$(gettext "Setup a static IP")</h3> 1.31 <form method="get" action="$SCRIPT_NAME"> 1.32 @@ -171,7 +184,7 @@ 1.33 LOADING_MSG=$(gettext "Scanning wireless interface...") 1.34 loading_msg 1.35 cat << EOT 1.36 -<h2>`gettext "Wireless connection`</h2> 1.37 +<h2>`gettext "Wireless connection"`</h2> 1.38 <div id="actions"> 1.39 <a class="button" href="$SCRIPT_NAME?wifi&start-wifi=start-wifi"> 1.40 <img src="$IMAGES/start.png" />$(gettext "Start")</a> 1.41 @@ -205,9 +218,9 @@ 1.42 xhtml_header 1.43 hostname=$(cat /etc/hostname) 1.44 cat << EOT 1.45 -<h2>`gettext "Networking`</h2> 1.46 +<h2>`gettext "Networking"`</h2> 1.47 <p> 1.48 - `gettext "Manage network connections and services` 1.49 + `gettext "Manage network connections and services"` 1.50 </p> 1.51 <div id="actions"> 1.52 <div class="float-left"> 1.53 @@ -271,12 +284,6 @@ 1.54 <pre> 1.55 $(netstat -anp 2> /dev/null | sed '/UNIX domain sockets/,$d') 1.56 </pre> 1.57 - 1.58 -<a name="scan"></a> 1.59 -<h3>`gettext "Local ports scan"`</h3> 1.60 -<pre> 1.61 -$(pscan -b localhost) 1.62 -</pre> 1.63 EOT 1.64 ;; 1.65 esac