. try { // Do some standard HashOver setup work require (realpath ('../backend/standard-setup.php')); // Setup class autoloader setup_autoloader (); // Instantiate HashOver class $hashover = new \HashOver (); // Check if user is admin if ($hashover->login->isAdmin () === true) { // If so, redirect to moderation page header ('Location: moderation/'); } else { // If not, redirect to login page header ('Location: login/'); } } catch (\Exception $error) { echo Misc::displayException ($error); }