FIRST AND FOREMOST: I can't grant you access to my mysql or ftp server, so if you need this please do NOT bit. You should work it out on your end.
I need a php fix to the following php code: [url removed, login to view]
The file is part of a CMS script, and it checks if user's email is banned right after he tries to post something.
This file works great for a full email address ban, based on email addresses on a db. What I want to make it happen is it to also ban email domains .
My database 'email' field is a "varchar(60) utf8_general_ci" type and right now if I put it gets banned, but if put @[url removed, login to view] or [url removed, login to view] or *.[url removed, login to view] nothing happens.
You work should focus on changing this script so it connects to $t_emailblock mysql table and verify if 'email' field is equal or contains a domain used in $_POST['email']
if domain or full email address is banned it echos ban message.
The final fix should work with, examples:
something(at)[url removed, login to view] - for user ban
[url removed, login to view] - for domain ban
so if I add these two to my table in sql, and user tries to post a new message with either one of those addresses, he should see ban message.
This is an urgent fix, please seriously bid.