forked from Iruinable54/HabboPHP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
staff.php
39 lines (29 loc) · 1.45 KB
/
staff.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|
#| #|
#| HABBOPHP - http://habbophp.com #|
#| Copyright © 2012 Valentin & Robin. All rights reserved. #|
#| #|
#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|
require 'init.php';
$tpl->assign('groups','community');
$tpl->assign('selected','selected');
$tpl->display('header.tpl');
//Liste des rangs
// Pour ajouter un rang ajoutez cette ligne : array('Nom' => 'Modérateur' , 'Rank' => '10' , 'Couleur' => 'darkblue'), à l'intérieur du array $rank
$rank = array(
array('Nom' => 'Fondateur' , 'Rank' => '7' , 'Couleur' => 'blue'),
array('Nom' => 'Modérateur' , 'Rank' => '6' , 'Couleur' => '#000'),
array('Nom' => 'Codeur' , 'Rank' => '5' , 'Couleur' => 'red')
);
foreach($rank as $ranks){ $minRanks[] = $ranks['Rank'] ; } //On fait un array des ranks
array_multisort($minRanks,SORT_NUMERIC); // On les tri par ordre croissant
$query=$db->query("SELECT rank,username,motto,id,look FROM users WHERE rank>=".intval($minRanks[0]),true);
$tpl->assign('user_info',$query);
$tpl->assign('rank',$rank);
/////////////////////////////////////////////////
// Display
/////////////////////////////////////////////////
$tpl->display('staff.tpl');
$tpl->display('footer.tpl');
?>