<?php

// Error reporting
error_reporting(E_ALL ^ E_NOTICE);
define("FAKE", 1);
include "_cms/includes/global.php";
ObjMgr::Initialize();
if (isset($_POST['username'])) {
    if (ObjMgr::GetAccount()->Login($_POST['username'], $_POST['password'], false)) {
        header('Location: index.php');
    }
} else {
    if (ObjMgr::GetAccount()->m_loggedin) {
        header('Location: index.php');
    }
}
print '<!DOCTYPE html>

<html>
<head>
<title>Admin Login</title>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<style>

html, body
{
    height: 100%;
}

body
{