include($_SERVER['DOCUMENT_ROOT']."/myfines2/web/mf/acl/access_user_class.php"); $page_protect = new Access_user; $sesija=session_id(); //uzmi session id //LOGOUT if (isset($_GET['action']) && $_GET['action']=="log_out"){ $page_protect->log_out(); //logout } // //$page_protect->access_page(); // only set this this method to protect your page if (isset($_SESSION['user'])){ $page_protect->get_user_info(); $hello_name="You are logged in as: "; $hello_name .= ($page_protect->user_full_name != "") ? $page_protect->user_full_name : $page_protect->user; switch ($_SESSION['access_level']){ case 1: $acctype="Individual";break; case 2: $acctype="Individual Plus";break; case 4: $acctype="Company";break; case 5: $acctype="Company Plus";break; case 9: $acctype="Staff";break; case 10: $acctype="Administrator";break; } $hello_name.= "