background-color:#FFF; } </style> </head> <body> <?php $auth = new Authorization(); //create authorization object if (isset($_POST['logout'])) { //user has attempted to log out $auth->revoke(); } else { if (isset($_POST['login'])) { if ($_POST['password'] == $password) { $auth->grant(); } } } if (!$auth->isAuthorized()) { echo "<div id='loginBox'>"; echo "<h1>" . PROJECT . " <span style='font-size:14px; color:#000;'>v" . VERSION . "</span></h1>"; echo "<div style='padding:15px;'>"; echo "<form action='" . PAGE . "' method='post'>"; echo "Password: <input type='password' name='password'/>"; echo "<input type='submit' value='Log In' name='login'/>"; echo "</form>"; echo "</div>"; echo "</div>"; } else { if (sizeof($databases) > 0) {
} } } } } $auth = new Authorization(); //create authorization object if (isset($_POST['logout'])) { //user has attempted to log out $auth->revoke(); } else { if (isset($_POST['login']) || isset($_POST['proc_login'])) { $_POST['login'] = true; if ($_POST['password'] == SYSTEMPASSWORD) { if (isset($_POST['remember'])) { $auth->grant(true); } else { $auth->grant(false); } } } } //user is downloading the exported database file if (isset($_POST['export'])) { header('Content-Type: text/sql'); header('Content-Disposition: attachment; filename="' . $_POST['filename'] . '.' . $_POST['export_type'] . '";'); if (isset($_POST['tables'])) { $tables = $_POST['tables']; } else { $tables = array(); $tables[0] = $_POST['single_table'];