From 5d3e9206d8b2d1a04d67bd821d425e74a4234221 Mon Sep 17 00:00:00 2001 From: Pentium44 Date: Wed, 3 Feb 2021 16:02:15 -0800 Subject: [PATCH] Call this v1.2 --- functions.php | 6 ++++-- index.php | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/functions.php b/functions.php index 5d1c6b5b..cbc6a1d6 100755 --- a/functions.php +++ b/functions.php @@ -4,6 +4,8 @@ // License: CC-BY-SA version 3.0 // http://github.com/Pentium44/MTSM +include("config.php"); + function recurse_copy($src,$dst) { $dir = opendir($src); @mkdir($dst); @@ -166,8 +168,8 @@ function registerForm() { Email: Password: Password again: - Registration token (required): - + '; } ?> + Go: diff --git a/index.php b/index.php index ecdb6048..eb0822fd 100755 --- a/index.php +++ b/index.php @@ -834,8 +834,9 @@ else if(isset($_GET['do'])) } file_put_contents("mtm_db/users/usercount", $servercount); - file_put_contents("mtm_db/users/" . stripslashes(htmlentities($_POST['username'])) . ".php", ""); header("Location: index.php"); + } // End registration tokens via config.php } else