forked from halo-battle/game
Fix for PHP 7.2 compatibility
This commit is contained in:
parent
162dd444bd
commit
2be9fcd5c3
12 changed files with 21 additions and 15 deletions
|
|
@ -6,10 +6,12 @@ $titre = 'Vérification flottes';
|
|||
//Vérification des flottes
|
||||
if (!isset($_GET['ceil'])) $_GET['ceil'] = 5000;
|
||||
|
||||
$chapeau->connexion();
|
||||
$req = mysql_query("SELECT * FROM `$table_flottes` ORDER BY `start_time` DESC");
|
||||
$bdd = new BDD();
|
||||
$res = $bdd->query("SELECT * FROM `$table_flottes` ORDER BY `start_time` DESC");
|
||||
$bdd->deconnexion();
|
||||
$tableau = array();
|
||||
while($resultat = mysql_fetch_array($req)) {
|
||||
if (isset($resultat))
|
||||
foreach($resultat as $res) {
|
||||
$user_source = infoPlan($resultat['end_galaxie'], $resultat['end_ss'], $resultat['end_position'], 'id_user');
|
||||
if ($resultat['contenu_metal'] + $resultat['contenu_cristal'] + $resultat['contenu_hydrogene'] >= $_GET['ceil']) $color = 'FF0000';
|
||||
elseif ($user_source != $resultat['id_user']) $color = 'DFBF00';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue