forked from EQdkpPlus/core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommon.php
More file actions
53 lines (47 loc) · 1.86 KB
/
common.php
File metadata and controls
53 lines (47 loc) · 1.86 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
<?php
/* Project: EQdkp-Plus
* Package: EQdkp-plus
* Link: http://eqdkp-plus.eu
*
* Copyright (C) 2006-2016 EQdkp-Plus Developer Team
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
if ( !defined('EQDKP_INC') ){
die('Do not access this file directly.');
}
// Check for required PHP Version and quit exec if requirements are not reached
if (!version_compare(phpversion(), '5.4.0', ">=")){
die('
<b>PHP 5.4 required!</b><br/><br/>
You need at least PHP 5.4 running on your server! <br />
All PHP versions below are no longer supported! Dont ask in the <a href="http://eqdkp-plus.eu">EQdkp-Plus Forum</a> for a different Release!<br />
Ask your Admin or Hoster for a PHP5 update! If they do not update, you should leave your hoster!<br/><br/>
');
}
//eqdkp root path
if ( !isset($eqdkp_root_path) ){
$eqdkp_root_path = './';
}
//set error options
error_reporting (E_ALL);
ini_set("display_errors", 0);
include_once($eqdkp_root_path.'core/constants.php');
include_once($eqdkp_root_path.'core/super_registry.class.php');
include_once($eqdkp_root_path.'core/registry.class.php');
include_once($eqdkp_root_path.'core/gen_class.class.php');
if(!isset($lite)) $lite = false;
if(!isset($noinit)) $noinit = false;
if(!$noinit) registry::init($eqdkp_root_path, $lite);
?>