Changed mControl to ManiaControl

This commit is contained in:
Steffen Schröder
2013-11-09 11:19:21 +01:00
parent 97f9a6019a
commit 5d166776f8
30 changed files with 126 additions and 122 deletions

View File

@ -0,0 +1,26 @@
<?php
namespace ManiaControl;
define('ManiaControlDir', __DIR__);
require_once __DIR__ . '/core/core.ManiaControl.php';
// 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');
// Start ManiaControl
error_log('Loading ManiaControl v' . ManiaControl::VERSION . '!');
$maniaControl = new ManiaControl();
$maniaControl->run(true);
?>