From 18b82274f3caa0aa055d6c8ba93ffbb30e1e062c Mon Sep 17 00:00:00 2001 From: BodgeMaster <> Date: Tue, 7 Sep 2021 09:03:59 +0200 Subject: [PATCH] removed another useless file --- README.md | 6 ---- admin.php | 83 ------------------------------------------------------- 2 files changed, 89 deletions(-) delete mode 100644 admin.php diff --git a/README.md b/README.md index 8657779..f63e9f1 100644 --- a/README.md +++ b/README.md @@ -52,12 +52,6 @@ This folder contains all the files that are parts of ThreadR directly A place to store the configuation for a specific ThreadR instance (contains official instance config for now, will be moved elsewhere eventually) ### [[DIR] macros](./macros) files for use with variable_grabbler.py -### [admin.php](./admin.php) -~~This is the file that is shown on the internal admin page. It will contain a list of users, forums, threads, etc. -At the moment, it is just a convenient way to access the other internal administration tools. -This is not directly a part of ThreadR.~~ - -This is part of the server management tools and therefore will be gone from this repository soon. ### [default.html](./default.html) The main index.html on the server. It redirects to ThreadR. ### [deployment_script.sh](./deployment_script.sh) diff --git a/admin.php b/admin.php deleted file mode 100644 index 6c925c6..0000000 --- a/admin.php +++ /dev/null @@ -1,83 +0,0 @@ -Error: Not all values populated.

"; - } - if ($_POST['password'] != $_POST['password_confirmation']) { - $error = true; - $error_message = "

Error: Password confirmation does not match password.

"; - } - if (!$error) { - $statement = $pdo->prepare('INSERT INTO users (name, authentication_string, authentication_salt, authentication_algorithm) VALUES (:name, :authentication_string, :authentication_salt, :authentication_algorithm)'); - $result = $statement->execute(array('name' => $_POST['name'], 'authentication_string' => hash($password_hash_method, $_POST['password'] . $random_salt), 'authentication_salt' => $random_salt, 'authentication_algorithm' => $password_hash_method)); - if (!$result) { - $error_message = "

Error: SQL error.

" . $statement->queryString . "
" . $statement->errorInfo()[2] . "
"; - } - } - } - } -?> - - - - LostCave Admin Page - - - -

Useful links

- -

User Management

-

Registered Users

- - - query($query) as $row) { - echo ""; - } - ?> -
User IDNameAuthentication algorithm
".$row['id']."".$row['name']."".$row['authentication_algorithm']."
-

Add user

-
- - - - - -
- -