forked from projectsend/projectsend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
header-unlogged.php
87 lines (73 loc) · 2.92 KB
/
header-unlogged.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
75
76
77
78
79
80
81
82
83
84
85
86
87
<?php
/**
* This file generates the header for pages shown to unlogged users and
* clients (log in form and, if allowed, self registration form).
*
* @package ProjectSend
*/
/**
* Check if the ProjectSend is installed. Done only on the log in form
* page since all other are inaccessible if no valid session or cookie
* is set.
*/
if (!is_projectsend_installed()) {
header("Location:install/index.php");
exit;
}
/**
* This is defined on the public download page.
* So even logged in users can access it.
*/
if (!isset($dont_redirect_if_logged)) {
/** If logged as a system user, go directly to the back-end homepage */
if (in_session_or_cookies($allowed_levels)) {
header("Location:".BASE_URI."home.php");
}
/** If client is logged in, redirect to the files list. */
check_for_client();
}
$database->MySQLDB();
/**
* Silent updates that are needed even if no user is logged in.
*/
require_once(ROOT_DIR.'/includes/core.update.silent.php');
?>
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title><?php echo $page_title; ?> » <?php echo THIS_INSTALL_SET_TITLE; ?></title>
<link rel="shortcut icon" href="<?php echo BASE_URI; ?>/favicon.ico" />
<script type="text/javascript" src="<?php echo BASE_URI; ?>includes/js/jquery-1.8.3.min.js"></script>
<link rel="stylesheet" media="all" type="text/css" href="<?php echo BASE_URI; ?>css/bootstrap.min.css" />
<link rel="stylesheet" media="all" type="text/css" href="<?php echo BASE_URI; ?>css/bootstrap-responsive.min.css" />
<script type="text/javascript" src="<?php echo BASE_URI; ?>includes/js/bootstrap/bootstrap.min.js"></script>
<script type="text/javascript" src="<?php echo BASE_URI; ?>includes/js/bootstrap/modernizr-2.6.2-respond-1.1.0.min.js"></script>
<link rel="stylesheet" media="all" type="text/css" href="<?php echo BASE_URI; ?>css/base.css" />
<link rel="stylesheet" media="all" type="text/css" href="<?php echo BASE_URI; ?>css/shared.css" />
<link href='<?php echo PROTOCOL; ?>://fonts.googleapis.com/css?family=Open+Sans:400,700,300' rel='stylesheet' type='text/css'>
<link href='<?php echo PROTOCOL; ?>://fonts.googleapis.com/css?family=Abel' rel='stylesheet' type='text/css'>
<script src="<?php echo BASE_URI; ?>includes/js/jquery.validations.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
$('.button').click(function() {
$(this).blur();
});
});
</script>
</head>
<body>
<header>
<div id="header">
<div id="lonely_logo">
<h1><?php echo THIS_INSTALL_SET_TITLE; ?></h1>
</div>
</div>
<div id="login_header_low">
</div>
</header>
<div id="main">