-----------------------------------------------------------------
PHP Code:
/* Si scripta includine i index.php ar koki kita faila turesite apsauga nuo visokiu source ir mozilla */ $apsauga=1; if($apsauga==1){ $browser=$_SERVER['HTTP_USER_AGENT']; $pos=strpos($browser,'/'); if($pos!=0)
{ $browser2=substr($browser,0,$pos);
} $words = explode("WinWAP", $browser); $kik= count($words); if($kik>=2)
{ $stop=1; } $words = explode("WapSilon", $browser); $kik= count($words); if($kik>=2)
{ $stop=1; } $words = explode("cURL PHP", $browser); $kik= count($words); if($kik>=2)
{ $stop=1; } $words = explode("Mozilla", $browser); $kik=count($words); if($kik>=2)
{ $stop=1; } $words = explode("Opera", $browser); $kik= count($words); if($kik>=2)
{ $stop=1; } $words = explode("portalmmm", $browser); $kik= count($words); if($kik>=2)
{ $stop=1; } $words = explode("ReqwirelessWeb", $browser); $kik= count($words); if($kik>=2)
{ $stop=1; } $words = explode("lwp-trivial",$browser); $kik= count($words);
if($kik>=2)
{ $stop=1; } $words = explode("Nokia-WAPToolkit", $browser); $kik= count($words); if($kik>=2)
{ $stop=1; } if(!$browser)
{ $stop=1; } if($browser="")
{ $stop=1; } if($stop==1) { $wmlredirect = "http://hifi-project.net";
header("Location: ".$wmlredirect); exit; } } ?>
No comments:
Post a Comment