/* * 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; } } } } }
Raw Paleo Diet Forums > Science
Permanent sticky thread on the anthropocene era
TylerDurden:
http://www.dailymail.co.uk/news/article-5697861/The-riddle-vanishing-sparrows-SOLVED.html
http://www.dailymail.co.uk/news/article-5697689/Piled-driftwood-scores-discarded-bottles-car-parts-tyres-choke-Yorkshire-stream.html
Interesting contrast made by the writer comparing the decline of the sparrows to the cuckoos used in mines to detect any gas. Implying that mankind will be next at some stage.
TylerDurden:
http://www.dailymail.co.uk/sciencetech/article-5698733/Cities-forcing-animals-evolve-unprecedented-speeds.html
TylerDurden:
http://www.dailymail.co.uk/sciencetech/article-5709579/Plastic-bag-10-000m-surface-Pacific-Ocean-worlds-deepest-ocean-trench.html
TylerDurden:
http://www.dailymail.co.uk/sciencetech/article-5714369/Filmmaker-captures-heartbreaking-images-albatrosses-killed-plastic-remote-pacific-island.html
TylerDurden:
http://www.dailymail.co.uk/news/article-5724673/Wild-flowers-face-extinction-UK-roadsides.html
Navigation
[0] Message Index
[#] Next page
Go to full version