function secu_isloged() { if (session_status() != PHP_SESSION_ACTIVE) { session_start(); } if (isset($_SESSION["spic_cotime"]) && time() - $_SESSION["spic_cotime"] < CO_TIME) { return true; } secu_logout(); return false; }
include __DIR__ . "/private/page/home.page.php"; } else { header("Location: ./login"); } exit; } else { if ($req === "index.php" || $req === "index.html") { header("Location: ."); exit; } else { if ($req === "login") { include __DIR__ . "/private/page/login.page.php"; exit; } else { if ($req === "logout") { secu_logout(); header("Location: ."); exit; } } } } $file = realpath(STORAGE . '/' . $req); if (!is_file($file) || dirname($file) != STORAGE) { header("HTTP/1.0 404 Not Found"); include __DIR__ . "/private/page/404.page.php"; exit; } $size = @getimagesize($file); if ($size == false) { header("HTTP/1.0 404 Not Found");