-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.php
More file actions
24 lines (19 loc) · 769 Bytes
/
Copy pathindex.php
File metadata and controls
24 lines (19 loc) · 769 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
<?php
/**
* @author: Phil Brookes
* Twitter: @philthi
* email: phil@locals.ie
*/
include "autoloader.php";
use Core\Model\Utility\configuration;
use Core\Controller\Core\engine;
use Core\Model\Utility\registry;
configuration::addSetting("root_dir", dirname(__FILE__));
configuration::addSetting("config_dir", configuration::getSetting("root_dir") . DIRECTORY_SEPARATOR . "Core" . DIRECTORY_SEPARATOR . "Config");
configuration::loadFromIni(configuration::getSetting("config_dir") . DIRECTORY_SEPARATOR . "config.ini");
ini_set("default_socket_timeout", configuration::getSetting("socket_timeout"));
$players = array();
registry::addObject("players", $players);
$engine = new engine();
$engine->setStatus(STATUS_STARTUP);
$engine->loop();