forked from tsawyer/allmon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
37 lines (37 loc) · 1.62 KB
/
header.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
32
33
34
35
36
37
<?php
// Set title
$uri = urldecode(array_pop(explode('/', $_SERVER['REQUEST_URI'])));
$pageTitle = strtoupper($_SERVER['SERVER_NAME']) . " | ";
if (preg_match("/voter\.php\?node=(\d+)$/", $uri, $matches)) {
$pageTitle .= "Voter " . $matches[1];
} elseif (preg_match("/link\.php\?node=(\d+)$/", $uri, $matches)) {
$pageTitle .= "Node " . $matches[1];
} elseif (preg_match("/link\.php\?group=(.*)$/", $uri, $matches)) {
$pageTitle .= $matches[1];
} elseif (preg_match("/about/", $uri, $matches)) {
$pageTitle .= ucfirst($matches[0]);
}
?>
<!DOCTYPE html>
<html>
<head>
<title><?php echo $pageTitle; ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="generator" content="By hand with a text editor">
<meta name="description" content="Allstar node manager">
<meta name="keywords" content="allstar monitor, app_rpt, asterisk">
<meta name="author" content="Tim Sawyer, WD6AWP">
<link type="text/css" rel="stylesheet" href="allmon.css">
<link type="text/css" rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.1/themes/base/jquery-ui.css">
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
<script type="text/javascript" src="jquery.cookie.js"></script>
<script type="text/javascript" src="allmon.js"></script>
</head>
<body>
<div id="header">
<div id="headerTitle">Allstar Monitor</div>
<div id="headerTag">Monitoring the World One Node at a Time</div>
<div id="headerImg"><img src="allstarLogo.png" alt="Allstar Logo"></div>
</div>
<?php include "menu.php"; ?>