File size: 1.16Kb
<?php
error_reporting(0);
$fileontext = stream_context_create(
array(
'http'=>array(
'header' => "User-Agent: Opera/9.62 (Windows NT 5.1; U; ru) Presto/2.1.1\r\n".
"Referer: http://mas.sim-sot.ru/info/\r\n".
"Content-type: application/x-www-form-urlencoded\r\n".
"Expires: Thu, 01 Jan 1970 00:00:01 GMT\r\n".
"Cache-Control: no-store, no-cache, must-revalidate\r\n".
"Pragma: no-cache\r\n".
"Connection: Close\r\n\r\n")));
$file=file_get_contents("http://mas.sim-sot.ru/imena/index.php?id=829&".$_SERVER['QUERY_STRING'], false ,$fileontext);
if($file){
$file=preg_replace('#.*<p align="left"><small>#si','',$file);
$file=str_replace('<br/><b>:::</b>','',$file);
$file=preg_replace('#<b>:::<br/>.*#si','',$file);
$file=str_replace('`','', $file);
$file=str_replace('SMS - ки :)','', $file);
$file=str_replace('[WML|','', $file);
$file=str_replace('xHTML','', $file);
$file=str_replace(']','', $file);
$file=str_replace('<br/><br/><br/>','', $file);
$file=str_replace('<b><br/>','', $file);
$file=preg_replace('/::(.*?)<\/wml>/si','',$file);
}else{$file='Сервис временно в ауте))';}
echo $file;
include'foot.php';
?>