Added full source code
This commit is contained in:
commit
33f8586698
1377 changed files with 123808 additions and 0 deletions
site
35
site/index.php
Normal file
35
site/index.php
Normal file
|
@ -0,0 +1,35 @@
|
|||
<?php
|
||||
|
||||
/* Load the engine's code */
|
||||
$__loader = array(
|
||||
'log', 'classloader',
|
||||
'version', 'game', 'tick', 'config',
|
||||
'db_connection', 'db_accessor', 'db',
|
||||
'library', 'actions', 'data_tree',
|
||||
'input', 'ajax', 'handler', 'engine',
|
||||
'resource', 'tracking', 'session',
|
||||
'account', 'prefs', 'output'
|
||||
);
|
||||
require_once("../scripts/loader.inc");
|
||||
|
||||
/* Identify game version, requested page and engine type, then read request
|
||||
* data */
|
||||
list($sitePath, $page, $eType) = input::identify();
|
||||
$input = input::read();
|
||||
|
||||
/* Load page handler */
|
||||
handler::load();
|
||||
|
||||
/* Load the engine */
|
||||
engine::load();
|
||||
|
||||
/* Connect to the DB */
|
||||
dbConnect();
|
||||
|
||||
/* Set up tracking cookie */
|
||||
tracking::init();
|
||||
|
||||
/* Handle requests */
|
||||
handleInput();
|
||||
|
||||
?>
|
Reference in a new issue