/* * 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; } } } } }
Subject / Started by | Replies ![]() |
Last post | ||
---|---|---|---|---|
0 Members and 38 Guests are viewing this board. | ||||
![]() |
![]() |
reparación ocular zeiss
Started by chotacabras |
1 Replies
1467 Views |
![]() by marenostrum |
![]() |
![]() |
1 Replies
5995 Views |
![]() by fasciatus |
|
![]() |
![]() |
particulas de polvo en zeiss
Started by picot |
1 Replies
1172 Views |
![]() by gazul |
![]() |
![]() |
Datos telescopios Nikon
Started by alibiza |
1 Replies
1653 Views |
![]() by fasciatus |
![]() |
![]() |
CrytalVue LX
Started by Richar |
1 Replies
2126 Views |
![]() by fasciatus |
![]() |
![]() |
ayuda para elecion de telescopio
Started by jose cc |
1 Replies
1362 Views |
![]() by CRueda |
![]() |
![]() |
Dureza en piezas del telescopio
Started by teles |
1 Replies
986 Views |
![]() by fasciatus |
![]() |
![]() |
1 Replies
1430 Views |
![]() by CRueda |
|
![]() |
![]() |
Objetivo Leica 32W
Started by Gallows Pole |
1 Replies
1371 Views |
![]() by fasciatus |
![]() |
![]() |
pentax/vixen o kowa
Started by jadife |
1 Replies
1040 Views |
![]() by CRueda |
![]() |
![]() |
PRISMATICOS PARALUX
Started by fernando |
1 Replies
1338 Views |
![]() by fasciatus |
![]() |
![]() |
¿TERRESTRES O ASTRONOMICOS?
Started by STRIX |
1 Replies
1323 Views |
![]() by telescopio |
![]() |
![]() |
Busco Equipo
Started by Alvaro93 |
1 Replies
1407 Views |
![]() by fasciatus |
![]() |
![]() |
Vixen Geoma 67A
Started by telescopio |
1 Replies
1385 Views |
![]() by baghyra |
![]() |
![]() |
1 Replies
1121 Views |
![]() by fasciatus |
|
![]() |
![]() |
Re: AYUDA VAYA LIO QUE TENGO
Started by duponti |
1 Replies
1236 Views |
![]() by baghyra |
![]() |
![]() |
ayuda que telescopio compro?
Started by jadife |
1 Replies
1533 Views |
![]() by fasciatus |
![]() |
![]() |
dudas celestron c90
Started by elrustico |
1 Replies
1527 Views |
![]() by fasciatus |
![]() |
![]() |
consulta modelo tele
Started by moncho |
1 Replies
1694 Views |
![]() by fasciatus |
![]() |
![]() |
ayuda comprar telescopio
Started by oscar0027 |
1 Replies
1031 Views |
![]() by fasciatus |
![]() |
![]() |
ceslestron ultima 100 o ultima 80?
Started by vallejo_10 |
1 Replies
1270 Views |
![]() by vallejo_10 |
![]() |
![]() |
duda telescopio
Started by buteobuteo |
1 Replies
1386 Views |
![]() by OVERKILL |
![]() |
![]() |
Perdón, por el error.
Started by Arturcamp |
1 Replies
1176 Views |
![]() by baghyra |
![]() |
![]() |
1 Replies
1062 Views |
![]() by fasciatus |
|
![]() |
![]() |
Kowa TSN 82 vs Kowa TSN 883 FL
Started by elcamperoinquieto |
1 Replies
2373 Views |
![]() by luisitoluisito |
Normal Topic
Hot Topic (More than 15 replies)
Very Hot Topic (More than 25 replies)
Locked Topic
Sticky Topic
Poll