forked from shark420/ohsystem
/
index.php
90 lines (75 loc) · 2.83 KB
/
index.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
88
89
90
<?php
include("../config.php");
$time = microtime();
$time = explode(' ', $time);
$time = $time[1] + $time[0];
$start = $time;
include("../inc/common.php");
require_once('../lang/'.$default_language.'.php');
if ( isset($_GET["plugins"]) AND !OS_IsRoot() ) {
if ( isset($_GET["edit"]) OR isset($_GET["disable"]) OR isset($_GET["enable"]) OR isset($_GET["delete"]) ) {
header("location: ".OS_HOME."adm/?plugins&access=0");
}
}
include("../inc/class.db.PDO.php");
//include("../inc/class.database.php");
//$DBDriver ="mysql";
include("../inc/db_connect.php");
if ( file_exists('../themes/'.$DefaultStyle.'/functions.php') )
include('../themes/'.$DefaultStyle.'/functions.php');
include("admin_func.php");
include("admin_sys.php");
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="content-style-type" content="text/css" />
<meta name="author" content="Ivan Antonijevic" />
<meta name="rating" content="Safe For Kids" />
<meta name="description" content="<?=$HomeDesc?>" />
<meta name="keywords" content="<?=$HomeKeywords?>" />
<title><?=$HomeTitle?></title>
<?php if (file_exists("../themes/ghost/style.css") ) { ?>
<link rel="stylesheet" href="<?=OS_HOME?>themes/ghost/style.css" type="text/css" />
<?php } ?>
<link rel="stylesheet" href="<?=OS_HOME?>adm/style.css" type="text/css" />
<script type="text/javascript" src="<?=OS_HOME?>scripts.js"></script>
<?php if ( OS_CanAccessAdminPanel() ) { ?>
<script type="text/javascript" src="<?php echo OS_HOME;?>adm/ckeditor/ckeditor.js"></script>
<?php } ?>
<script type="text/javascript">
function toggle(source) {
checkboxes = document.getElementsByName('checkbox[]');
for(var i in checkboxes)
checkboxes[i].checked = source.checked;
}
function SetDateField(datetime, fieldID) {
document.getElementById(fieldID).value = datetime;
}
</script>
</head>
<body class="f-larger">
<?php if (is_logged() AND isset($_SESSION["level"] ) AND ($_SESSION["level"]>=9 OR $_SESSION["level"] == 4 ) ) { ?>
<div id="content" class="s-c-x">
<div class="wrapper">
<div id="main-column">
<div class="padding">
<div class="inner">
<div style="margin-top: 55px;">
<h1>ADMINISTRATION</h1>
</div>
<?php include("admin_menu.php"); ?>
<div align="center" style="background-color: #fff; width: 960px; margin: 0 auto; padding-top: 18px; border: 10px solid #2B0202; border-radius: 10px;">
<div align="center">
<?php include('admin_pages.php'); ?>
</div>
<div style="margin-bottom: 60px;"> </div>
</div>
</div>
</div>
</div>
</div>
<?php } else { include("login.php"); } ?>
<?php
include('../themes/'.$DefaultStyle.'/footer.php');
?>