- renamed ManiaControl start script
- setting manager prototype
This commit is contained in:
27
application/ManiaControl.php
Normal file
27
application/ManiaControl.php
Normal file
@ -0,0 +1,27 @@
|
||||
<?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/maniaControlClass.php';
|
||||
|
||||
// Start ManiaControl
|
||||
error_log('Loading ManiaControl v' . ManiaControl::VERSION . '...');
|
||||
|
||||
$maniaControl = new ManiaControl();
|
||||
$maniaControl->run();
|
||||
|
||||
?>
|
Reference in New Issue
Block a user