| |
The time now is Thu Sep 09, 2010 12:09 pm |
Posted: Wed Oct 24, 2007 9:44 pm Post subject: Timezone rule |
 |
|
 |
|
WebSnail Phpbb coder
Joined: 14 Dec 2006 Posts: 38
|
Ever noticed how every spammer is from Australia?
Could we have a rule that takes into account if the registrant grabs the first field in timezone..
One thing though, could you take into account this mod:
http://www.snailsource.com/forum/viewtopic.php?t=4202
Mainly because I wrote it  |
|
|
Posted: Thu Oct 25, 2007 2:48 am Post subject: |
 |
|
 |
|
Lord Raiden Experienced user
Joined: 11 Dec 2006 Posts: 130
|
Nah, I haven't had them from Australia. But I sure have had a lot from Russia. |
|
|
Posted: Thu Oct 25, 2007 11:21 am Post subject: |
 |
|
 |
|
WebSnail Phpbb coder
Joined: 14 Dec 2006 Posts: 38
|
| Lord Raiden wrote: | | Nah, I haven't had them from Australia. But I sure have had a lot from Russia. |
Sorry, should have been more specific.
Timezone setting is always the very first option in the select field when a bot registers (ie: GMT-12) |
|
|
Posted: Sat Oct 27, 2007 7:42 pm Post subject: |
 |
|
 |
|
ramon fincken Site Admin
Joined: 11 Dec 2006 Posts: 274 Location: A'dam/Diemen, The Netherlands
|
Yep, thought of that too:
| Code: | // Timezone tests
if (isset ($timezone) && !empty ($timezone) && $timezone = -12) {
$locations = array (
'usa',
'us',
'london',
'paris',
'belgium',
'holland',
'bulgaria',
'cambodia',
'denmark',
'denver',
'deutschland',
'england',
'eritrea',
'nigeria',
'niger',
'milan',
'napels',
'netherlands',
'amsterdam',
'europe'
);
foreach ($locations as $testlocation) {
$pattern = '/' . $testlocation . '/';
preg_match($pattern, strtolower($location), $matches, PREG_OFFSET_CAPTURE);
if (count($matches) > 0) {
return array (
'error' => true,
'error_msg' => 'No valid timezone.'
);
}
}
$location = str_replace(' ', '', $location);
if (empty ($location)) {
return array (
'error' => true,
'error_msg' => 'No valid location for this timezone.'
);
}
} |
_________________ Phpbbantispam founder, available for freelance phpBB2 coding.
Get it while it's hot ! http://www.phpbbantispam.com/viewtopic.php?t=1
Project files & mailinglist: https://sourceforge.net/projects/phpbbantispam/ |
|
|
Posted: Tue Aug 18, 2009 1:30 pm Post subject: |
 |
|
 |
|
|
|
|
|
All times are GMT + 1 Hour
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|