Version 1.7l

This commit is contained in:
nemunaire 2008-11-19 12:00:00 +01:00
commit aea537909a
42 changed files with 718 additions and 131 deletions

View file

@ -70,8 +70,11 @@ xtdi = ""; //implication degree
$bdd = new bdd();
$bdd->connexion();
$bdd->query("SELECT id FROM $table_user WHERE race = 'covenant';"); $nbcovie = $bdd->num_rows;
$bdd->query("SELECT id FROM $table_user WHERE race = 'humain';"); $nbhumain = $bdd->num_rows;
$nbcovie = $bdd->unique_query("SELECT COUNT(id) AS covenants FROM $table_user WHERE race = 'covenant';");
$nbhumain = $bdd->unique_query("SELECT COUNT(id) AS humains FROM $table_user WHERE race = 'humain';");
//Nombre de joueur(s) en ligne ^^
$enligne = $bdd->unique_query("SELECT COUNT(xid) AS enligne FROM sessions WHERE active=1 AND var_session !='';");
//Bandeau d'informations
$infos = $bdd->query("SELECT * FROM $table_infoshead");
@ -81,5 +84,6 @@ $bdd->deconnexion();
//Affichage du header
$template->assign('infos',$infos);
$template->assign('nbinfos',$bdd->num_rows-1);
$template->assign('count',array('humains' => $nbhumain, 'covenants' => $nbcovie, 'serveurs' => 'cette'));
$template->assign('enligne',$enligne['enligne']);
$template->assign('count',array('humains' => $nbhumain['humains'], 'covenants' => $nbcovie['covenants'], 'serveurs' => 'cette'));
?>