1 |
5b237745
|
Scott Ullrich
|
<script language="javascript">
|
2 |
|
|
<!--
|
3 |
|
|
var tri_open = "";
|
4 |
|
|
var tri_closed = "";
|
5 |
|
|
|
6 |
|
|
window.onload = preload;
|
7 |
|
|
|
8 |
|
|
function preload() {
|
9 |
|
|
if (document.images) {
|
10 |
|
|
tri_open = new Image(14,10);
|
11 |
|
|
tri_closed = new Image(14,10);
|
12 |
|
|
tri_open.src = "/tri_o.gif";
|
13 |
|
|
tri_closed.src = "/tri_c.gif";
|
14 |
|
|
}
|
15 |
|
|
}
|
16 |
|
|
|
17 |
|
|
function showhide(tspan, tri) {
|
18 |
|
|
tspanel = document.getElementById(tspan);
|
19 |
|
|
triel = document.getElementById(tri);
|
20 |
|
|
if (tspanel.style.display == 'none') {
|
21 |
|
|
tspanel.style.display = '';
|
22 |
|
|
triel.src = "/tri_o.gif";
|
23 |
|
|
} else {
|
24 |
|
|
tspanel.style.display = 'none';
|
25 |
|
|
triel.src = "/tri_c.gif";
|
26 |
|
|
}
|
27 |
|
|
}
|
28 |
|
|
-->
|
29 |
|
|
</script>
|
30 |
|
|
<table width="750" border="0" cellspacing="0" cellpadding="2">
|
31 |
197fd4d4
|
Scott Ullrich
|
<tr valign="bottom">
|
32 |
258f5bb7
|
Scott Ullrich
|
<td width="150" height="65" align="center" valign="middle"> <strong><a href="/"><img src="/logo.gif" border="0"></a></strong></td>
|
33 |
197fd4d4
|
Scott Ullrich
|
<td height="65" bgcolor="#7F3B00">
|
34 |
5b237745
|
Scott Ullrich
|
<table border="0" cellspacing="0" cellpadding="0" width="100%">
|
35 |
79fa33e7
|
Scott Ullrich
|
<tr><td align="left" valign="bottom"><span class="tfrtitle"> webConfigurator</span></td>
|
36 |
5b237745
|
Scott Ullrich
|
<td align="right" valign="bottom">
|
37 |
|
|
<span class="hostname"><?=$config['system']['hostname'] . "." . $config['system']['domain'];?> </span>
|
38 |
|
|
</td></tr></table>
|
39 |
|
|
</td>
|
40 |
|
|
</tr>
|
41 |
197fd4d4
|
Scott Ullrich
|
<tr valign="top">
|
42 |
|
|
<td width="150" bgcolor="#000000">
|
43 |
5b237745
|
Scott Ullrich
|
<table width="100%" border="0" cellpadding="6" cellspacing="0">
|
44 |
|
|
<tr>
|
45 |
197fd4d4
|
Scott Ullrich
|
<td><span class="navlnk"><font color="#FFFFFF"> <strong>System</strong>
|
46 |
5b237745
|
Scott Ullrich
|
<br>
|
47 |
197fd4d4
|
Scott Ullrich
|
<a href="/system.php" class="navlnk">General
|
48 |
5b237745
|
Scott Ullrich
|
setup</a><br>
|
49 |
197fd4d4
|
Scott Ullrich
|
<a href="/system_routes.php" class="navlnk">Static
|
50 |
5b237745
|
Scott Ullrich
|
routes</a><br>
|
51 |
|
|
<a href="/system_firmware.php" class="navlnk">Firmware</a><br>
|
52 |
|
|
<a href="/system_advanced.php" class="navlnk">Advanced</a><br>
|
53 |
|
|
<strong>Interfaces</strong>
|
54 |
|
|
<?php if (!isset($config['system']['webgui']['noassigninterfaces'])): ?>
|
55 |
|
|
<a href="/interfaces_assign.php" class="navlnks">(assign)</a>
|
56 |
|
|
<?php endif; ?>
|
57 |
|
|
<br>
|
58 |
|
|
<a href="/interfaces_lan.php" class="navlnk">LAN</a><br>
|
59 |
|
|
<a href="/interfaces_wan.php" class="navlnk">WAN</a><br>
|
60 |
|
|
<?php for ($i = 1; isset($config['interfaces']['opt' . $i]); $i++): if (!isset($config['interfaces']['opt' . $i]['ovpn'])): ?>
|
61 |
|
|
<a href="/interfaces_opt.php?index=<?=$i;?>" class="navlnk"><?=htmlspecialchars($config['interfaces']['opt' . $i]['descr']);?></a><br>
|
62 |
|
|
<?php endif; endfor; ?>
|
63 |
|
|
<strong>Firewall</strong><br>
|
64 |
|
|
<a href="/firewall_rules.php" class="navlnk">Rules</a><br>
|
65 |
|
|
<a href="/firewall_nat.php" class="navlnk">NAT</a><br>
|
66 |
|
|
<a href="/firewall_aliases.php" class="navlnk">Aliases</a><br>
|
67 |
|
|
<strong>Services</strong><br>
|
68 |
|
|
<a href="/services_dnsmasq.php" class="navlnk">DNS forwarder</a><br>
|
69 |
197fd4d4
|
Scott Ullrich
|
<a href="/services_dyndns.php" class="navlnk">Dynamic
|
70 |
5b237745
|
Scott Ullrich
|
DNS</a><br>
|
71 |
|
|
<a href="/services_dhcp.php" class="navlnk">DHCP server</a><br>
|
72 |
|
|
<a href="/services_dhcp_relay.php" class="navlnk">DHCP relay</a><br>
|
73 |
|
|
<a href="/services_snmp.php" class="navlnk">SNMP</a><br>
|
74 |
|
|
<a href="/services_proxyarp.php" class="navlnk">Proxy ARP</a><br>
|
75 |
|
|
<a href="/services_captiveportal.php" class="navlnk">Captive portal</a><br>
|
76 |
|
|
<a href="/services_wol.php" class="navlnk">Wake on LAN</a><br>
|
77 |
|
|
<strong>VPN</strong><br>
|
78 |
|
|
<a href="/vpn_ipsec.php" class="navlnk">IPsec</a><br>
|
79 |
|
|
<a href="/vpn_pptp.php" class="navlnk">PPTP</a><br>
|
80 |
|
|
<a href="/vpn_openvpn.php" class="navlnk">OpenVPN</a><br>
|
81 |
|
|
<strong>Status</strong><br>
|
82 |
|
|
<a href="/index.php" class="navlnk">System</a><br>
|
83 |
|
|
<a href="/status_interfaces.php" class="navlnk">Interfaces</a><br>
|
84 |
|
|
<a href="/status_graph.php" class="navlnk">Traffic graph</a><br>
|
85 |
|
|
<a href="/status_wireless.php" class="navlnk">Wireless</a><br>
|
86 |
|
|
<?php if (isset($config['captiveportal']['enable'])): ?>
|
87 |
|
|
<a href="/status_captiveportal.php" class="navlnk">Captive portal</a><br>
|
88 |
|
|
<?php endif; ?>
|
89 |
|
|
<?php
|
90 |
|
|
/* extensions section */
|
91 |
|
|
if (is_dir("{$g['www_path']}/ext")):
|
92 |
|
|
?>
|
93 |
|
|
<strong>Extensions</strong><br>
|
94 |
|
|
<?php
|
95 |
|
|
$dh = @opendir("{$g['www_path']}/ext");
|
96 |
|
|
if ($dh) {
|
97 |
|
|
while (($extd = readdir($dh)) !== false) {
|
98 |
|
|
if (($extd === ".") || ($extd === ".."))
|
99 |
|
|
continue;
|
100 |
|
|
@include("{$g['www_path']}/ext/" . $extd . "/menu.inc");
|
101 |
|
|
}
|
102 |
|
|
closedir($dh);
|
103 |
|
|
}
|
104 |
|
|
endif;
|
105 |
|
|
?>
|
106 |
|
|
<?php if (isset($config['system']['webgui']['expanddiags']) || strstr($_SERVER['SCRIPT_FILENAME'], "diag_") || strstr($_SERVER['SCRIPT_FILENAME'], "reboot")): ?>
|
107 |
|
|
<a href="javascript:showhide('diag','tri_diag')"><img src="/tri_o.gif" id="tri_diag" width="14" height="10" border="0"></a><strong><a href="javascript:showhide('diag','tri_diag')" class="navlnk">Diagnostics</a></strong><br>
|
108 |
|
|
<span id="diag">
|
109 |
|
|
<?php else: ?>
|
110 |
|
|
<a href="javascript:showhide('diag','tri_diag')"><img src="/tri_c.gif" id="tri_diag" width="14" height="10" border="0"></a><strong><a href="javascript:showhide('diag','tri_diag')" class="navlnk">Diagnostics</a></strong><br>
|
111 |
|
|
<span id="diag" style="display: none">
|
112 |
|
|
<?php endif; ?>
|
113 |
197fd4d4
|
Scott Ullrich
|
<a href="/diag_logs.php" class="navlnk">System
|
114 |
5b237745
|
Scott Ullrich
|
logs</a><br>
|
115 |
|
|
<a href="/diag_dhcp_leases.php" class="navlnk">DHCP leases</a><br>
|
116 |
|
|
<a href="/diag_ipsec_sad.php" class="navlnk">IPsec</a><br>
|
117 |
|
|
<a href="/diag_ping.php" class="navlnk">Ping</a><br>
|
118 |
197fd4d4
|
Scott Ullrich
|
<a href="/diag_resetstate.php" class="navlnk">Reset
|
119 |
5b237745
|
Scott Ullrich
|
state</a><br>
|
120 |
|
|
<a href="/diag_backup.php" class="navlnk">Backup/Restore</a><br>
|
121 |
197fd4d4
|
Scott Ullrich
|
<a href="/diag_defaults.php" class="navlnk">Factory
|
122 |
5b237745
|
Scott Ullrich
|
defaults </a><br>
|
123 |
197fd4d4
|
Scott Ullrich
|
<a href="/reboot.php" class="navlnk">Reboot
|
124 |
5b237745
|
Scott Ullrich
|
system</a>
|
125 |
|
|
</span>
|
126 |
|
|
</font></span>
|
127 |
|
|
</td>
|
128 |
|
|
</tr></table></td>
|
129 |
|
|
<td width="600"><table width="100%" border="0" cellpadding="10" cellspacing="0">
|
130 |
|
|
<tr><td>
|