mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-23 05:05:53 +12:00
Rewrite alot of how game & master site are handled (note in current state its impossible to make an account.)
This commit is contained in:
parent
1ad0783f8f
commit
c12399dc0e
23 changed files with 548 additions and 888 deletions
40
WebInterface/game-site/web/admin/login.php
Normal file
40
WebInterface/game-site/web/admin/login.php
Normal file
|
@ -0,0 +1,40 @@
|
|||
<?php
|
||||
include("../config.php");
|
||||
|
||||
session_start(['cookie_lifetime' => 86400]);
|
||||
include("../header.php");
|
||||
?>
|
||||
|
||||
<CENTER>
|
||||
<FONT FACE=Verdana,arial SIZE=-1>
|
||||
<BR><B>HISP - Super Admin Login</B><BR>
|
||||
<?php
|
||||
if(isset($_POST["PASS"]))
|
||||
{
|
||||
sleep(3); // Stop bruteforce
|
||||
if($_POST["PASS"] == $admin_portal_password)
|
||||
{
|
||||
if($admin_portal_password == "!!NOTSET!!")
|
||||
{
|
||||
echo("Refusing to login as password is default password.");
|
||||
exit;
|
||||
}
|
||||
|
||||
$_SESSION["logged_in"] = true;
|
||||
header("Location: administrate.php");
|
||||
}
|
||||
else
|
||||
{
|
||||
echo("<BR> The password you entered was NOT correct. </BR>");
|
||||
echo("<A HREF=\"/admin\">Try Again...</A>");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
echo("<BR> You didnt enter a password. </BR>");
|
||||
echo("<A HREF=\"/admin\">Try Again...</A>");
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
<?php include("../footer.php"); ?>
|
Loading…
Add table
Add a link
Reference in a new issue