/*
* 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ę - Goddess of Destruction - Awakening. Nawigator do poradników i artykułów na forum
Nieoficjalna polska strona Lineage 2
Lineage 2 => HELP! => Poradniki => Wątek zaczęty przez: Acid w Grudzień 06, 2011, 05:39:19 pm
-
• Dye (http://forum.lineage2.com.pl/index.php/topic,45969.0.html)
• Interfejs (http://forum.lineage2.com.pl/index.php/topic,46477.0.html)
• Ilość doświadczenia na lvl w GOD (http://forum.lineage2.com.pl/index.php/topic,45958.0.html)
• Początki z Grą porady/Newbie Quest (http://forum.lineage2.com.pl/index.php/topic,46323.0.html)
• Questy na zmianę klasy (http://forum.lineage2.com.pl/index.php/topic,45965.0.html)
• RP i Reputation/PK, Fame, Olimpiady (http://forum.lineage2.com.pl/index.php/topic,46432.0.html)
• Clan korekta : Akademia/Clan Hall/Wojna (http://forum.lineage2.com.pl/index.php/topic,46491.0.html)
• Nowe lokacje tłumaczenie/Odnowione stare Lokacje ich RB, Sayune i Adventure Mar (http://forum.lineage2.com.pl/index.php/topic,46320.0.html)
• RB w GoD tłumaczenie (http://forum.lineage2.com.pl/index.php/topic,46303.0.html)
• Party, Vitality i XP zmiany, Mentoring System (http://forum.lineage2.com.pl/index.php/topic,46362.0.html)