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 @@