moved banned user check

This commit is contained in:
gbmor 2020-05-03 15:53:57 -04:00
parent 344d5a4740
commit fbe30e6eb5
2 changed files with 2 additions and 25 deletions

1
.gitignore vendored
View File

@ -3,3 +3,4 @@ ultimate-email
newusers.dat
/table.*
userlist
bannedusers.php

View File

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