-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
89 lines (74 loc) · 2.97 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
<?php
error_reporting(E_ALL ^ E_NOTICE);
// error_reporting(E_ALL);
// ini_set('display_errors', 1);
$version = '4.0.3';
require dirname(__FILE__)."/config.php";
session_name($_CONFIG['session_name']);
session_start();
if (isset($_GET['reset'])) {
unset($_SESSION['logo']);
}
global $_ERROR;
if (isset($_SESSION['error'])) {
$_ERROR = $_SESSION['error'];
unset($_SESSION['error']);
}
require dirname(__FILE__)."/include/functions.php";
$browserDetect = array_key_exists('detect_browser_lang', $_CONFIG) ? $_CONFIG['detect_browser_lang'] : false;
$defaultlang = array_key_exists('lang', $_CONFIG) ? $_CONFIG['lang'] : 'en';
$color_primary = array_key_exists('color_primary', $_CONFIG) ? $_CONFIG['color_primary'] : false;
$lang = getLang($defaultlang, $browserDetect);
if (file_exists(dirname(__FILE__)."/translations/".$lang.".php")) {
include dirname(__FILE__)."/translations/".$lang.".php";
}
require dirname(__FILE__)."/include/head.php";
require dirname(__FILE__)."/lib/countrycodes.php";
?>
<!DOCTYPE html>
<html lang="<?php echo $lang; ?>">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<title><?php echo getString('title'); ?></title>
<meta name="description" content="<?php echo getString('description'); ?>">
<meta name="keywords" content="<?php echo getString('tags'); ?>">
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet">
<!--[if lt IE 9]>
<script src="js/ie8.js"></script>
<![endif]-->
<link href="css/font-awesome.min.css" rel="stylesheet">
<link href="js/bootstrap-colorpicker/css/bootstrap-colorpicker.min.css" rel="stylesheet">
<link href="style.css" rel="stylesheet">
<script src="js/jquery-3.5.1.min.js"></script>
<?php echo setMainColor($color_primary); ?>
</head>
<body class="bg-light">
<div class="navbar p-0 bg-primary m-0">
<div class="container-fluid">
<?php
// Language menu.
echo langMenu('menu');
// End language menu.
?>
</div>
</div>
<?php
if (file_exists(dirname(__FILE__).'/template/header.php')) {
include dirname(__FILE__).'/template/header.php';
}
if (file_exists(dirname(__FILE__).'/include/generator.php')) {
include dirname(__FILE__).'/include/generator.php';
}
if (file_exists(dirname(__FILE__).'/template/footer.php')) {
include dirname(__FILE__).'/template/footer.php';
}
?>
<script src="js/popper.js"></script>
<script src="bootstrap/js/bootstrap.min.js"></script>
<script src="js/bootstrap-colorpicker/js/bootstrap-colorpicker.min.js"></script>
<script src="js/all.min.js?v=<?php echo $version; ?>"></script>
<!-- END QRcdr -->
</body>
</html>