diff --git a/WebInterface/game-site/config.php b/WebInterface/game-site/config.php index 8aeff56..472607c 100755 --- a/WebInterface/game-site/config.php +++ b/WebInterface/game-site/config.php @@ -19,6 +19,4 @@ $EXHANGE_RATE = 100000; # How much 1 USD is worth as HI Money # Ideally, this would be a random string of numbers, letters and symbols like 20 characters long T-T $hmac_secret = "!!NOTSET!!"; $master_site = "//server.islehorse.com"; -# Password for /web/admin -$admin_portal_password = "!!NOTSET!!"; ?> diff --git a/WebInterface/game-site/web/admin/administrate.php b/WebInterface/game-site/web/admin/administrate.php deleted file mode 100644 index 7a55e64..0000000 --- a/WebInterface/game-site/web/admin/administrate.php +++ /dev/null @@ -1,100 +0,0 @@ - 86400]); -include("../header.php"); -?> - -
- -prepare("SELECT id FROM Users WHERE username=?"); - $stmt->bind_param("s", $_POST["USERNAME"]); - $stmt->execute(); - $result = $stmt->get_result(); - $user_id = intval($result->fetch_row()[0]); - - if(isset($_POST["RESETPASS1"], $_POST["RESETPASS2"])) - { - $pass1 = $_POST["RESETPASS1"]; - $pass2 = $_POST["RESETPASS2"]; - - if($pass1 == $pass2) - { - if($pass1 !== "" || $pass1 !== null) - { - $password_hash = hash_salt($pass1,$salt); - $stmt = $connect->prepare("UPDATE Users SET Password=? WHERE Id=?"); - $stmt->bind_param("s",$password_hash, "i", $user_id); - $stmt->execute(); - - } - } - } - - if(isset($_POST["ADMIN"])) - { - $stmt = $connect->prepare("UPDATE Users SET Admin=\"YES\" WHERE Id=?"); - $stmt->bind_param("i", $user_id); - $stmt->execute(); - } - else - { - $stmt = $connect->prepare("UPDATE Users SET Admin=\"NO\" WHERE Id=?"); - $stmt->bind_param("i", $user_id); - $stmt->execute(); - } - if(isset($_POST["MOD"])) - { - $stmt = $connect->prepare("UPDATE Users SET Moderator=\"YES\" WHERE Id=?"); - $stmt->bind_param("i", $user_id); - $stmt->execute(); - } - else - { - $stmt = $connect->prepare("UPDATE Users SET Moderator=\"NO\" WHERE Id=?"); - $stmt->bind_param("i", $user_id); - $stmt->execute(); - } - echo("
Permissions updated successfully.
"); - echo("Go back"); - include("../footer.php"); - exit(); - } - } -?> -
HISP - Admin Portal
-
Player Operations
-
- Username: - -
- Administrator - Moderator -
-

Reset Password

- -

Reset Password(confirm)

- - - -
-
-
- Logout from admin portal
-
- - - \ No newline at end of file diff --git a/WebInterface/game-site/web/admin/common.php b/WebInterface/game-site/web/admin/common.php deleted file mode 100644 index 2318f50..0000000 --- a/WebInterface/game-site/web/admin/common.php +++ /dev/null @@ -1,15 +0,0 @@ - \ No newline at end of file diff --git a/WebInterface/game-site/web/admin/index.php b/WebInterface/game-site/web/admin/index.php deleted file mode 100644 index 2d5b9a6..0000000 --- a/WebInterface/game-site/web/admin/index.php +++ /dev/null @@ -1,24 +0,0 @@ - 86400]); -$_SESSION["A_LOGGED_IN"] = "NO"; -include("../header.php"); -?> - - -
- -
HISP - Super Admin Login
-
This page requires a password, please enter it below:
-
- - -
-
-
No idea? check config.php of game-site/
- - - \ No newline at end of file diff --git a/WebInterface/game-site/web/admin/login.php b/WebInterface/game-site/web/admin/login.php deleted file mode 100644 index e81bdcc..0000000 --- a/WebInterface/game-site/web/admin/login.php +++ /dev/null @@ -1,40 +0,0 @@ - 86400]); -include("../header.php"); -?> - -
- -
HISP - Super Admin Login
- The password you entered was NOT correct.
"); - echo("Try Again..."); - } - } - else - { - echo("
You didnt enter a password.
"); - echo("Try Again..."); - } -?> - - - \ No newline at end of file