/*
* 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;
}
}
}
}
}
Print Page - Chinese are gasping for air
Paleo Diet: Raw Paleo Diet and Lifestyle Forum
Raw Paleo Diet Forums => Off Topic => Topic started by: TylerDurden on December 22, 2016, 04:44:10 am
-
http://www.dailymail.co.uk/news/peoplesdaily/article-4054462/Airpocalypse-Half-billion-Chinese-left-gasping-breath-hazardous-smog-forces-factories-close-20-cities-cars-ordered-road.html (http://www.dailymail.co.uk/news/peoplesdaily/article-4054462/Airpocalypse-Half-billion-Chinese-left-gasping-breath-hazardous-smog-forces-factories-close-20-cities-cars-ordered-road.html)
-
POLLUTION is the big fat problem. Not "warming"... not "cooling"... not "climate change"...
Staying in those places is NOT LIVING.
Whatever money they get to earn there is NOT WORTH IT.
-
http://www.dailymail.co.uk/news/peoplesdaily/article-4058222/Chinese-pupils-forced-test-outdoors-smog-barely-questions.html (http://www.dailymail.co.uk/news/peoplesdaily/article-4058222/Chinese-pupils-forced-test-outdoors-smog-barely-questions.html)
-
Outsourcing pollution to China by Western companies is just plain stupid in the long run.....
-
http://www.dailymail.co.uk/news/peoplesdaily/article-4086842/China-issues-national-red-alert-fog-toxic-smog-continues-smother-parts-nation.html (http://www.dailymail.co.uk/news/peoplesdaily/article-4086842/China-issues-national-red-alert-fog-toxic-smog-continues-smother-parts-nation.html)