From 1000a9f38ad0b3ec5f946eb1ec9ac439912c6bb9 Mon Sep 17 00:00:00 2001 From: Filip Nilsen Date: Mon, 25 Jan 2021 08:50:02 +0100 Subject: [PATCH] Creation of user folder now works! --- fboard/etc/cgi/register.php | 4 ++-- fboard/register/index.php | 10 +++++----- fboard/user/admin/index.php | 5 ----- fboard/user/cgi/register.php | 0 fboard/user/etc/login.php | 7 ------- fboard/user/etc/register.php | 11 ----------- fboard/user/includes/boardlist.php | 0 fboard/user/includes/footer.php | 0 fboard/user/includes/header.php | 6 ------ fboard/user/index.php | 8 -------- fboard/user/styling/style.css | 0 11 files changed, 7 insertions(+), 44 deletions(-) delete mode 100644 fboard/user/admin/index.php delete mode 100644 fboard/user/cgi/register.php delete mode 100644 fboard/user/etc/login.php delete mode 100644 fboard/user/etc/register.php delete mode 100644 fboard/user/includes/boardlist.php delete mode 100644 fboard/user/includes/footer.php delete mode 100644 fboard/user/includes/header.php delete mode 100644 fboard/user/index.php delete mode 100644 fboard/user/styling/style.css diff --git a/fboard/etc/cgi/register.php b/fboard/etc/cgi/register.php index bfd2db7..1202828 100644 --- a/fboard/etc/cgi/register.php +++ b/fboard/etc/cgi/register.php @@ -28,14 +28,14 @@ $username = test_input($_POST["username"]); $pattern = "/[^a-zA-z0-9_\-]/"; //remove any character that is not: a-z A-Z _ - $username = preg_replace($pattern, "", $username); -if (strlen($usename) < 2) { +if (strlen($username) < 2) { return; } //there needs to be a way to check if username is allready taken $base_dir = "./../.."; -$user_dir = $base_dir . "/user/" . username; +$user_dir = $base_dir . "/user/" . $username; echo user_dir; mkdir($user_dir); ?> diff --git a/fboard/register/index.php b/fboard/register/index.php index b5f25ee..2102ed4 100644 --- a/fboard/register/index.php +++ b/fboard/register/index.php @@ -6,11 +6,11 @@
-User name:
-Full name:
-Email:
-Password:
-Verify password:
+User name:
+Full name:
+Email:
+Password:
+Verify password:
diff --git a/fboard/user/admin/index.php b/fboard/user/admin/index.php deleted file mode 100644 index d0a4d97..0000000 --- a/fboard/user/admin/index.php +++ /dev/null @@ -1,5 +0,0 @@ - - - -

Administrate

- diff --git a/fboard/user/cgi/register.php b/fboard/user/cgi/register.php deleted file mode 100644 index e69de29..0000000 diff --git a/fboard/user/etc/login.php b/fboard/user/etc/login.php deleted file mode 100644 index 163128c..0000000 --- a/fboard/user/etc/login.php +++ /dev/null @@ -1,7 +0,0 @@ - - - -

Log in or create new user


-Log in -Register new User - diff --git a/fboard/user/etc/register.php b/fboard/user/etc/register.php deleted file mode 100644 index a7e512d..0000000 --- a/fboard/user/etc/register.php +++ /dev/null @@ -1,11 +0,0 @@ - - - -

Register new user

-

You might want to review the source code of fBoard before you register

-
- - - -
- diff --git a/fboard/user/includes/boardlist.php b/fboard/user/includes/boardlist.php deleted file mode 100644 index e69de29..0000000 diff --git a/fboard/user/includes/footer.php b/fboard/user/includes/footer.php deleted file mode 100644 index e69de29..0000000 diff --git a/fboard/user/includes/header.php b/fboard/user/includes/header.php deleted file mode 100644 index 558b59c..0000000 --- a/fboard/user/includes/header.php +++ /dev/null @@ -1,6 +0,0 @@ - - - -

fBoard

- - diff --git a/fboard/user/index.php b/fboard/user/index.php deleted file mode 100644 index 536ae86..0000000 --- a/fboard/user/index.php +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - diff --git a/fboard/user/styling/style.css b/fboard/user/styling/style.css deleted file mode 100644 index e69de29..0000000