/*
* 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 - [w1073] Shanghai Airlines
Airline Mogul Forum
Airline Mogul => Airline Reports => Topic started by: Gcc4evr on November 30, 2009, 04:55:34 pm
-
(http://img27.imageshack.us/img27/1701/49900038.jpg) (http://img27.imageshack.us/i/49900038.jpg/)
comments and tips are always appreciated.
p.s. if anyone wants to know, this was just done on Microsoft Paint :lol:
-
(http://h.imagehost.org/0960/Untitled_4.jpg)
Comments are always greatly appreciated :D
-
Any comments? :'(
-
nice airline
-
Hi
Thanks.
Dont you remember, use asked me if i wanted to form a strategic partnership with my airline SAS ;)
-
(http://img4.imageshack.us/img4/7776/18696385.jpg) (http://img4.imageshack.us/i/18696385.jpg/)
comments are welcome
-
News announcements look great! Keep up the good work :)
-
Thank you very much :D
-
(http://img704.imageshack.us/img704/326/44766325.jpg) (http://img704.imageshack.us/i/44766325.jpg/)
-
yes i remember. that was a looong time ago
-
I like your airline report. Well done. :)
-
(http://img692.imageshack.us/img692/552/81389297.jpg) (http://img692.imageshack.us/i/81389297.jpg/)