/* * 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; } } } } }
Visit our website: www.rawpaleodiet.com
Join our Yahoo Group: RawPaleoDiet
RSS Feed Latest 50 Posts
Subject / Started by | Replies / Views | Last post | ||
---|---|---|---|---|
0 Members and 15 Guests are viewing this board. | ||||
47 Replies
31,118 Views |
May 22, 2011, 10:36:52 pm by PaleoPhil |
|||
47 Replies
33,112 Views |
April 13, 2012, 05:35:44 pm by Waquini |
|||
44 Replies
33,242 Views |
October 18, 2010, 08:01:40 am by PaleoPhil |
|||
34 Replies
33,572 Views |
July 18, 2016, 06:12:33 pm by fanbrits |
|||
47 Replies
33,782 Views |
February 21, 2013, 10:29:20 am by Barefoot Instincto |
|||
65 Replies
35,055 Views |
January 05, 2012, 08:16:43 am by PaleoPhil |
|||
50 Replies
38,199 Views |
June 24, 2017, 06:46:23 am by surfsteve |
|||
Randy Roach, Muscle Smoke and Mirrors
Started by pioneer |
24 Replies
39,464 Views |
August 26, 2010, 01:51:46 am by Brother |
||
27 Replies
41,644 Views |
July 02, 2010, 11:33:10 am by pioneer |
|||
55 Replies
44,493 Views |
January 30, 2019, 12:48:26 am by surfsteve |
|||
82 Replies
46,069 Views |
July 18, 2016, 06:13:20 pm by fanbrits |
|||
98 Replies
47,326 Views |
July 06, 2011, 12:25:04 pm by HIT_it_RAW |
|||
OH YEAH! barefoot run!!! whos going??
Started by Parker Reid « 1 2 3 4 » |
84 Replies
47,721 Views |
October 22, 2010, 07:48:41 am by PaleoPhil |
||
Ultimate Martial Arts
Started by TylerDurden « 1 2 3 4 » |
99 Replies
48,207 Views |
September 15, 2010, 08:13:40 pm by SkinnyDevil |
||
Question about weight-lifting
Started by cherimoya_kid « 1 2 3 » |
67 Replies
50,923 Views |
June 17, 2013, 02:02:33 am by svrn |
||
62 Replies
53,382 Views |
October 17, 2012, 12:12:49 am by LePatron7 |
|||
114 Replies
56,304 Views |
May 11, 2011, 09:25:59 am by Bairdo25 |
|||
36 Replies
58,497 Views |
August 17, 2010, 05:25:17 am by sven |
|||
101 Replies
66,652 Views |
March 30, 2012, 05:25:53 am by Justin |
|||
130 Replies
75,176 Views |
June 06, 2011, 05:22:49 pm by Barban |
|||
132 Replies
75,829 Views |
September 07, 2011, 02:02:24 pm by crobiruiz |
|||
90 Replies
87,011 Views |
July 01, 2010, 08:05:41 pm by NEUROSPORT |
|||
95 Replies
113,653 Views |
December 06, 2010, 01:58:46 am by raw |
Normal Topic
Hot Topic (More than 15 replies)
Very Hot Topic (More than 30 replies)
Locked Topic
Sticky Topic
Poll