1 |
6ba1c65f
|
Scott Ullrich
|
<?php
|
2 |
|
|
/* $Id$ */
|
3 |
|
|
/*
|
4 |
5f2e2c6a
|
Scott Ullrich
|
interfaces_wlan_scan.php
|
5 |
6ba1c65f
|
Scott Ullrich
|
Copyright (C) 2004 Scott Ullrich
|
6 |
|
|
All rights reserved.
|
7 |
|
|
|
8 |
|
|
originally part of m0n0wall (http://m0n0.ch/wall)
|
9 |
|
|
Copyright (C) 2003-2004 Manuel Kasper <mk@neon1.net>.
|
10 |
|
|
All rights reserved.
|
11 |
|
|
|
12 |
|
|
Redistribution and use in source and binary forms, with or without
|
13 |
|
|
modification, are permitted provided that the following conditions are met:
|
14 |
|
|
|
15 |
|
|
1. Redistributions of source code must retain the above copyright notice,
|
16 |
|
|
this list of conditions and the following disclaimer.
|
17 |
|
|
|
18 |
|
|
2. Redistributions in binary form must reproduce the above copyright
|
19 |
|
|
notice, this list of conditions and the following disclaimer in the
|
20 |
|
|
documentation and/or other materials provided with the distribution.
|
21 |
|
|
|
22 |
|
|
THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
23 |
|
|
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
|
24 |
|
|
AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
25 |
|
|
AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
|
26 |
|
|
OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
27 |
|
|
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
28 |
|
|
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
29 |
|
|
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
30 |
|
|
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
31 |
|
|
POSSIBILITY OF SUCH DAMAGE.
|
32 |
|
|
*/
|
33 |
|
|
|
34 |
|
|
require("guiconfig.inc");
|
35 |
|
|
|
36 |
|
|
|
37 |
d88c6a9f
|
Scott Ullrich
|
$pgtitle = array("Interfaces","Scan Wireless");
|
38 |
6ba1c65f
|
Scott Ullrich
|
include("head.inc");
|
39 |
|
|
|
40 |
|
|
?>
|
41 |
|
|
|
42 |
|
|
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
|
43 |
|
|
<?php include("fbegin.inc"); ?>
|
44 |
|
|
|
45 |
b8ecbeef
|
Scott Ullrich
|
echo "Scanning nodes... One moment please...";
|
46 |
6ba1c65f
|
Scott Ullrich
|
$scan_nodes = `/sbin/ifconfig {$_GET['interface']} scan`;
|
47 |
b8ecbeef
|
Scott Ullrich
|
echo "<P>Available nodes:<PRE>";
|
48 |
6ba1c65f
|
Scott Ullrich
|
echo $scan_nodes;
|
49 |
|
|
echo "</PRE>";
|
50 |
|
|
|
51 |
|
|
<?php include("fend.inc"); ?>
|
52 |
|
|
</body>
|
53 |
|
|
</html>
|