1
|
<?php
|
2
|
/* $Id$ */
|
3
|
/*
|
4
|
interfaces_wlan_scan.php
|
5
|
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
|
##|+PRIV
|
35
|
##|*IDENT=page-interfaces-scanwireless
|
36
|
##|*NAME=Interfaces: Scan Wireless page
|
37
|
##|*DESCR=Allow access to the 'Interfaces: Scan Wireless' page.
|
38
|
##|*MATCH=interfaces_wlan_scan.php*
|
39
|
##|-PRIV
|
40
|
|
41
|
|
42
|
require("guiconfig.inc");
|
43
|
|
44
|
|
45
|
$pgtitle = array("Interfaces","Scan Wireless");
|
46
|
include("head.inc");
|
47
|
|
48
|
?>
|
49
|
|
50
|
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
|
51
|
<?php include("fbegin.inc"); ?>
|
52
|
|
53
|
$interface = escapeshellarg($_GET['interface']);
|
54
|
|
55
|
echo gettext("Scanning nodes... One moment please...");
|
56
|
$scan_nodes = `/sbin/ifconfig {$interface} scan`;
|
57
|
|
58
|
echo "<P>Available nodes:<PRE>";
|
59
|
echo $scan_nodes;
|
60
|
echo "</PRE>";
|
61
|
|
62
|
<?php include("fend.inc"); ?>
|
63
|
</body>
|
64
|
</html>
|