- improved player and playerHandler

- logs subfolder
This commit is contained in:
Steffen Schröder
2013-11-10 17:23:00 +01:00
parent bc5b1842c2
commit 950ad1098b
4 changed files with 207 additions and 87 deletions

View File

@@ -13,10 +13,13 @@ if (function_exists('date_default_timezone_get') && function_exists('date_defaul
// Error handling
ini_set('log_errors', 1);
ini_set('error_reporting', -1);
ini_set('error_log', 'ManiaControl_' . getmypid() . '.log');
if (!is_dir('logs')) {
mkdir('logs');
}
ini_set('error_log', 'logs/ManiaControl_' . getmypid() . '.log');
// Load ManiaControl class
require_once __DIR__ . '/core/maniaControlClass.php';
require_once __DIR__ . '/core/maniaControl.php';
// Start ManiaControl
error_log('Loading ManiaControl v' . ManiaControl::VERSION . '...');