Файл: get.php
Строк: 16
<?
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://dika.to/");
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://pics.dika.to/get.php?'.$_SERVER['QUERY_STRING']);
$file=str_replace('<div class="menu">', '<div class="row">', $file);
$file=preg_replace('|<!DOCTYPE(.*?)<div class="title">|is', '<div class="aut">',$file);
$file=preg_replace('|<div class="block">(.*?)</html>|is', '',$file);
$file=str_replace('<div class="pages">', '<div class="row">', $file);
$file=str_replace('action="download.php', 'action="http://pics.dika.to/download.php', $file);
$file=preg_replace('|<!DOCTYPE(.*?)</html>|is', 'Ошибка',$file);
$file=str_replace('src="http://wapwa.ru/themes/wapwa/images/', 'src="', $file);
echo $file;
include 'foot.php';
?>