CANNOT FIND GUEST USER: " . read_config_option("guest_user") . ""; }else{ $_SESSION["sess_user_id"] = $guest_user_id; } } /* if we are a guest user in a non-guest area, wipe credentials */ if (!empty($_SESSION["sess_user_id"])) { if ((!isset($guest_account)) && (db_fetch_cell("select id from user_auth where username='" . read_config_option("guest_user") . "'") == $_SESSION["sess_user_id"])) { kill_session_var("sess_user_id"); } } if (empty($_SESSION["sess_user_id"])) { include("./auth_login.php"); exit; }elseif (!empty($_SESSION["sess_user_id"])) { $realm_id = db_fetch_cell("select realm_id from user_realm_filename where filename='" . basename($_SERVER["PHP_SELF"]) . "'"); if (!db_fetch_assoc("select user_auth_realm.realm_id from user_auth_realm where user_auth_realm.user_id='" . $_SESSION["sess_user_id"] . "' and user_auth_realm.realm_id='$realm_id'")) { include_once($config["include_path"] . "/form.php"); include($config["include_path"] . "/top_header.php"); print " \n \n \n \n \n \n \n \n
Access Denied
You are not permitted to access this section of cacti. If you feel that you need access to this particular section, please contact the webmaster.
\n"; include($config["include_path"] . "/bottom_footer.php"); exit; } } } ?>