import("models.admin"); import("lib.postget"); # Load the settings $settings = Settings::get(); #=================================== # Create a new admin, which will # either check the users post details # against the database or check # the users session details #=================================== # Checks if required variables are present. if (!postget::has("post", "email", "password")) { die("Username and password required"); } # Gets optional vairables, and uses the default if not present $additional = postget::get($_POST, array("remember" => false, "ipchange" => false)); $admin = new admin($_POST['email'], $_POST['password'], $additional['remember'], $additional['ipchange']); ?> <!DOCTYPE HTML> <html> <head> <!-- Echo title from the database --> <title><?php echo $settings['storetitle']; ?> | Admin Panel</title> <!-- Import Bootstrap --> <?php HTMLA::css("../static/css/bootstrap.min.css"); ?>