/*
* 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 - Merry Xmas to all
Paleo Diet: Raw Paleo Diet and Lifestyle Forum
Raw Paleo Diet Forums => Off Topic => Topic started by: raw-al on December 25, 2011, 03:19:26 am
-
Wishing y'all all the best of the holiday season.
What's on the menu?
For us it's cooked chicken and all the usual good tasting, but ultimately stomach upsetting stuff.
Chicken because there is only two of us and a small turkey which is mostly bone. At least that's what the chief cook tells me.
Probably some chocolatey stuff, nuts and my Xmas weakness, Bits 'n Bites.
-
Well, I had raw, wild duck and a little slice of christmas pudding. And champagne.
-
Merry Christmas.
My contribution to the family dinner was:
- Korean beef stew.
- sashimi / ceviche of hasa hasa raw fish with fish roe
-
Merry Christmas, all!! :D
for the people around me, i make the foods they want.
then i prepare my own raw meal :)