<?php
declare(strict_types=1);
if (!defined('GRPG_INC')) {
    define('GRPG_INC', true);
}
require_once __DIR__ . '/dbcon.php';
if ((defined('CATPCHA_REGISTRATION') && CATPCHA_REGISTRATION === true) || (defined('CAPTCHA_LOGIN') && CAPTCHA_LOGIN === true) || (defined('CAPTCHA_FORGOT_PASSWORD') && CAPTCHA_FORGOT_PASSWORD === true)) {
    require_once __DIR__ . '/securimage/securimage.php';
    $securimage = new Securimage();
}
$time     = date('F d, Y g:i:sa');
$site_url = read_secret('SITE_URL');
ob_start(); ?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <?php
    if ($site_url !== null) {
        ?>
        <base href="<?php echo rtrim($site_url, '/') . '/'; ?>"/>
        <?php
    } ?>
    <title><?php echo GAME_NAME; ?></title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <link rel="stylesheet" type="text/css" media="all" href="/css/login.css"/>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/g/pure@0.6.2(buttons-min.css+grids-min.css+forms-min.css)"
          integrity="sha384-+YK1ur0Mr74WEZWTMC6oMb5fojhkGm6EpjgVheKlE9urf2PbykYP7MxdwPpruQB8" crossorigin="anonymous"/>
</head>
<body>
<table bgcolor="#1E1E1E" border="0" cellspacing="0" cellpadding="0" width="100%">
    <tr>
        <td>
            <table class="topbar">
                <tr>
                    <td>&gt; Server Time: <?php echo $time; ?></td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td colspan="3" class="pos1" height="55" valign="middle">
            <div class="topbox">
                <table width="800">
                    <tr>
                        <td width="50%" class="center"><img src="/images/logos/logo.png" alt="GRPG"
                                                            style="height:150px;"/></td>

                    </tr>
                </table>
            </div>
        </td>
    </tr>
    <tr>
        <td>
            <table width="100%" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td valign="top" width="150">
                        <div>
                            <div class="headbox">Menu</div>
                            <a href="/index.php" class="leftmenu">Home</a>
                            <a href="/login.php" class="leftmenu">Login</a>
                            <a href="/register.php" class="leftmenu">Register</a>
                            <a href="/forgot.php" class="leftmenu">Account Recovery</a>
                        </div>
                    </td>
                    <td valign="top">
                        <table border="0" cellspacing="0" cellpadding="0" width="100%">
                            <tr>
                                <td width="10"></td>
                                <td valign="top" class="mainbox">
                                    <table class="content">
