-
Notifications
You must be signed in to change notification settings - Fork 9
/
header.php
executable file
·74 lines (68 loc) · 3.57 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
72
73
74
<head>
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Grinnell Open Calendar</title>
<?php
if($_SESSION['css']){
switch ($_SESSION['css'])
{
case 1:
echo '<link rel="stylesheet" type="text/css" href="/~liujingt/css/reset.css">
<link rel="stylesheet" type="text/css" href="';ed();echo 'css/home.css">
<link rel="stylesheet" type="text/css" href="';ed();echo 'css/ui-lightness/jquery-ui-1.8.6.custom.css">';
break;
case 2:
echo '<link rel="stylesheet" type="text/css" href="/~liujingt/css/reset.css">
<link rel="stylesheet" type="text/css" href="';ed();echo 'css/Space/home.css">
<link rel="stylesheet" type="text/css" href="';ed();echo 'css/Space/ui-lightness/jquery-ui-1.8.6.custom.css">';
break;
}
}
else {echo '<link rel="stylesheet" type="text/css" href="/~liujingt/css/reset.css">
<link rel="stylesheet" type="text/css" href="';ed();echo 'css/home.css">
<link rel="stylesheet" type="text/css" href="';ed();echo 'css/ui-lightness/jquery-ui-1.8.6.custom.css">';}
?>
<link rel="alternate" type="application/rss+xml" title="RSS" href="generateRSS.php" />
<script type="text/javascript" src="<?php ed(); ?>js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="<?php ed(); ?>js/jquery-ui-1.8.6.custom.min.js"></script>
<script type="text/javascript" src="<?php ed(); ?>js/fancy_login.php"></script>
<script type="text/javascript" src="<?php ed(); ?>js/fancy_tag_add.php"></script>
<script type="text/javascript" src="<?php ed(); ?>js/main.php"></script>
<link rel="icon" href="img/icon.ico" type="image/x-icon">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
</head>
<body>
<div class="wrap">
<?php if (preg_match('/results.php|index.php/',$_SERVER['SCRIPT_NAME'])) // include 'filter.php'; ?>
<div id="main">
<div class="head">
<div class="col large">
<a href="<?php ed(); ?>"><h1><?php if($_SESSION['css']==1|| $_SESSION['css']==NULL) echo 'GRINNELL OPEN CALENDAR';?></h1></a>
</div>
<div class="col small" id="login">
<?php
if(is_logged_in()) :
echo '<h3>Logged in as <span class="user">'.$_SESSION['displayName'].'</span>, ';
echo '<a href="'.ed(false).'user_accounts/logout.php?ref='.rawurlencode($_SERVER['REQUEST_URI']).'">log out </a> - ';
echo '<a href="'.ed(false).'user_accounts/user_settings.php?"> Settings</a>';
else :
?>
<h3>You are not logged in,
<a class="fake" id="fancy-login">
<span class="word">login</span>
<div class="login-form">
<label for="username">Username:</label>
<input type="text" name="username" id="username">
<label for="password">Password:</label>
<input type="password" name="password" id="password">
<input type="button" value="Login" id="fancy-login-button">
<span class="link" id="forgot-password">Forgot password?</span>
<span class="warning">Wrong username/password</span>
</div>
</a>
or
<a href="<?php ed(); ?>user_accounts/registration_form.php">sign up</a></h3>
<?php
endif;
?>
</div>
</div>