Error_Reporting(E_ALL & ~E_NOTICE);
Error_Reporting (ERROR | WARNING);
$browser='Opera/8.01';
$sel_browser='1';
if (isset($_POST['br'])&&$_POST['br']!='')
{$browser=$_POST['br'];
setcookie("browser",$_POST['br']);}
if (isset($_COOKIE['browser']))
{$browser=$_COOKIE['browser'];}
$compression=0;
$time_limit=30;
$expires_default=3600;
$cookie_expires=3600;
$ras_array=array("zip","rar");
$info_allow=0;
$demo_version=0;
$no_replace_all_array=array("http://","\\",".");
$no_replace_left_array=array("+","#","mailto:","javascript:","ftp://");
@ini_restore("safe_mode");
@ini_restore("open_basedir");
@set_time_limit($time_limit);
if ($expires_default>0){
header("Expires: ".gmdate('D, d M Y H:i:s',time()+$expires_default)." GMT");
}
if ($expires_default<0){
header("Expires: Thu, 01 Jan 1970 00:00:01 GMT");
header("Cache-Control: no-cache");
header("Pragma: no-cache");
}
$session_get=$HTTP_GET_VARS['session_new'];
if ($session_get){
$location_get=$session_get;
$strpos=strpos($session_get,"?");
if ($strpos && (substr($session_get,0,7)!="http://" && substr($session_get,0,8)!="https://")){
$session_get=substr($session_get,0,$strpos+1);
$location_get=decode($session_get);
$session_add=getenv('QUERY_STRING');
$strpos=strpos($session_add,"?");
$location_get=$location_get.substr($session_add,$strpos+1);
$pos1=strpos($location_get,"?");
$pos2=strpos($location_get,"&");
if (($pos1 && $pos2 && $pos2<$pos1) || (!$pos1 && $pos2)){$location_get=preg_replace("#si","?",$location_get,1);}
}
$location=$location_get;
}
$session_post=$HTTP_POST_VARS['session_new'];
if ($session_post){
$location_post=decode($session_post);
$location=$location_post;
}
$url_array=url($location,1);
$location=$url_array[0];
$location_code=code($location);
if (!$location){
$info="";
if ($demo_version){$info.="* Демо-версия *
";}
if ($info_allow){
$info.="Максимальное время работы скрипта: $time_limit сек.";
if (count($location_allow)){
$info.="
Разрешенные сайты:
";
$info.=implode("
",$location_allow);
$info.="
На остальные сайты будет выполнена переадресация.";
}
}
if ($charset_default){
header("Content-Type: text/html; charset=$charset_default");
$content=decode_charset($content,"utf-8",$charset_default);
}
if ($sel_browser=='1')
{
echo '