Project

General

Profile

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