-
Notifications
You must be signed in to change notification settings - Fork 0
/
headers.php
47 lines (39 loc) · 1.35 KB
/
headers.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
<?php
// Includes
$folder = dirname(__FILE__);
//require_once $folder.'/libs/geshi/geshi.php';
function __autoload($class_name) {
$folder = dirname(__FILE__);
if(is_file($folder.'/libs/smj/'.$class_name.'.php')) {
include_once $folder.'/libs/smj/'.$class_name.'.php';
}
if(is_file($folder.'/libs/gsi/data/'.$class_name.'.php')) {
include_once $folder.'/libs/gsi/data/'.$class_name.'.php';
}
if(is_file($folder.'/libs/gsi/api/'.$class_name.'.php')) {
include_once $folder.'/libs/gsi/api/'.$class_name.'.php';
}
if(is_file($folder.'/libs/gsi/exporters/'.$class_name.'.php')) {
include_once $folder.'/libs/gsi/exporters/'.$class_name.'.php';
}
}
include_once $folder.'/config.php';
include_once $folder.'/libs/smj/Database.php';
global $test_mode;
$url = $_SERVER["SERVER_NAME"];
if(strstr($url,"tardis")||strstr($url,"darkh")) {
$test_mode = true;
} else {
$test_mode = false;
}
global $gdb;
$gdb = Databases::$gamesaveinfo;
$gdb->connect();
if(isset($_GET["module"])) {
$module = $_GET["module"];
}
if(isset($module)) {
include_once 'modules/AModule.php';
$module = AModule::LoadModule($module);
}
?>