12345678910111213141516171819202122232425262728293031 |
- <?php
-
- if(@!$_SESSION['session'])
- {
-
- $connected="0";
- }
- if(@$_SESSION['session'])
- {
- require_once(''.$MainDir.'user/verifications.php');
- $connected="1";
-
-
-
- $sql="SELECT user_rank FROM user WHERE id_user=$id_user";
- $req = mysql_query($sql) or die('Erreur SQL !<br />'.$sql.'<br />'.mysql_error());
- $user_ranking = mysql_fetch_assoc($req);
- $user_rank="$user_ranking[user_rank]";
- if($user_rank==1){
-
- $admin_mode = "1";
-
- }else{
- $admin_mode = "0";
-
- }
-
- }
-
- ?>
|