Code Cleanup
This commit is contained in:
@ -1,5 +1,4 @@
|
||||
<?php
|
||||
use ManiaControl\ManiaControl;
|
||||
|
||||
// Define base dir
|
||||
define('ManiaControlDir', __DIR__);
|
||||
@ -11,8 +10,10 @@ if (function_exists('date_default_timezone_get') && function_exists('date_defaul
|
||||
}
|
||||
|
||||
// Error handling
|
||||
ini_set('log_errors', 1);
|
||||
ini_set('log_errors', true);
|
||||
ini_set('display_errors', '1');
|
||||
ini_set('error_reporting', -1);
|
||||
ini_set('display_startup_errors', true);
|
||||
if (!is_dir('logs')) {
|
||||
mkdir('logs');
|
||||
}
|
||||
@ -22,9 +23,7 @@ ini_set('error_log', 'logs/ManiaControl_' . getmypid() . '.log');
|
||||
require_once __DIR__ . '/core/ManiaControl.php';
|
||||
|
||||
// Start ManiaControl
|
||||
error_log('Loading ManiaControl v' . ManiaControl::VERSION . '...');
|
||||
error_log('Loading ManiaControl v' . ManiaControl\ManiaControl::VERSION . '...');
|
||||
|
||||
$maniaControl = new ManiaControl();
|
||||
$maniaControl = new ManiaControl\ManiaControl();
|
||||
$maniaControl->run();
|
||||
|
||||
?>
|
||||
|
Reference in New Issue
Block a user