<?php if (isset($_GET["ec"])) { header("HTTP/1.1 " . $_GET["ec"] . " Error"); } require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/init.inc"; global $isLoggedIn; global $isLowerLoggedIn; if ($isLoggedIn || $isLowerLoggedIn) { require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/fragments/dashboard.inc"; } else { require_once $_SERVER['DOCUMENT_ROOT'] . "/pages/public.inc"; }