include("../person/config/conf.php"); include("../person/config/config.php"); include("../person/logincheck.php"); conn_web_db(); session_start(); $connectedvid = $_SESSION['Id']; $error = $_GET['error']; if($connectedvid=="") { $connectedvid = 1; } // CONNEXION MYSQL $db_link = mysql_connect($sql_serveur,$sql_user,$sql_passwd); if(!$db_link) {echo "No connected to $sql_bdd on the server $sql_server"; exit;} // SELECTION DE L'ENREGISTREMENT CONTENANT L'ID EN COURS $req=mysql_db_query($sql_bdd,"select * from user_data where Pers_Id=\"$connectedvid\" and Rating>0",$db_link) or die(mysql_error()); // SI L'ID N'EXISTE PAS if(mysql_num_rows($req)==0) { // REDIRECTION PAGE ERREUR header("Location:../members/person/login.php?XURL=$this_site"); exit; } // LIGNE FACULTATIVE : RECUPERATION DU PSEUDO $Req_Id=mysql_result($req,0,"Pers_Id"); $Req_Rating=mysql_result($req,0,"Rating"); if($Req_Rating<11) { header("Location:../noaccess.php"); exit; } mysql_close($db_link); ?>
Enter Member ID :