tournaments 2.0

This commit is contained in:
2022-12-20 03:57:09 +02:00
parent cf51f4d996
commit 7a5dfd22a7
13 changed files with 631 additions and 685 deletions
+7 -5
View File
@@ -1,5 +1,8 @@
<?php
use Core\Config;
use Insallah\Tournaments\Tournament;
error_reporting(E_ALL ^ E_NOTICE);
ini_set('display_errors', 'Off');
setlocale(LC_CTYPE, "ru_RU.CP1251");
@@ -33,9 +36,8 @@ spl_autoload_register(function ($className) {
});
$code = '1';
\Core\Config::init();
$c = \Core\Config::get();
Config::init();
$c = Config::get();
//Tournament::startAllBattles();
if (isset($_GET['version'])) {
die('Version: ' . $c['ver']);
}