-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
112 lines (97 loc) · 3.42 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<?php
/**
* QRcdr - php QR Code generator
* index.php
*
* PHP version 5.3+
*
* @category PHP
* @package QRcdr
* @author Nicola Franchini <[email protected]>
* @copyright 2015-2019 Nicola Franchini
* @license item sold on codecanyon https://codecanyon.net/item/qrcdr-responsive-qr-code-generator/9226839
* @link http://veno.es/qrcdr/
*/
error_reporting(E_ALL ^ E_NOTICE);
// error_reporting(E_ALL);
// ini_set('display_errors', 1);
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'); ?>">
<script>
var _hmt = _hmt || [];
(function () {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?790c110c7b40dde6d88f2e2c75020701";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
<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.2.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 siteName();
echo naviMenu();
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.js?v=3"></script>
<!-- END QRcdr -->
</body>
</html>