/*
* 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;
}
}
}
}
}
Drukuj stronę - Dowiedz się o nas więcej !
Nieoficjalna polska strona Lineage 2
Offtopics => Offtopic => Wątek zaczęty przez: System w Październik 16, 2008, 10:24:03 pm
-
Nie chce, aby dział offtopic nie był za bardzo zaśmiecony, więc podam listę linków gdzie możecie się dowiedzieć o forumowiczach więcej.
*Ile kto ma lat? (http://forum.lineage2.com.pl/index.php/topic,13408.0.html)
*Co kto lubi słuchać? (http://forum.lineage2.com.pl/index.php/topic,9311.0.html)
*Najlepsza gra, film, piosenka itp. jaką słyszeliście, graliście, widzieliście? (http://forum.lineage2.com.pl/index.php/topic,17412.0.html)
*Przepisy Kulinarne (http://forum.lineage2.com.pl/index.php/topic,16277.0.html)
*Najgorsza gra, film, piosenka jaką słyszeliście, graliście, widzieliście? (http://forum.lineage2.com.pl/index.php/topic,17362.0.html)
*Twój Pulpit (http://forum.lineage2.com.pl/index.php/topic,3968.0.html)
* Śmieszne rzeczy zokresu młodości (http://forum.lineage2.com.pl/index.php/topic,21689.0.html)
* Co kto ogłąda? (http://forum.lineage2.com.pl/index.php/topic,15965.0.html)
* Jakie sporty uprawiacie? (http://forum.lineage2.com.pl/index.php/topic,17987.0.html)
* Freestyle Battle (http://forum.lineage2.com.pl/index.php/topic,15261.0.html)
* Uwagi Szkolne (http://forum.lineage2.com.pl/index.php/topic,18270.0.html)
* Gitary, klawisze, bębny, trąbki i fujarki... (http://forum.lineage2.com.pl/index.php/topic,15525.0.html)
* Najgłupsze rzeczy jakie zrobilicie w grze (http://forum.lineage2.com.pl/index.php/topic,14333.0.html)
* Twarze po drugiej stronie monitora (http://forum.lineage2.com.pl/index.php/topic,5669.0.html)
* Ile Wyciskacie? (http://forum.lineage2.com.pl/index.php/topic,18000.0.html)