Файл: index.php
Строк: 9
<?php
include 'head.php';
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, 'http://dika.to/anecdotes?'.$_SERVER['QUERY_STRING']);
curl_setopt($curl, CURLOPT_RETURNTRANSFER,true);
$out = curl_exec($curl);
$out=preg_replace('|<!DOCTYPE(.*?)<div class="nmenu">|si','',$out);
$out=str_replace('href="/anecdotes?','href="index.php?',$out);
$out=str_replace('<div class="pd">','<div class="row">',$out);
$out=preg_replace('|<div class="ads">(.*?)</html>|si','',$out);
$out=str_replace('<div class="pages">','<div class="row">',$out);
curl_close($curl);
echo $out;
include 'foot.php';
?>