php_library_path . "login_library.php"; include $site->php_library_path . "display_library.php"; // Some data has bee posted, interpret as attempt to login $_SESSION['guest']==true; $_SESSION['firstname'] = "Guest"; $x = rand(1,10) * rand(1,10); $_SESSION['surname'] = $x; include $site->php_library_path . "database_library.php"; include $site->php_library_path . "user_library.php"; $mysql_id=database_connect("index.php database connect success","index.php database connect fail"); $_SESSION['login_ldap'] = "Guest" . $x; if(check_if_first_time($_SESSION['login_ldap'])){ //create the user a new id $_SESSION['login_id'] = create_user_id(); //create a virtual root folder for this user create_a_virtual_root_folder(); }else{ $_SESSION['login_id'] = get_user_id(); update_user_logon_time(); } echo file_get_contents($site->website_code_path . "management_top"); list_users_projects("date_down"); echo file_get_contents($site->website_code_path . "management_middle"); list_blank_templates(); echo file_get_contents($site->website_code_path . "management_bottom"); ?>