-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
executable file
·71 lines (59 loc) · 2.38 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?php
// Check to see if user is logged in. If not, redirect to login page.
if (!isset($_COOKIE["user"]))
header( 'Location: login.php' );
//Include commonly used variables
include('vars.php');
//Check to see if admin is logged in
$role = $_COOKIE["role"];
if ($role == "ADMIN") $admin = "1";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!--
/************************************************************************
*
* phpAbstracts
* http://www.phpabstracts.com
*
* Copyright (c) 2008 Omar Qazi
*
* phpAbstracts is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* phpAbstracts is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with phpAbstracts. If not, see <http://www.gnu.org/licenses/>.
*
************************************************************************/
-->
<head>
<title><?php echo $site_title; ?></title>
<link href="css/abstracts.css" rel="stylesheet" type="text/css" />
<link href="css/abstracts_print.css" rel="stylesheet" type="text/css" media="print" />
<script language="javascript" type="text/javascript" src="js/sorttable.js"></script>
<script language="javascript" type="text/javascript" src="js/abstracts.js"></script>
<script type="text/javascript">
<?php
$current_url = $_SERVER['PHP_SELF'];
if (strpos($current_url, "list")) {
echo "window.onload=function(){tableruler();} ";
}
?>
</script>
</head>
<body>
<div id="header" class="top_container">
<img src="<?php echo $site_logo ?>">
<div class="title_header">
<h2 style="margin:0px;"><?php echo $site_title; ?></h2>
<p>You are logged in as <?php echo($_COOKIE["name"]); ?> | <a href='logout.php'>Logout</a></p>
</div>
</div>
<div class="centering_container" id="main_container" >