security page 2
Benvenuto Antonio prima riga

"; //check if the user's access level is higher than zero. since if it is lower than zero he is an admin which have access to al pages. //and check if the user's level is high enough for this page. if ($dnna[actnum] > 0 && $dnna[actnum] < $reqlevel) // inizio ciclo se vera condizione { echo "Ciao riconosciuto, okokokokokokokokokok
"; echo ($dnna[actnum]); echo ($reqlevel); //it seems that the user's access level isn't high enough. Therefore 'die' (stop processing the page) with that message that the access level isn't high enough. $dnn = mysql_fetch_array(mysql_query('select username,password,mailadres,actnum from signup where username="'.$_SESSION['username'].'"')); $username = htmlentities($dnn['username'], ENT_QUOTES, 'UTF-8'); $password = htmlentities($dnn['password'], ENT_QUOTES, 'UTF-8'); $email = htmlentities($dnn['mailadres'], ENT_QUOTES, 'UTF-8'); $avatar = htmlentities($dnn['actnum'], ENT_QUOTES, 'UTF-8'); ?> log off log off
You can edit your informations:





"; die("Non hai il permesso per accedere a queste pagine,
Your access level: $dnna[actnum]
level needed: $reqlevel"); } //} //else{ //if therer are no results tell the user to login and 'die' (stop processing the page) afer that //die("Please log-in."); ////echo "Ciao non sei stato riconosciuto nel database zzzz,
"; //echo "$username,ddd
"; //// echo ($_SESSION['username']); //// echo ($row[actnum]); //// echo "fine ciclo,
"; //} //echo ($reqlevel); $dnn = mysql_fetch_array(mysql_query('select username,password,mailadres,actnum from signup where username="'.$_SESSION['username'].'"')); $username = htmlentities($dnn['username'], ENT_QUOTES, 'UTF-8'); $password = htmlentities($dnn['password'], ENT_QUOTES, 'UTF-8'); $email = htmlentities($dnn['mailadres'], ENT_QUOTES, 'UTF-8'); $avatar = htmlentities($dnn['actnum'], ENT_QUOTES, 'UTF-8'); ?> log off log off
You can edit your informations: