1 |
ff9d6728
|
Scott Ullrich
|
|
2 |
|
|
<script src="/javascript/sorttable.js"></script>
|
3 |
005ac3ca
|
Marcello Coutinho
|
<script src="/javascript/ticker.js"></script>
|
4 |
babac37a
|
Scott Ullrich
|
<style id="antiClickjack">body{display:none}</style> <script type="text/JavaScript">
|
5 |
9b420daf
|
Darren Embry
|
if (self === top) { var antiClickjack = document.getElementById("antiClickjack"); antiClickjack.parentNode.removeChild(antiClickjack);
|
6 |
babac37a
|
Scott Ullrich
|
} else { top.location = self.location;
|
7 |
005ac3ca
|
Marcello Coutinho
|
}
|
8 |
|
|
</script>
|
9 |
c6c150e9
|
Scott Ullrich
|
<?php
|
10 |
7ac5a4cb
|
Scott Ullrich
|
/*
|
11 |
|
|
pfSense_MODULE: header
|
12 |
|
|
*/
|
13 |
f0394bbb
|
Scott Ullrich
|
|
14 |
705a4137
|
Ermal Luçi
|
require_once("globals.inc");
|
15 |
b8f82cd7
|
Scott Ullrich
|
require_once("functions.inc");
|
16 |
7ac5a4cb
|
Scott Ullrich
|
|
17 |
b46bfcf5
|
Bill Marquette
|
/* $Id$ */
|
18 |
e86a8e57
|
Scott Ullrich
|
|
19 |
0a3eaf4d
|
jim-p
|
|
20 |
|
|
/* Determine automated help URL. Should output the page name and
|
21 |
|
|
parameters separately */
|
22 |
|
|
$uri_split = "";
|
23 |
|
|
preg_match("/\/(.*)\?(.*)/", $_SERVER["REQUEST_URI"], $uri_split);
|
24 |
|
|
|
25 |
|
|
/* If there was no match, there were no parameters, just grab the filename
|
26 |
|
|
Otherwise, use the matched filename from above. */
|
27 |
|
|
if (empty($uri_split[0])) {
|
28 |
|
|
$pagename = ltrim($_SERVER["REQUEST_URI"], '/');
|
29 |
|
|
} else {
|
30 |
|
|
$pagename = $uri_split[1];
|
31 |
|
|
}
|
32 |
|
|
/* If the page name is still empty, the user must have requested / (index.php) */
|
33 |
|
|
if (empty($pagename)) {
|
34 |
|
|
$pagename = "index.php";
|
35 |
|
|
}
|
36 |
|
|
|
37 |
|
|
/* If the filename is pkg_edit.php or wizard.php, reparse looking
|
38 |
|
|
for the .xml filename */
|
39 |
b873ded5
|
jim-p
|
if (($pagename == "pkg.php") || ($pagename == "pkg_edit.php") || ($pagename == "wizard.php")) {
|
40 |
0a3eaf4d
|
jim-p
|
$param_split = explode('&', $uri_split[2]);
|
41 |
|
|
foreach ($param_split as $param) {
|
42 |
|
|
if (substr($param, 0, 4) == "xml=") {
|
43 |
|
|
$xmlfile = explode('=', $param);
|
44 |
|
|
$pagename = $xmlfile[1];
|
45 |
|
|
}
|
46 |
|
|
}
|
47 |
|
|
}
|
48 |
|
|
|
49 |
|
|
/* Build the full help URL. */
|
50 |
|
|
$helpurl .= "{$g['help_base_url']}?page={$pagename}";
|
51 |
|
|
|
52 |
e93441e0
|
Scott Ullrich
|
function return_ext_menu($section) {
|
53 |
|
|
global $config;
|
54 |
|
|
$htmltext = "";
|
55 |
5e3249f0
|
Scott Ullrich
|
$extarray = array();
|
56 |
e93441e0
|
Scott Ullrich
|
if($config['installedpackages']['menu'] <> "") {
|
57 |
|
|
foreach($config['installedpackages']['menu'] as $menuitem) {
|
58 |
|
|
if($menuitem['section'] != $section) continue;
|
59 |
|
|
if($menuitem['url'] <> "") {
|
60 |
|
|
$addresswithport = getenv("HTTP_HOST");
|
61 |
|
|
$colonpos = strpos($addresswithport, ":");
|
62 |
|
|
if ($colonpos !== False){
|
63 |
|
|
//my url is actually just the IP address of the pfsense box
|
64 |
|
|
$myurl = substr($addresswithport, 0, $colonpos);
|
65 |
c987ed88
|
Scott Ullrich
|
} else {
|
66 |
e93441e0
|
Scott Ullrich
|
$myurl = $addresswithport;
|
67 |
90e3bbc0
|
Colin Smith
|
}
|
68 |
2c7bc9d0
|
jim-p
|
$description = str_replace('$myurl', $myurl, $menuitem['url']);
|
69 |
e93441e0
|
Scott Ullrich
|
} else {
|
70 |
|
|
$description = '/pkg.php?xml=' . $menuitem['configfile'];
|
71 |
c6c150e9
|
Scott Ullrich
|
}
|
72 |
5e3249f0
|
Scott Ullrich
|
$extarray[] = array($menuitem['name'], $description);
|
73 |
c6c150e9
|
Scott Ullrich
|
}
|
74 |
|
|
}
|
75 |
5e3249f0
|
Scott Ullrich
|
return $extarray;
|
76 |
e93441e0
|
Scott Ullrich
|
}
|
77 |
65384707
|
Erik Kristensen
|
|
78 |
976d0213
|
Darren Embry
|
function output_menu($arrayitem, $target = null) {
|
79 |
|
|
foreach ($arrayitem as $item) {
|
80 |
|
|
$attr = sprintf("href=\"%s\"", htmlentities($item[1]));
|
81 |
|
|
if ($target) {
|
82 |
|
|
$attr .= sprintf(" target=\"%s\"", htmlentities($target));
|
83 |
|
|
}
|
84 |
|
|
$class = "navlnk";
|
85 |
|
|
if ($item['class']) {
|
86 |
|
|
$class .= " {$item['class']}";
|
87 |
|
|
}
|
88 |
|
|
$attr .= sprintf(" class=\"%s\"", htmlentities($class));
|
89 |
|
|
if ($item['style']) {
|
90 |
|
|
$attr .= sprintf(" style=\"%s\"", htmlentities($item['style']));
|
91 |
|
|
}
|
92 |
|
|
echo "<li>\n";
|
93 |
|
|
printf("<a %s>%s</a>\n", $attr, $item[0]);
|
94 |
|
|
echo "</li>\n";
|
95 |
5e3249f0
|
Scott Ullrich
|
}
|
96 |
|
|
}
|
97 |
|
|
|
98 |
|
|
// System
|
99 |
5ba2df71
|
Scott Ullrich
|
$system_menu = array();
|
100 |
94044c40
|
Carlos Eduardo Ramos
|
$system_menu[] = array(gettext("Advanced"), "/system_advanced_admin.php");
|
101 |
|
|
$system_menu[] = array(gettext("Firmware"), "/system_firmware.php");
|
102 |
|
|
$system_menu[] = array(gettext("General Setup"), "/system.php");
|
103 |
f97a5b04
|
Darren Embry
|
$system_menu[] = array(gettext("High Avail. Sync"), "/system_hasync.php");
|
104 |
94044c40
|
Carlos Eduardo Ramos
|
$system_menu[] = array(gettext("Logout"), "/index.php?logout");
|
105 |
5e3249f0
|
Scott Ullrich
|
if ($g['platform'] == "pfSense" or $g['platform'] == "nanobsd")
|
106 |
94044c40
|
Carlos Eduardo Ramos
|
$system_menu[] = array(gettext("Packages"), "/pkg_mgr_installed.php");
|
107 |
|
|
$system_menu[] = array(gettext("Setup Wizard"), "/wizard.php?xml=setup_wizard.xml");
|
108 |
|
|
$system_menu[] = array(gettext("Routing"), "/system_gateways.php");
|
109 |
|
|
$system_menu[] = array(gettext("Cert Manager"), "/system_camanager.php");
|
110 |
43f26ab1
|
Ermal
|
if (!isAllowedPage("system_usermanager.php*"))
|
111 |
d8012adb
|
Vinicius Coque
|
$system_menu[] = array(gettext("User Manager"), "/system_usermanager_passwordmg.php");
|
112 |
43f26ab1
|
Ermal
|
else
|
113 |
d8012adb
|
Vinicius Coque
|
$system_menu[] = array(gettext("User Manager"), "/system_usermanager.php");
|
114 |
5ba2df71
|
Scott Ullrich
|
$system_menu = msort(array_merge($system_menu, return_ext_menu("System")),0);
|
115 |
5e3249f0
|
Scott Ullrich
|
|
116 |
|
|
// Interfaces
|
117 |
5ba2df71
|
Scott Ullrich
|
$interfaces_menu = array();
|
118 |
5e3249f0
|
Scott Ullrich
|
if (!isset($config['system']['webgui']['noassigninterfaces']))
|
119 |
5ba2df71
|
Scott Ullrich
|
$interfaces_menu[] = array("(assign)", "/interfaces_assign.php");
|
120 |
5e3249f0
|
Scott Ullrich
|
$opts = get_configured_interface_with_descr(false, true);
|
121 |
|
|
foreach ($opts as $oif => $odescr)
|
122 |
|
|
if (!isset($config['interfaces'][$oif]['ovpn']))
|
123 |
5ba2df71
|
Scott Ullrich
|
$interfaces_menu[] = array(htmlspecialchars($odescr), "/interfaces.php?if={$oif}");
|
124 |
|
|
$interfaces_menu = msort(array_merge($interfaces_menu, return_ext_menu("Interfaces")),0);
|
125 |
5e3249f0
|
Scott Ullrich
|
|
126 |
|
|
// Firewall
|
127 |
5ba2df71
|
Scott Ullrich
|
$firewall_menu = array();
|
128 |
94044c40
|
Carlos Eduardo Ramos
|
$firewall_menu[] = array(gettext("Aliases"), "/firewall_aliases.php");
|
129 |
|
|
$firewall_menu[] = array(gettext("NAT"), "/firewall_nat.php");
|
130 |
|
|
$firewall_menu[] = array(gettext("Rules"), "/firewall_rules.php");
|
131 |
|
|
$firewall_menu[] = array(gettext("Schedules"), "/firewall_schedule.php");
|
132 |
|
|
$firewall_menu[] = array(gettext("Traffic Shaper"), "/firewall_shaper.php");
|
133 |
|
|
$firewall_menu[] = array(gettext("Virtual IPs"), "/firewall_virtual_ip.php");
|
134 |
5ba2df71
|
Scott Ullrich
|
$firewall_menu = msort(array_merge($firewall_menu, return_ext_menu("Firewall")),0);
|
135 |
5e3249f0
|
Scott Ullrich
|
|
136 |
|
|
// Services
|
137 |
5ba2df71
|
Scott Ullrich
|
$services_menu = array();
|
138 |
94044c40
|
Carlos Eduardo Ramos
|
$services_menu[] = array(gettext("Captive Portal"), "/services_captiveportal.php");
|
139 |
|
|
$services_menu[] = array(gettext("DNS Forwarder"), "/services_dnsmasq.php");
|
140 |
|
|
$services_menu[] = array(gettext("DHCP Relay"), "/services_dhcp_relay.php");
|
141 |
1eca1a2f
|
Seth Mos
|
$services_menu[] = array(gettext("DHCPv6 Relay"), "/services_dhcpv6_relay.php");
|
142 |
8b6313a4
|
jim-p
|
if($g['services_dhcp_server_enable']) {
|
143 |
94044c40
|
Carlos Eduardo Ramos
|
$services_menu[] = array(gettext("DHCP Server"), "/services_dhcp.php");
|
144 |
8b6313a4
|
jim-p
|
$services_menu[] = array(gettext("DHCPv6 Server"), "/services_dhcpv6.php");
|
145 |
|
|
}
|
146 |
94044c40
|
Carlos Eduardo Ramos
|
$services_menu[] = array(gettext("Dynamic DNS"), "/services_dyndns.php");
|
147 |
|
|
$services_menu[] = array(gettext("IGMP proxy"), "/services_igmpproxy.php");
|
148 |
|
|
$services_menu[] = array(gettext("Load Balancer"), "/load_balancer_pool.php");
|
149 |
cf180ccc
|
jim-p
|
$services_menu[] = array(gettext("NTP"), "/services_ntpd.php");
|
150 |
94044c40
|
Carlos Eduardo Ramos
|
$services_menu[] = array(gettext("PPPoE Server"), "/vpn_pppoe.php");
|
151 |
|
|
$services_menu[] = array(gettext("RIP"), "/pkg_edit.php?xml=routed.xml&id=0");
|
152 |
|
|
$services_menu[] = array(gettext("SNMP"), "/services_snmp.php");
|
153 |
38b357bd
|
Ermal
|
if(count($config['interfaces']) > 1) {
|
154 |
5e3249f0
|
Scott Ullrich
|
/* no use for UPnP in single-interface deployments
|
155 |
|
|
remove to reduce user confusion
|
156 |
|
|
*/
|
157 |
94044c40
|
Carlos Eduardo Ramos
|
$services_menu[] = array(gettext("UPnP & NAT-PMP"), "/pkg_edit.php?xml=miniupnpd.xml&id=0");
|
158 |
5e3249f0
|
Scott Ullrich
|
}
|
159 |
94044c40
|
Carlos Eduardo Ramos
|
$services_menu[] = array(gettext("Wake on LAN"), "/services_wol.php");
|
160 |
5ba2df71
|
Scott Ullrich
|
$services_menu = msort(array_merge($services_menu, return_ext_menu("Services")),0);
|
161 |
5e3249f0
|
Scott Ullrich
|
|
162 |
|
|
// VPN
|
163 |
5ba2df71
|
Scott Ullrich
|
$vpn_menu = array();
|
164 |
94044c40
|
Carlos Eduardo Ramos
|
$vpn_menu[] = array(gettext("IPsec"), "/vpn_ipsec.php");
|
165 |
|
|
$vpn_menu[] = array(gettext("OpenVPN"), "/vpn_openvpn_server.php");
|
166 |
|
|
$vpn_menu[] = array(gettext("PPTP"), "/vpn_pptp.php");
|
167 |
|
|
$vpn_menu[] = array(gettext("L2TP"), "/vpn_l2tp.php");
|
168 |
5ba2df71
|
Scott Ullrich
|
$vpn_menu = msort(array_merge($vpn_menu, return_ext_menu("VPN")),0);
|
169 |
5e3249f0
|
Scott Ullrich
|
|
170 |
|
|
// Status
|
171 |
|
|
$status_menu = array();
|
172 |
21b8289e
|
Ermal
|
if (count($config['captiveportal']) > 0)
|
173 |
94044c40
|
Carlos Eduardo Ramos
|
$status_menu[] = array(gettext("Captive Portal"), "/status_captiveportal.php");
|
174 |
|
|
$status_menu[] = array(gettext("CARP (failover)"), "/carp_status.php");
|
175 |
|
|
$status_menu[] = array(gettext("Dashboard"), "/index.php");
|
176 |
|
|
$status_menu[] = array(gettext("Gateways"), "/status_gateways.php");
|
177 |
|
|
$status_menu[] = array(gettext("DHCP Leases"), "/status_dhcp_leases.php");
|
178 |
8b6313a4
|
jim-p
|
$status_menu[] = array(gettext("DHCPv6 Leases"), "/status_dhcpv6_leases.php");
|
179 |
94044c40
|
Carlos Eduardo Ramos
|
$status_menu[] = array(gettext("Filter Reload"), "/status_filter_reload.php");
|
180 |
|
|
$status_menu[] = array(gettext("Interfaces"), "/status_interfaces.php");
|
181 |
|
|
$status_menu[] = array(gettext("IPsec"), "/diag_ipsec.php");
|
182 |
|
|
$status_menu[] = array(gettext("Load Balancer"), "/status_lb_pool.php");
|
183 |
a8543b59
|
jim-p
|
$status_menu[] = array(gettext("NTP"), "/status_ntpd.php");
|
184 |
94044c40
|
Carlos Eduardo Ramos
|
$status_menu[] = array(gettext("OpenVPN"), "/status_openvpn.php");
|
185 |
5e3249f0
|
Scott Ullrich
|
if ($g['platform'] == "pfSense")
|
186 |
94044c40
|
Carlos Eduardo Ramos
|
$status_menu[] = array(gettext("Package Logs"), "/diag_pkglogs.php");
|
187 |
|
|
$status_menu[] = array(gettext("Queues"), "/status_queues.php");
|
188 |
|
|
$status_menu[] = array(gettext("RRD Graphs"), "/status_rrd_graph.php");
|
189 |
|
|
$status_menu[] = array(gettext("Services"), "/status_services.php");
|
190 |
|
|
$status_menu[] = array(gettext("System Logs"), "/diag_logs.php");
|
191 |
|
|
$status_menu[] = array(gettext("Traffic Graph"), "/status_graph.php?if=wan");
|
192 |
38b357bd
|
Ermal
|
if(count($config['interfaces']) > 1)
|
193 |
94044c40
|
Carlos Eduardo Ramos
|
$status_menu[] = array(gettext("UPnP & NAT-PMP"), "/status_upnp.php");
|
194 |
5e3249f0
|
Scott Ullrich
|
$ifentries = get_configured_interface_with_descr();
|
195 |
|
|
foreach ($ifentries as $ent => $entdesc) {
|
196 |
|
|
if (is_array($config['interfaces'][$ent]['wireless']) &&
|
197 |
|
|
preg_match($g['wireless_regex'], $config['interfaces'][$ent]['if']))
|
198 |
273e9bf7
|
jim-p
|
$wifdescrs[$ent] = $entdesc;
|
199 |
5e3249f0
|
Scott Ullrich
|
}
|
200 |
273e9bf7
|
jim-p
|
if (count($wifdescrs) > 0)
|
201 |
94044c40
|
Carlos Eduardo Ramos
|
$status_menu[] = array(gettext("Wireless"), "/status_wireless.php");
|
202 |
5e3249f0
|
Scott Ullrich
|
$status_menu = msort(array_merge($status_menu, return_ext_menu("Status")),0);
|
203 |
|
|
|
204 |
|
|
// Diagnostics
|
205 |
5ba2df71
|
Scott Ullrich
|
$diagnostics_menu = array();
|
206 |
1d50d8d9
|
Chris Buechler
|
$diagnostics_menu[] = array(gettext("ARP Table"), "/diag_arp.php");
|
207 |
94044c40
|
Carlos Eduardo Ramos
|
$diagnostics_menu[] = array(gettext("Authentication"), "/diag_authentication.php");
|
208 |
|
|
$diagnostics_menu[] = array(gettext("Backup/Restore"), "/diag_backup.php");
|
209 |
|
|
$diagnostics_menu[] = array(gettext("Command Prompt"), "/exec.php");
|
210 |
|
|
$diagnostics_menu[] = array(gettext("DNS Lookup"), "/diag_dns.php");
|
211 |
|
|
$diagnostics_menu[] = array(gettext("Edit File"), "/edit.php");
|
212 |
|
|
$diagnostics_menu[] = array(gettext("Factory Defaults"), "/diag_defaults.php");
|
213 |
|
|
$diagnostics_menu[] = array(gettext("Halt System"), "/halt.php" );
|
214 |
ca98b042
|
Vinicius Coque
|
$diagnostics_menu[] = array(gettext("Limiter Info"), "/diag_limiter_info.php" );
|
215 |
8b6313a4
|
jim-p
|
$diagnostics_menu[] = array(gettext("NDP Table"), "/diag_ndp.php" );
|
216 |
ca98b042
|
Vinicius Coque
|
|
217 |
94044c40
|
Carlos Eduardo Ramos
|
$diagnostics_menu[] = array(gettext("Tables"), "/diag_tables.php");
|
218 |
|
|
$diagnostics_menu[] = array(gettext("Ping"), "/diag_ping.php");
|
219 |
ca98b042
|
Vinicius Coque
|
$diagnostics_menu[] = array(gettext("pfInfo"), "/diag_pf_info.php");
|
220 |
|
|
$diagnostics_menu[] = array(gettext("pfTop"), "/diag_system_pftop.php");
|
221 |
94044c40
|
Carlos Eduardo Ramos
|
$diagnostics_menu[] = array(gettext("Reboot"), "/reboot.php");
|
222 |
|
|
$diagnostics_menu[] = array(gettext("Routes"), "/diag_routes.php");
|
223 |
|
|
$diagnostics_menu[] = array(gettext("SMART Status"), "/diag_smart.php");
|
224 |
|
|
$diagnostics_menu[] = array(gettext("States"), "/diag_dump_states.php");
|
225 |
|
|
$diagnostics_menu[] = array(gettext("States Summary"), "/diag_states_summary.php");
|
226 |
|
|
$diagnostics_menu[] = array(gettext("System Activity"), "/diag_system_activity.php");
|
227 |
|
|
$diagnostics_menu[] = array(gettext("Traceroute"), "/diag_traceroute.php");
|
228 |
|
|
$diagnostics_menu[] = array(gettext("Packet Capture"), "/diag_packet_capture.php");
|
229 |
5e3249f0
|
Scott Ullrich
|
if($g['platform'] == "nanobsd")
|
230 |
94044c40
|
Carlos Eduardo Ramos
|
$diagnostics_menu[] = array(gettext("NanoBSD"), "/diag_nanobsd.php");
|
231 |
5e3249f0
|
Scott Ullrich
|
|
232 |
|
|
if (isset($config['system']['developer'])) {
|
233 |
976d0213
|
Darren Embry
|
$diagnostics_menu[] = array(gettext("Restart HTTPD"), "/restart_httpd.php", "style" => "font-weight: bold; color: yellow;");
|
234 |
|
|
|
235 |
5e3249f0
|
Scott Ullrich
|
}
|
236 |
5ba2df71
|
Scott Ullrich
|
$diagnostics_menu = msort(array_merge($diagnostics_menu, return_ext_menu("Diagnostics")),0);
|
237 |
5e3249f0
|
Scott Ullrich
|
|
238 |
3b29612f
|
Chris Buechler
|
if(! $g['disablehelpmenu']) {
|
239 |
|
|
$help_menu = array();
|
240 |
94044c40
|
Carlos Eduardo Ramos
|
$help_menu[] = array(gettext("About this Page"), $helpurl);
|
241 |
f5208bf2
|
Scott Ullrich
|
if($g['product_name'] == "pfSense")
|
242 |
54bdff75
|
Vinicius Coque
|
$help_menu[] = array(gettext("Bug Database"), "http://www.pfsense.org/j.php?jumpto=redmine");
|
243 |
94044c40
|
Carlos Eduardo Ramos
|
$help_menu[] = array(gettext("User Forum"), "http://www.pfsense.org/j.php?jumpto=forum");
|
244 |
|
|
$help_menu[] = array(gettext("Documentation"), "http://www.pfsense.org/j.php?jumpto=doc");
|
245 |
|
|
$help_menu[] = array(gettext("Developers Wiki"), "http://www.pfsense.org/j.php?jumpto=devwiki");
|
246 |
|
|
$help_menu[] = array(gettext("Paid Support"), "http://www.pfsense.org/j.php?jumpto=portal");
|
247 |
|
|
$help_menu[] = array(gettext("pfSense Book"), "http://www.pfsense.org/j.php?jumpto=book");
|
248 |
|
|
$help_menu[] = array(gettext("Search portal"), "http://www.pfsense.org/j.php?jumpto=searchportal");
|
249 |
|
|
$help_menu[] = array(gettext("FreeBSD Handbook"), "http://www.pfsense.org/j.php?jumpto=fbsdhandbook");
|
250 |
3b29612f
|
Chris Buechler
|
$help_menu = msort(array_merge($help_menu, return_ext_menu("Help")),0);
|
251 |
|
|
}
|
252 |
669716df
|
Scott Ullrich
|
|
253 |
c6c150e9
|
Scott Ullrich
|
?>
|
254 |
12a00813
|
Erik Kristensen
|
|
255 |
9f53d3a8
|
Scott Ullrich
|
<div id="wrapper">
|
256 |
97f30a08
|
Marcello Coutinho
|
<div id="header">
|
257 |
ea858be0
|
Ermal
|
<div id="header-left"><a href="/index.php" id="status-link"><img src="/themes/<?= $g['theme']; ?>/images/transparent.gif" border="0"></a></div>
|
258 |
97f30a08
|
Marcello Coutinho
|
<div id="header-right">
|
259 |
1df0159c
|
Erik Kristensen
|
<div class="container">
|
260 |
|
|
<div class="left">webConfigurator</div>
|
261 |
005ac3ca
|
Marcello Coutinho
|
<div class="right" id="menu_messages">
|
262 |
b1cbbf24
|
Erik Kristensen
|
<?
|
263 |
005ac3ca
|
Marcello Coutinho
|
echo get_menu_messages();
|
264 |
612832ec
|
Erik Kristensen
|
?>
|
265 |
005ac3ca
|
Marcello Coutinho
|
</div>
|
266 |
1df0159c
|
Erik Kristensen
|
</div>
|
267 |
9f53d3a8
|
Scott Ullrich
|
</div>
|
268 |
|
|
</div> <!-- Header DIV -->
|
269 |
|
|
<div id="content">
|
270 |
|
|
<div id="left">
|
271 |
97f30a08
|
Marcello Coutinho
|
<div id="navigation" style="z-index:1000;">
|
272 |
41058a8c
|
Erik Kristensen
|
<ul id="menu">
|
273 |
d86286ed
|
Erik Kristensen
|
<li class="firstdrop">
|
274 |
7de4284c
|
Vinicius Coque
|
<div><?php echo gettext("System"); ?></div>
|
275 |
d86286ed
|
Erik Kristensen
|
<ul class="subdrop">
|
276 |
7cf210f1
|
Ermal Lu?i
|
<?php
|
277 |
5ba2df71
|
Scott Ullrich
|
output_menu($system_menu);
|
278 |
7cf210f1
|
Ermal Lu?i
|
?>
|
279 |
9f53d3a8
|
Scott Ullrich
|
</ul>
|
280 |
|
|
</li>
|
281 |
d86286ed
|
Erik Kristensen
|
<li class="drop">
|
282 |
7de4284c
|
Vinicius Coque
|
<div><?php echo gettext("Interfaces"); ?></div>
|
283 |
d86286ed
|
Erik Kristensen
|
<ul class="subdrop">
|
284 |
7cf210f1
|
Ermal Lu?i
|
<?php
|
285 |
5ba2df71
|
Scott Ullrich
|
output_menu($interfaces_menu);
|
286 |
7cf210f1
|
Ermal Lu?i
|
?>
|
287 |
9f53d3a8
|
Scott Ullrich
|
</ul>
|
288 |
|
|
</li>
|
289 |
d86286ed
|
Erik Kristensen
|
<li class="drop">
|
290 |
7de4284c
|
Vinicius Coque
|
<div><?php echo gettext("Firewall"); ?></div>
|
291 |
d86286ed
|
Erik Kristensen
|
<ul class="subdrop">
|
292 |
7cf210f1
|
Ermal Lu?i
|
<?php
|
293 |
5ba2df71
|
Scott Ullrich
|
output_menu($firewall_menu);
|
294 |
7cf210f1
|
Ermal Lu?i
|
?>
|
295 |
9f53d3a8
|
Scott Ullrich
|
</ul>
|
296 |
|
|
</li>
|
297 |
d86286ed
|
Erik Kristensen
|
<li class="drop">
|
298 |
7de4284c
|
Vinicius Coque
|
<div><?php echo gettext("Services"); ?></div>
|
299 |
d86286ed
|
Erik Kristensen
|
<ul class="subdrop">
|
300 |
7cf210f1
|
Ermal Lu?i
|
<?
|
301 |
5ba2df71
|
Scott Ullrich
|
output_menu($services_menu);
|
302 |
7cf210f1
|
Ermal Lu?i
|
?>
|
303 |
9f53d3a8
|
Scott Ullrich
|
</ul>
|
304 |
|
|
</li>
|
305 |
d86286ed
|
Erik Kristensen
|
<li class="drop">
|
306 |
7de4284c
|
Vinicius Coque
|
<div><?php echo gettext("VPN"); ?></div>
|
307 |
d86286ed
|
Erik Kristensen
|
<ul class="subdrop">
|
308 |
7cf210f1
|
Ermal Lu?i
|
<?php
|
309 |
5ba2df71
|
Scott Ullrich
|
output_menu($vpn_menu);
|
310 |
7cf210f1
|
Ermal Lu?i
|
?>
|
311 |
9f53d3a8
|
Scott Ullrich
|
</ul>
|
312 |
|
|
</li>
|
313 |
d86286ed
|
Erik Kristensen
|
<li class="drop">
|
314 |
7de4284c
|
Vinicius Coque
|
<div><?php echo gettext("Status"); ?></div>
|
315 |
d86286ed
|
Erik Kristensen
|
<ul class="subdrop">
|
316 |
7cf210f1
|
Ermal Lu?i
|
<?php
|
317 |
5e3249f0
|
Scott Ullrich
|
output_menu($status_menu);
|
318 |
7cf210f1
|
Ermal Lu?i
|
?>
|
319 |
9f53d3a8
|
Scott Ullrich
|
</ul>
|
320 |
|
|
</li>
|
321 |
669716df
|
Scott Ullrich
|
<li class="drop">
|
322 |
7de4284c
|
Vinicius Coque
|
<div><?php echo gettext("Diagnostics"); ?></div>
|
323 |
d86286ed
|
Erik Kristensen
|
<ul id="diag" class="subdrop">
|
324 |
7cf210f1
|
Ermal Lu?i
|
<?
|
325 |
5ba2df71
|
Scott Ullrich
|
output_menu($diagnostics_menu);
|
326 |
7cf210f1
|
Ermal Lu?i
|
?>
|
327 |
9f53d3a8
|
Scott Ullrich
|
</ul>
|
328 |
|
|
</li>
|
329 |
3b29612f
|
Chris Buechler
|
<?php if(! $g['disablehelpmenu']): ?>
|
330 |
669716df
|
Scott Ullrich
|
<li class="lastdrop">
|
331 |
7de4284c
|
Vinicius Coque
|
<div><?php echo gettext("Help"); ?></div>
|
332 |
669716df
|
Scott Ullrich
|
<ul id="help" class="subdrop">
|
333 |
|
|
<?
|
334 |
471ce716
|
Scott Ullrich
|
output_menu($help_menu, "_new");
|
335 |
669716df
|
Scott Ullrich
|
?>
|
336 |
|
|
</ul>
|
337 |
|
|
</li>
|
338 |
3b29612f
|
Chris Buechler
|
<?php endif; ?>
|
339 |
9f53d3a8
|
Scott Ullrich
|
</ul>
|
340 |
|
|
</div>
|
341 |
dca32536
|
Scott Ullrich
|
|
342 |
9f53d3a8
|
Scott Ullrich
|
</div> <!-- Left DIV -->
|
343 |
dca32536
|
Scott Ullrich
|
|
344 |
9f53d3a8
|
Scott Ullrich
|
<div id="right">
|
345 |
dca32536
|
Scott Ullrich
|
|
346 |
5c9cc1de
|
Scott Ullrich
|
<?php
|
347 |
005ac3ca
|
Marcello Coutinho
|
echo "\t<script type=\"text/javascript\" src=\"javascript/domTT/domLib.js\"></script>\n";
|
348 |
|
|
echo "\t<script type=\"text/javascript\" src=\"javascript/domTT/domTT.js\"></script>\n";
|
349 |
|
|
echo "\t<script type=\"text/javascript\" src=\"javascript/domTT/behaviour.js\"></script>\n";
|
350 |
|
|
echo "\t<script type=\"text/javascript\" src=\"javascript/domTT/fadomatic.js\"></script>\n";
|
351 |
5c9cc1de
|
Scott Ullrich
|
/* display a top alert bar if need be */
|
352 |
|
|
$need_alert_display = false;
|
353 |
|
|
$found_notices = are_notices_pending();
|
354 |
|
|
if($found_notices == true) {
|
355 |
|
|
$notices = get_notices();
|
356 |
|
|
if(!$notices) {
|
357 |
|
|
$need_alert_display = true;
|
358 |
efe8fa78
|
jim-p
|
$display_text = print_notices($notices) . "<br>";
|
359 |
dca32536
|
Scott Ullrich
|
}
|
360 |
5c9cc1de
|
Scott Ullrich
|
}
|
361 |
|
|
if($need_alert_display == true) {
|
362 |
|
|
echo "<div style=\"background-color:#000000\" id=\"roundalert\">";
|
363 |
|
|
echo "<table>";
|
364 |
|
|
echo "<tr><td><font color=\"#ffffff\">";
|
365 |
|
|
echo " <img align=\"middle\" src=\"/top_notification.gif\"> ";
|
366 |
|
|
echo $display_text;
|
367 |
|
|
echo "</td>";
|
368 |
|
|
echo "</tr>";
|
369 |
|
|
echo "</table>";
|
370 |
|
|
echo "</div>";
|
371 |
|
|
}
|
372 |
b8f82cd7
|
Scott Ullrich
|
|
373 |
5e3249f0
|
Scott Ullrich
|
function add_to_menu($url, $name) {
|
374 |
45ee90ed
|
Matthew Grooms
|
if (isAllowedPage($url))
|
375 |
|
|
echo "<li><a href=\"{$url}\" class=\"navlnk\">{$name}</a></li>\n";
|
376 |
b8f82cd7
|
Scott Ullrich
|
}
|
377 |
19b331c1
|
Scott Ullrich
|
?>
|
378 |
dca32536
|
Scott Ullrich
|
|
379 |
f7eae2bf
|
jim-p
|
<div>
|
380 |
e6c563bb
|
jim-p
|
<span class="pgtitle"><a href="<?= $_SERVER['SCRIPT_NAME'] ?>"><?=genhtmltitle($pgtitle);?></a></span>
|
381 |
c2e23f7b
|
jim-p
|
<span style="float:right; margin: 0 0 20px 20px;">
|
382 |
|
|
<?php if(! empty($statusurl)): ?>
|
383 |
94044c40
|
Carlos Eduardo Ramos
|
<a href="<?php echo $statusurl; ?>" target="_new" title="<?php echo gettext("Status of items on this page."); ?>"><img src="/themes/<?php echo $g['theme']; ?>/images/status.png" border="0"></a>
|
384 |
c2e23f7b
|
jim-p
|
<?php endif; ?>
|
385 |
|
|
<?php if(! empty($logurl)): ?>
|
386 |
94044c40
|
Carlos Eduardo Ramos
|
<a href="<?php echo $logurl; ?>" target="_new" title="<?php echo gettext("Log entries for items on this page."); ?>"><img src="/themes/<?php echo $g['theme']; ?>/images/log.png" border="0"></a>
|
387 |
c2e23f7b
|
jim-p
|
<?php endif; ?>
|
388 |
28181237
|
Renato Botelho
|
<?php if(! $g['disablehelpicon']): ?>
|
389 |
94044c40
|
Carlos Eduardo Ramos
|
<a href="<?php echo $helpurl; ?>" target="_new" title="<?php echo gettext("Help for items on this page."); ?>"><img src="/themes/<?php echo $g['theme']; ?>/images/help.png" border="0"></a>
|
390 |
28181237
|
Renato Botelho
|
<?php endif; ?>
|
391 |
c2e23f7b
|
jim-p
|
</span>
|
392 |
f7eae2bf
|
jim-p
|
</div>
|
393 |
|
|
<br />
|
394 |
b873ded5
|
jim-p
|
|
395 |
366e5d8c
|
sullrich
|
<?php
|
396 |
261c7de8
|
jim-p
|
/* if upgrade in progress, alert user */
|
397 |
|
|
if(is_subsystem_dirty('packagelock')) {
|
398 |
|
|
$pgtitle = array(gettext("System"),gettext("Package Manager"));
|
399 |
|
|
print_info_box(gettext("Packages are currently being reinstalled in the background.<p>Do not make changes in the GUI until this is complete.") . "<p><img src='/themes/{$g['theme']}/images/icons/icon_fw-update.gif'>");
|
400 |
|
|
}
|
401 |
366e5d8c
|
sullrich
|
$pgtitle_output = true;
|
402 |
3f0357fc
|
Ermal Lu?i
|
?>
|