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
16
cron/classement.php
Normal file
16
cron/classement.php
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
// Ce cron met à jour le classement des joueurs.
|
||||
|
||||
//Définition de la constante anti-hacking
|
||||
define("INDEX", 1);
|
||||
define("DEBUG", false);
|
||||
|
||||
//Inclusion de l'API Onyx
|
||||
require_once(__DIR__ . "/../onyx2/load.php");
|
||||
require_once("common.php");
|
||||
|
||||
$bdd = new BDD();
|
||||
|
||||
$updated = $bdd->update_classement();
|
||||
$bdd->deconnexion();
|
||||
Loading…
Add table
Add a link
Reference in a new issue