CMS ultra léger au style oldschool, projet de la communauté Kalaïn Hundin.

check_status.php 506B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. if(@!$_SESSION['session'])
  3. {
  4. $connected="0";
  5. }
  6. if(@$_SESSION['session'])
  7. {
  8. require_once(''.$MainDir.'user/verifications.php');
  9. $connected="1";
  10. $sql="SELECT user_rank FROM user WHERE id_user=$id_user";
  11. $req = mysql_query($sql) or die('Erreur SQL !<br />'.$sql.'<br />'.mysql_error());
  12. $user_ranking = mysql_fetch_assoc($req);
  13. $user_rank="$user_ranking[user_rank]";
  14. if($user_rank==1){
  15. $admin_mode = "1";
  16. }else{
  17. $admin_mode = "0";
  18. }
  19. }
  20. ?>