fix: disallow Natars user registration

#382
This commit is contained in:
Martin Ambrus
2017-11-26 16:55:37 +01:00
parent ef416cd548
commit d3b51a34ec
3 changed files with 17 additions and 4 deletions
+6
View File
@@ -5,6 +5,12 @@
exit;
}
// don't allow creating Natars user
if (!empty($_POST['aname']) && strtolower($_POST['aname']) == 'natars') {
header("Location: ../index.php?s=4&err=2");
exit;
}
// don't let SQL time out when 30-500 seconds (depending on php.ini) is not enough
@set_time_limit(0);