/** * Main.php * * This is an example of the main page of a website. Here * users will be able to login. However, like on most sites * the login form doesn't just have to be on the main page, * but re-appear on subsequent pages, depending on whether * the user has logged in or not. * * Written by: Jpmaster77 a.k.a. The Grandmaster of C++ (GMC) * Last Updated: August 26, 2004 */ include("include/session.php"); $red = "/member/addtag.php?oid=".$_GET['oid']; ?>
/**
* User has already logged in, so display relavent links, including
* a link to the admin center if the user is an administrator.
*/
if($session->logged_in){
include("navbar.inc.php");
if($session->isAdmin()){
echo "[Admin Center] ";
}
echo "[Logout]";
}
else{
?>
[][Account] [Edit Account][I Tuoi Tags][ Log Out]Loggati nel tuo pannello di controllo./** * User not logged in, display the login form. * If user has already tried to login, but errors were * found, display the total number of errors. * If errors occurred, they will be displayed. */ if($form->num_errors > 0){ echo "".$form->num_errors." errori trovati."; } ?> } echo"Benvenuto $session->username, |