-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathinit.php
59 lines (52 loc) · 2.19 KB
/
init.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
<?PHP
/*
* Copyright (C) 2007 megablue ([email protected], http://megablue.blogspot.com)
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
if(!defined('WORKING_PATH'))
define('WORKING_PATH', dirname(__FILE__) . "/");
date_default_timezone_set('Asia/Kuala_Lumpur');
if(substr(PHP_OS, 0, 3) == 'WIN')
define('isWindows', true);
else
define('isWindows', false);
class hostException extends Exception {}
class clientException extends Exception {}
class UndefinedVariable extends Exception {}
require_once(WORKING_PATH . "etc/functions.php");
require_once(WORKING_PATH . "etc/packet.php");
require_once(WORKING_PATH . "class/index.class.php");
require_once(WORKING_PATH . "class/timer.class.php");
require_once(WORKING_PATH . "class/event.class.php");
require_once(WORKING_PATH . "class/timer.class.php");
require_once(WORKING_PATH . "class/player.class.php");
require_once(WORKING_PATH . "class/room.class.php");
require_once(WORKING_PATH . "class/task.class.php");
require_once(WORKING_PATH . "class/mysql.class.php");
require_once(WORKING_PATH . "class/map.class.php");
require_once(WORKING_PATH . "class/w3xbnetclient.class.php");
require_once(WORKING_PATH . "class/gamehost.class.php");
require_once(WORKING_PATH . "class/masterbot.class.php");
require_once(WORKING_PATH . "class/hostassistance.class.php");
$old_error_handler = set_error_handler("myErrorHandler");
$dbserver = "mysql.yourserver.com";
$dbusername = "mysql_user";
$dbpassword = "mysql_password";
$dbname = "botdb";
$server_port = 6113;
$server_addr = 'bnet.blueserver.org';
$gameport = 6999;
?>