chore: reorganize files for easier Docker integration

This commit is contained in:
Emmanuel BENOîT 2025-01-02 14:02:30 +01:00
parent ab00e5ee08
commit 99511fe11f
Signed by: Emmanuel BENOîT
SSH key fingerprint: SHA256:l7PFUUF5TCDsvYeQC9OnTNz08dFY7Fvf4Hv3neIqYpg
1222 changed files with 0 additions and 0 deletions
game/site

35
game/site/index.php Normal file
View 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();
?>