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 ' Online proxy
Teya Salat