forked from halo-battle/game
Ajoute un système de cron pour calculer le classement tous les jours, voir plus souvent
This commit is contained in:
parent
8bb4fdf398
commit
640d4bbec3
5 changed files with 33 additions and 1 deletions
|
|
@ -50,7 +50,9 @@ if ($cached['check'] == md5_file(ONYX.'config/root.xml').md5_file(ONYX.'modules/
|
|||
//$xml->validate();
|
||||
|
||||
if ($root = $xml->documentElement->getAttribute('root')) {
|
||||
if ($root == substr(FILE, 0, strlen($root))) {
|
||||
// Autorise les fichiers dans les dossiers htdocs/ et cron/
|
||||
$cron = str_replace("htdocs", "cron", $root);
|
||||
if ($root == substr(FILE, 0, strlen($root)) || $cron == substr(FILE, 0, strlen($cron))) {
|
||||
define('ROOT', $root);
|
||||
|
||||
$search = substr(FILE, strlen($root));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue