Hi,
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: [login to view URL]
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 @[login to view URL] or [login to view URL] or *.[login to view URL] 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)[login to view URL] - for user ban
[login to view URL] - 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.