TrackManiaControl/application/startManiaControl.php
Steffen Schröder d2744a5157 - removed unnecessary files
- cleaned up database class
- plugin and plugin handler class
- improved player and player handler classes
- other cleanup and improvements
2013-11-10 02:55:08 +01:00

28 lines
681 B
PHP

<?php
use ManiaControl\ManiaControl;
// Define base dir
define('ManiaControlDir', __DIR__);
// Set process settings
ini_set('memory_limit', '128M');
if (function_exists('date_default_timezone_get') && function_exists('date_default_timezone_set')) {
date_default_timezone_set(@date_default_timezone_get());
}
// Error handling
ini_set('log_errors', 1);
ini_set('error_reporting', -1);
ini_set('error_log', 'ManiaControl_' . getmypid() . '.log');
// Load ManiaControl class
require_once __DIR__ . '/core/maniaControl.php';
// Start ManiaControl
error_log('Loading ManiaControl v' . ManiaControl::VERSION . '...');
$maniaControl = new ManiaControl();
$maniaControl->run();
?>