/* * 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 / Views | Last post ![]() |
||
---|---|---|---|---|
0 Members and 3 Guests are viewing this board. | ||||
![]() |
![]() |
0 Replies
41 Views |
![]() by Josh3D |
|
![]() |
![]() |
Keyshot 8 livelink plugin to Rhino 6 - Cost?
Started by PB81 |
1 Replies
181 Views |
![]() by Niko Planke |
![]() |
![]() |
Live Link Rhino 6 to Keyshot 8.1
Started by paul martin |
1 Replies
72 Views |
![]() by Francisco |
![]() |
![]() |
0 Replies
117 Views |
![]() by wbroman |
|
![]() |
![]() |
Rhino 6 to keyshot 7 plugin
Started by Krist Hochburger |
3 Replies
892 Views |
![]() by Rex |
![]() |
![]() |
Rhino 6 plugin live link not working:
Started by dn |
7 Replies
2613 Views |
![]() by Arnaud |
![]() |
![]() |
Unable to load Keyshot7RhinoPlugin
Started by Adam Bucko |
5 Replies
835 Views |
![]() by Francisco |
![]() |
![]() |
0 Replies
449 Views |
![]() by zooropa |
|
![]() |
![]() |
0 Replies
945 Views |
![]() by Josh3D |
|
![]() |
![]() |
Need KeyShot 7 of Rhino6 Plugins
Started by Alxen |
0 Replies
689 Views |
![]() by Alxen |
![]() |
![]() |
Where is Rhino 6 plugin?
Started by Peter H |
0 Replies
544 Views |
![]() by Peter H |
![]() |
![]() |
Rhino 6 to Keyshot 5
Started by martinsiegrist |
1 Replies
1894 Views |
![]() by Will Gibbons |
![]() |
![]() |
0 Replies
921 Views |
![]() by ldpinc |
|
![]() |
![]() |
0 Replies
1135 Views |
![]() by mykalh86 |
|
![]() |
![]() |
6 Replies
3770 Views |
![]() by ec2638 |
|
![]() |
![]() |
2 Replies
1449 Views |
![]() by pat3k |
|
![]() |
![]() |
9 Replies
4708 Views |
![]() by Sean |
|
![]() |
![]() |
1 Replies
1333 Views |
![]() by octav1an |
|
![]() |
![]() |
KeyShot for Rhino plugin on Mac OS X: Beta version available soon
Started by guest84672 |
2 Replies
2615 Views |
![]() by guest84672 |
![]() |
![]() |
Rhino 6 Plugin?
Started by 2DCube |
1 Replies
2942 Views |
![]() by guest84672 |
![]() |
![]() |
0 Replies
1186 Views |
![]() by interpolantics |
|
![]() |
![]() |
3 Replies
2040 Views |
![]() by TpwUK |
|
![]() |
![]() |
7 Replies
3180 Views |
![]() by guest84672 |
|
![]() |
![]() |
Keyshot plugin for Rhino for Mac
Started by Kazuo Tsuyuki |
6 Replies
6751 Views |
![]() by guest84672 |
![]() |
![]() |
1 Replies
1931 Views |
![]() by guest84672 |
Normal Topic
Hot Topic (More than 15 replies)
Very Hot Topic (More than 25 replies)
Locked Topic
Sticky Topic
Poll