-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
executable file
·76 lines (71 loc) · 2.5 KB
/
index.php
File metadata and controls
executable file
·76 lines (71 loc) · 2.5 KB
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
<?php
ob_start();
session_start();
require_once 'db.php';
date_default_timezone_set('UTC');
$p = 'home';
if (isset($_SERVER['REDIRECT_URL']) && !empty($_SERVER['REDIRECT_URL'])) {
$p = $_SERVER['REDIRECT_URL'];
$p = explode('/', $p);
$first_p = $p[1];
if (!empty($p[2]) && strlen($p[2]) > 2) {
$p = $p[2];
} else {
$p = $first_p;
}
}
?>
<?php
if ($p != '' && $p == 'logout') {
unset($_SESSION['userData']);
session_destroy();
header('Location:home');
}
?>
<!DOCTYPE html>
<!--[if IE 7]>
<html class="ie ie7" lang="en-US">
<![endif]-->
<!--[if IE 8]>
<html class="ie ie8" lang="en-US">
<![endif]-->
<!--[if !(IE 7) & !(IE 8)]><!-->
<html lang="en-US">
<!--<![endif]-->
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Norlinx | Master Your Data Center</title>
<link rel="icon" href="<?php echo $baseURL; ?>images/favicon.ico" type="image/x-icon" />
<link href='https://fonts.googleapis.com/css?family=Karma:400,300,500,600,700' rel='stylesheet' type='text/css'>
<link href="http://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic" rel="stylesheet" type="text/css">
<link href="<?php echo $baseURL; ?>fonts/font-awesome.min.css" rel="stylesheet">
<link href="<?php echo $baseURL; ?>css/bootstrap.min.css" rel="stylesheet" type="text/css">
<link href="<?php echo $baseURL; ?>css/owl.carousel.css" type="text/css" rel="stylesheet" />
<link href="<?php echo $baseURL; ?>css/style.css" type="text/css" rel="stylesheet" />
<link rel="stylesheet" href="<?php echo $baseURL; ?>css/fancybox.css">
<link href="<?php echo $baseURL; ?>css/responsive.css" type="text/css" rel="stylesheet" />
</head>
<body>
<?php if ($p == 'partner-activity-log') {
$p = 'partner-activity-log-page';
}?>
<?php
if ($conn->connect_error || !file_exists('view/'.$p.'.php')) {
?>
<?php include 'view/header.php'; ?>
<?php include 'view/404.php'; ?>
<?php include 'view/footer.php'; ?>
<?php
} else {
?>
<div id="page" class="site">
<?php include 'view/header.php'; ?>
<?php include 'view/'.$p.'.php'; ?>
<?php include 'view/footer.php'; ?>
<a class="scrollup" href="#colophon" style="display: block;"></a>
</div>
<?php
} ?>
</body>
</html>