/* * Patch for filter_var() */ if(!function_exists('filter_var')){ define('FILTER_VALIDATE_IP', 'ip'); define('FILTER_FLAG_IPV4', 'ipv4'); define('FILTER_FLAG_IPV6', 'ipv6'); define('FILTER_VALIDATE_EMAIL', 'email'); define('FILTER_FLAG_EMAIL_UNICODE', 'unicode'); function filter_var($variable, $filter, $option = false){ if($filter == 'ip'){ if($option == 'ipv4'){ if(preg_match("/(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})/", $variable, $matches)){ $variable = $matches[1]; return $variable; } } if($option == 'ipv6'){ if(preg_match("/\s*(([:.]{0,7}[0-9a-fA-F]{0,4}){1,8})\s*/", $variable, $matches)){ $variable = $matches[1]; return $variable; } } } if($filter == 'email'){ if($option == 'unicode' || $option == false){ if(preg_match("/\s*(\S*@\S*\.\S*)\s*/", $variable, $matches)){ $variable = $matches[1]; return $variable; } } } } }
He should advertise it more in-game :P Free tokens if you click this link and register!Much better! :P :lol:
Any progress on it stephen? There is over 3000 registered members; lets say 1500 of them have forgotten about the forums. the other 1500 should liven up the forum :( It always seems dead here :(It's all because you show up at inconvenient times. Come more often; we'll have a party then. :P :lol:
Any progress on it stephen? There is over 3000 registered members; lets say 1500 of them have forgotten about the forums. the other 1500 should liven up the forum :( It always seems dead here :(
and i'll have interwebs and new computer by then :DAny progress on it stephen? There is over 3000 registered members; lets say 1500 of them have forgotten about the forums. the other 1500 should liven up the forum :( It always seems dead here :(
Wait till I've finished my degree. I'll be doing AM stuff then.