/*
* 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 - Just to bore you...
Airline Mogul Forum
Non-Airline Mogul => General Chat => Topic started by: Hampo on August 17, 2008, 03:32:05 am
-
Thought i'd bore you all with some pics from Cornwall (it wasn't as sunny as it looked!)
(http://farm4.static.flickr.com/3256/2769099342_4c0af304c7_o.jpg)
One of Newquays resident Grey Seals in the harbour.
(http://farm4.static.flickr.com/3047/2768253577_c16a28fbea_o.jpg)
(http://farm4.static.flickr.com/3014/2768254359_d62f58ab1e_o.jpg)
Wonder who's plate the rest of him ended up on...
(http://farm4.static.flickr.com/3215/2768255489_aece30f885_o.jpg)
(http://farm4.static.flickr.com/3249/2768256345_371b9d8e7c_o.jpg)
(http://farm4.static.flickr.com/3292/2768257393_0df34f035d_o.jpg)
Saved the best 'till last...
Went on a quick flight around Land's end in G-AWWU, Cessna 172.
Doing 80kts at 1000ft, the best place to view Land's End from 8-)
(http://farm4.static.flickr.com/3034/2769105070_a81f795280_o.jpg)
Turning on finals to the runway at Land's End Airport
(http://farm3.static.flickr.com/2352/2769105820_f93041283e_o.jpg)
Comments welcome
Sam
http://www.flickr.com/photos/samhampson/