Doman Ban
Class.banlist.php, change the last function to
function isbanned($email) {
return db_num_rows(db_query('SELECT id FROM '.BANLIST_TABLE.' WHERE email LIKE '.db_input('%'.$email)))?true;
}
Admin.php under the scp directory, remove the email validation or change the function in class.validator.php to accept "@example.com"
case 'banlist': //BanList.
require_once(INCLUDE_DIR.'class.banlist.php');
switch(strtolower($_POST)) {
case 'add':
if(!$_POST || !Validator:($_POST))
$errors='Please enter a valid email.';
elseif(BanList:($_POST))
$errors='Email already banned';
else{
if(BanList:($_POST,$thisuser->getName()))
$msg='Email added to banlist';
else
$errors='Unable to add email to banlist. Try again';
}
break;
That should allow you to ban domains.