Quote:
Originally Posted by Jim O
I've modified the code to disallow users from specified countries. It hasn't been fully tested as I haven't had any registrations yet from those countries but the changes are fairly simple and I suspect that it will work as intended. I'd be happy to share it with the developer's permission.
|
Not a bad idea, I think I will add it to the next version if I get time. To do it in the code, simply find this line in whois.php:
Code:
if (!in_array($country, $valid_countries)) { $userdata->set('usergroupid', 4); }
Change to:
Code:
if (in_array($country, $valid_countries)) { $userdata->set('usergroupid', 4); }
Now your include list becomes and exclude list.
Cheers.