-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheaders.php
More file actions
36 lines (29 loc) · 851 Bytes
/
headers.php
File metadata and controls
36 lines (29 loc) · 851 Bytes
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
<?php
// Includes
require_once 'libs/geshi/src/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';
}
}
$folder = dirname(__FILE__);
require_once $folder.'/../DBSettings.php';
ini_set('default_charset', 'UTF-8');
global $settings;
$settings = new stdClass();
$settings->game_db = "masgau_gamesave";
$settings->masgau_db = "masgau_site";
global $test_mode;
$url = $_SERVER["SERVER_NAME"];
if(strstr($url,"darkho")) {
$test_mode = true;
} else {
$test_mode = false;
}
global $gdb;
$gdb = Databases::$gamesaveinfo;
$gdb->connect();
global $db;
$db = $gdb;
?>