Stavo per scrivere che avevo capito cosa correggere, ma la tua tempestività è stata folgorante......
Volevo solo aggiungere che l'unica parte di admin di tutto lo script decanta:
ma poco ci capisco per proteggere pagine e/o directory......codice:You're in the admin section of the site. You could put whatever you wanted the admin's of your site to see in here. You dont have to stick to this layout either, as long as you have got the following in the top of your files: <?php session_start(); ?> You can then call the users details by using the following anywhere in your template: <?php print $_SESSION['user']; ?> <?php print $_SESSION['pass']; ?> <?php print $_SESSION['permission']; ?> <?php print $_SESSION['email']; ?> <?php print $_SESSION['url']; ?> <?php print $_SESSION['dob']; ?> <?php print $_SESSION['location']; ?> <?php print $_SESSION['joined']; ?> By using conditions, you could decide on who sees what. Look at the following examples: <?php if(!$_SESSION['permission']) # Display text for 'users' only elseif($_SESSION['permission'] == 1) # Display text for 'mods' only elseif($_SESSION['permission'] > 1) # Display text for 'admins' only #etc. ?>