Call this v1.2
This commit is contained in:
parent
e963752b0e
commit
5d3e9206d8
@ -4,6 +4,8 @@
|
|||||||
// License: CC-BY-SA version 3.0
|
// License: CC-BY-SA version 3.0
|
||||||
// http://github.com/Pentium44/MTSM
|
// http://github.com/Pentium44/MTSM
|
||||||
|
|
||||||
|
include("config.php");
|
||||||
|
|
||||||
function recurse_copy($src,$dst) {
|
function recurse_copy($src,$dst) {
|
||||||
$dir = opendir($src);
|
$dir = opendir($src);
|
||||||
@mkdir($dst);
|
@mkdir($dst);
|
||||||
@ -166,8 +168,8 @@ function registerForm() {
|
|||||||
Email:</td><td><input class="text" type="text" name="email"></td></tr><tr><td>
|
Email:</td><td><input class="text" type="text" name="email"></td></tr><tr><td>
|
||||||
Password:</td><td> <input class="text" type="password" name="password"></td></tr><tr><td>
|
Password:</td><td> <input class="text" type="password" name="password"></td></tr><tr><td>
|
||||||
Password again:</td><td> <input class="text" type="password" name="password-again"></td></tr><tr><td>
|
Password again:</td><td> <input class="text" type="password" name="password-again"></td></tr><tr><td>
|
||||||
Registration token (required):</td><td> <input class="text" type="text" name="codeword"></td></tr><tr><td>
|
<?php if($GLOBALS['reg_token_required'] == "true") { echo 'Registration token (required):</td><td> <input class="text" type="text" name="codeword"></td></tr><tr><td>'; } ?>
|
||||||
<input class="text" type="submit" name="submitBtn" value="Register">
|
Go:</td><td> <input class="text" type="submit" name="submitBtn" value="Register">
|
||||||
</td></tr></table>
|
</td></tr></table>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
@ -834,8 +834,9 @@ else if(isset($_GET['do']))
|
|||||||
}
|
}
|
||||||
|
|
||||||
file_put_contents("mtm_db/users/usercount", $servercount);
|
file_put_contents("mtm_db/users/usercount", $servercount);
|
||||||
file_put_contents("mtm_db/users/" . stripslashes(htmlentities($_POST['username'])) . ".php", "<?php\n\$user_handle = \"" . stripslashes(htmlentities($_POST['user$
|
file_put_contents("mtm_db/users/" . stripslashes(htmlentities($_POST['username'])) . ".php", "<?php\n\$user_handle = \"" . stripslashes(htmlentities($_POST['username'])) . "\";\n\$user_password = \"" . sha1(md5($_POST['password'])) . "\";\n \$user_email = \"" . stripslashes(htmlentities($_POST['email'])) . "\"; \$user_fullname = \"" . stripslashes(htmlentities($_POST['fullname'])) . "\"; \$userid = \"" . $usergenid . "\";\n?>");
|
||||||
header("Location: index.php");
|
header("Location: index.php");
|
||||||
|
|
||||||
} // End registration tokens via config.php
|
} // End registration tokens via config.php
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user