forked from pshep/ANUBIS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.inc.php
32 lines (26 loc) · 835 Bytes
/
header.inc.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
$pages = array("Home" => "index.php",
"Accounts" => "accounts.php",
"Configuration" => "config.php",
"FAQ" => "faq.php",
"Contact/Donate" => "contact.php");
$page = substr($_SERVER["SCRIPT_NAME"],strrpos($_SERVER["SCRIPT_NAME"],"/")+1);
?>
<div id="templatemo_header">
<div id="site_title"><h1><a href="index.php">Main</a></h1></div>
<div id="templatemo_menu" class="ddsmoothmenu">
<ul>
<?php
foreach ($pages as $key => $value)
{
if ($value == $page)
$selected = "class='selected'";
else
$selected = "";
echo "<li><a href='".$value."' ".$selected.">".$key."</a></li>";
}
?>
</ul>
<br style="clear: left" />
</div> <!-- end of templatemo_menu -->
</div> <!-- end of header -->