//PHP echo ($HTTP_SESSION_VARS[id]);
//$username = mysql_real_escape_string($_POST['username']);
//echo ($_SESSION['username']);
$username = mysql_real_escape_string($_SESSION['username']);
$password = mysql_real_escape_string($_SESSION['password']);
//$req = mysql_query('select id, username, email from signup');
//$query = Select * from signup where username="'.$username.'" And password = "'.$password.'"
$dnna = mysql_fetch_array(mysql_query('select * from signup where username="'.$_SESSION['username'].'"'));
//$result = mysql_query('select * from signup where username="'.$username.'" And password = "'.$password.'" ');
//if there are results check it the accesslevel is high enough. If there aren't results tell the user to log-in and stop (die) after that.
//if ($row = mysql_fetch_array($dnna))
//{
////echo "Ciao okokokokokokokokokok aaazzzz, ";
//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 offlog off