<?php include_once 'classes/Authentication.php'; include_once 'classes/Database.php'; include_once 'classes/User.php'; include_once 'classes/Error.php'; $db = Database::getDatabase(); Authentication::sec_session_start(); if (Authentication::login_check($db->getMysqli()) == true && $_SESSION['auth'] == 0) { $empty; Database::mailTest($empty); ?> <?php } else { echo '<script type="text/javascript">alert("Not authorized")</script>'; header('Location: access-error.php'); }