diff options
author | gbmor <ahriman@falte.red> | 2020-05-03 15:53:57 -0400 |
---|---|---|
committer | gbmor <ahriman@falte.red> | 2020-05-03 15:53:57 -0400 |
commit | fbe30e6eb5033daef7d69b528dea31b3d57f6a47 (patch) | |
tree | 2188dde37fdb8eb0a29e5048c6f5d7d18368cce7 | |
parent | 344d5a474025aa299f71bb27a6397bb863a29b44 (diff) | |
download | site-fbe30e6eb5033daef7d69b528dea31b3d57f6a47.tar.gz |
moved banned user check
-rw-r--r-- | .gitignore | 1 | ||||
-rwxr-xr-x | submit.php | 26 |
2 files changed, 2 insertions, 25 deletions
diff --git a/.gitignore b/.gitignore index 0adf2df..37ab0db 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ ultimate-email newusers.dat /table.* userlist +bannedusers.php diff --git a/submit.php b/submit.php index e1ce340..539cec5 100755 --- a/submit.php +++ b/submit.php @@ -12,37 +12,13 @@ <?php include("header.html"); ?> <div id="content" style="text-align: center;"> <?php +require_once('bannedusers.php'); if ($_SERVER["SERVER_NAME"] != "localhost") require_once "ultimate-email/support/smtp.php"; function isTaken($istaken) { return in_array($istaken, file("userlist", FILE_IGNORE_NEW_LINES)); } -function bannedUsers($name) { - return in_array($name, [ - 'abah', //same - 'abimks', //same - 'andro', //same - 'blades', //same as remy - 'bullah', //same - 'campari', //was selling eggdrop bots - 'derby', //same - 'hasbullah', //same - 'janda', //same - 'jundi', // reported by thunix as being part of a botnet - 'larasaty', //same - 'makmur', //same - 'makassar', //same - 'merc', // reactionary / troll - 'mks', //same - 'mom', //same - 'mzl', //attempted to infect Wilde with ransomware - 'naruto', //same - 'pria', //same - 'remy', //been trying to get accounts for DoS attacks - 'ripcode', //same as remy - ]); -} function forbidden_name($name) { return in_array($name, [ '0x0', |