Файл: index.php
Строк: 26
<?
include 'head.php';
###By maksamka###
function curl_get($url){
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl,CURLOPT_USERAGENT,'Opera/9.80 (Windows NT 5.1; U; ru) Presto/2.2.15 Version/10.10');
curl_setopt($curl, CURLOPT_REFERER, "http://spaces.rushared_zone/");
curl_setopt($curl, CURLOPT_RETURNTRANSFER,1);
curl_setopt($curl, CURLOPT_TIMEOUT, 30);
$cnt = curl_exec($curl);
curl_close($curl);
return $cnt;
}
$file=curl_get('http://spaces.ru/shared_zone/'.$_SERVER['QUERY_STRING']);
$file=str_replace('href="http://', 'href="load.php?', $file);
$file=str_replace('</a>', '</a></div>', $file);
$file=preg_replace('|<!DOCTYPE(.*?)<!-- #left_nav -->|is', '',$file);
$file=preg_replace('|<div id="main_content_block">(.*?)<div>|is', '',$file);
$file=preg_replace('|<div class="search_bar">(.*?)<div>|is', '',$file);
$file=preg_replace('|<div class="search_bar">(.*?)<div>|is', '',$file);
$file=preg_replace('|<div class="bottom_link_block lh_160">(.*?)</html>|is', '',$file);
$file=preg_replace('|<span(.*?)">|is', '',$file);
$file=str_replace('</span>', '', $file);
$file=preg_replace('|<!DOCTYPE(.*?)</html>|is', 'Ошибка',$file);
$file=preg_replace('|<span>Онлайн:</span>(.*?)</html>|is', 'Ошибка',$file);
$file=preg_replace('|<div class="busi_switcher " style="padding-left:0; padding-right:0; padding-top:0;padding-bottom:0;">(.*?)</html>|is', 'Ошибка',$file);
$file=str_replace('<a href', '<div class="row"><a href', $file);
echo $file;
include 'foot.php';
?>