Version 1.7l
This commit is contained in:
parent
ba5e741c99
commit
aea537909a
42 changed files with 718 additions and 131 deletions
|
|
@ -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'));
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue