diff options
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/status_wireless.php | 91 | ||||
-rw-r--r-- | usr/local/www/system_certmanager.php | 2 | ||||
-rw-r--r-- | usr/local/www/system_usermanager.php | 2 | ||||
-rw-r--r-- | usr/local/www/widgets/widgets/system_information.widget.php | 4 |
4 files changed, 51 insertions, 48 deletions
diff --git a/usr/local/www/status_wireless.php b/usr/local/www/status_wireless.php index cc04bb3..d8d076a 100755 --- a/usr/local/www/status_wireless.php +++ b/usr/local/www/status_wireless.php @@ -3,17 +3,17 @@ status_wireless.php Copyright (C) 2004 Scott Ullrich All rights reserved. - + Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - + 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - + 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - + THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE @@ -87,25 +87,24 @@ display_top_tabs($tab_array); ?> </td></tr> <tr><td> -<div id="mainarea"> -<table class="tabcont" colspan="3" cellpadding="3" width="100%"> +<div id="mainarea" class="tabcont"> +<input type="hidden" name="if" id="if" value="<?php echo $if; ?>"> +<b><input type="submit" name="rescanwifi" id="rescanwifi" value="Rescan"></b><br/><br/> +<b><?php echo gettext("Nearby access points or ad-hoc peers"); ?></b> +<table class="tabcont sortable" colspan="3" cellpadding="3" width="100%"> + <thead> + <tr bgcolor='#990000'> + <td><b><font color='#ffffff'>SSID</font></b></td> + <td><b><font color='#ffffff'>BSSID</font></b></td> + <td><b><font color='#ffffff'>CHAN</font></b></td> + <td><b><font color='#ffffff'>RATE</font></b></td> + <td><b><font color='#ffffff'>RSSI</font></b></td> + <td><b><font color='#ffffff'>INT</font></b></td> + <td><b><font color='#ffffff'>CAPS</font></b></td> + </tr> + </thead> + <tbody> <?php - - /* table header */ - print "<input type=\"hidden\" name=\"if\" id=\"if\" value=\"{$if}\">\n"; - print "<tr><td colspan=7><b><input type=\"submit\" name=\"rescanwifi\" id=\"rescanwifi\" value=\"Rescan\"><br/></td></tr>\n"; - print "<tr><td colspan=7><b>" . gettext("Nearby access points or ad-hoc peers") . ".<br/></td></tr>\n"; - print "\n<tr>"; - print "<tr bgcolor='#990000'>"; - print "<td><b><font color='#ffffff'>SSID</td>"; - print "<td><b><font color='#ffffff'>BSSID</td>"; - print "<td><b><font color='#ffffff'>CHAN</td>"; - print "<td><b><font color='#ffffff'>RATE</td>"; - print "<td><b><font color='#ffffff'>RSSI</td>"; - print "<td><b><font color='#ffffff'>INT</td>"; - print "<td><b><font color='#ffffff'>CAPS</td>"; - print "</tr>\n\n"; - exec("/sbin/ifconfig {$rwlif} list scan 2>&1", $states, $ret); /* Skip Header */ array_shift($states); @@ -135,25 +134,28 @@ display_top_tabs($tab_array); print "<td>{$caps}</td>"; print "</tr>\n"; } +?> + </tbody> +</table> +<b><?php echo gettext("Associated or ad-hoc peers"); ?></b><br/> +<table class="tabcont sortable" colspan="3" cellpadding="3" width="100%"> + <thead> + <tr bgcolor='#990000'> + <td><b><font color='#ffffff'>ADDR</font></b></td> + <td><b><font color='#ffffff'>AID</font></b></td> + <td><b><font color='#ffffff'>CHAN</font></b></td> + <td><b><font color='#ffffff'>RATE</font></b></td> + <td><b><font color='#ffffff'>RSSI</font></b></td> + <td><b><font color='#ffffff'>IDLE</font></b></td> + <td><b><font color='#ffffff'>TXSEQ</font></b></td> + <td><b><font color='#ffffff'>RXSEQ</font></b></td> + <td><b><font color='#ffffff'>CAPS</font></b></td> + <td><b><font color='#ffffff'>ERP</font></b></td> + </tr> + </thead> + <tbody> - print "</table><table class=\"tabcont\" colspan=\"3\" cellpadding=\"3\" width=\"100%\">"; - - /* table header */ - print "\n<tr>"; - print "<tr><td colspan=7><b>" . gettext("Associated or ad-hoc peers") . "<br/></td></tr>\n"; - print "<tr bgcolor='#990000'>"; - print "<td><b><font color='#ffffff'>ADDR</td>"; - print "<td><b><font color='#ffffff'>AID</td>"; - print "<td><b><font color='#ffffff'>CHAN</td>"; - print "<td><b><font color='#ffffff'>RATE</td>"; - print "<td><b><font color='#ffffff'>RSSI</td>"; - print "<td><b><font color='#ffffff'>IDLE</td>"; - print "<td><b><font color='#ffffff'>TXSEQ</td>"; - print "<td><b><font color='#ffffff'>RXSEQ</td>"; - print "<td><b><font color='#ffffff'>CAPS</td>"; - print "<td><b><font color='#ffffff'>ERP</td>"; - print "</tr>\n\n"; - +<?php $states = array(); exec("/sbin/ifconfig {$rwlif} list sta 2>&1", $states, $ret); array_shift($states); @@ -176,14 +178,15 @@ display_top_tabs($tab_array); print "</tr>\n"; } -/* XXX: what stats to we get for adhoc mode? */ +/* XXX: what stats to we get for adhoc mode? */ ?> + </tbody> </table> </div><br> - <b>Flags:</b> A = authorized, E = Extended Rate (802.11g), P = Power save mode<br> - <b>Capabilities:</b> E = ESS (infrastructure mode), I = IBSS (ad-hoc mode), P = privacy (WEP/TKIP/AES), - S = Short preamble, s = Short slot time + <b>Flags:</b> A = authorized, E = Extended Rate (802.11g), P = Power save mode<br> + <b>Capabilities:</b> E = ESS (infrastructure mode), I = IBSS (ad-hoc mode), P = privacy (WEP/TKIP/AES), + S = Short preamble, s = Short slot time </td></tr> </table> diff --git a/usr/local/www/system_certmanager.php b/usr/local/www/system_certmanager.php index 06a7a59..5820dd1 100644 --- a/usr/local/www/system_certmanager.php +++ b/usr/local/www/system_certmanager.php @@ -56,7 +56,7 @@ $pgtitle = array(gettext("System"), gettext("Certificate Manager")); $userid = $_GET['userid']; if (isset($_POST['userid'])) $userid = $_POST['userid']; -if ($userid) { +if (is_numeric($userid)) { $cert_methods["existing"] = gettext("Choose an existing certificate"); if (!is_array($config['system']['user'])) $config['system']['user'] = array(); diff --git a/usr/local/www/system_usermanager.php b/usr/local/www/system_usermanager.php index ea26726..07a0241 100644 --- a/usr/local/www/system_usermanager.php +++ b/usr/local/www/system_usermanager.php @@ -566,7 +566,7 @@ function sshkeyClicked(obj) { </td> </tr> - <?php if ($pconfig['uid']): ?> + <?php if (isset($pconfig['uid'])): ?> <tr> <td width="22%" valign="top" class="vncell"><?=gettext("Effective Privileges");?></td> diff --git a/usr/local/www/widgets/widgets/system_information.widget.php b/usr/local/www/widgets/widgets/system_information.widget.php index 757e5c8..7dab2cc 100644 --- a/usr/local/www/widgets/widgets/system_information.widget.php +++ b/usr/local/www/widgets/widgets/system_information.widget.php @@ -157,7 +157,7 @@ $curcfg = $config['system']['firmware']; <?php endif; ?> <tr> <td width="25%" class="vncellt">Uptime</td> - <td width="75%" class="listr"><input style="border: 0px solid white;" size="30" name="uptime" id="uptime" value="<?= htmlspecialchars(get_uptime()); ?>" /></td> + <td width="75%" class="listr"><input style="border: 0px solid white;" size="50" name="uptime" id="uptime" value="<?= htmlspecialchars(get_uptime()); ?>" /></td> </tr> <tr> <td width="25%" class="vncellt"><?=gettext("Current date/time");?></td> @@ -286,4 +286,4 @@ $curcfg = $config['system']['firmware']; jQuery('#uname').html("<?php echo php_uname("a"); ?>"); } setTimeout('getstatus()', 4000); -</script>
\ No newline at end of file +</script> |