Файл: play/libary/index.php
Строк: 27
<?php
require_once('../../connect.php');
require_once('../../head.php');
$curl = curl_init();
curl_setopt($curl,CURLOPT_URL,'http://sefan.mobi/lib/?'.$_SERVER['QUERY_STRING']);
curl_setopt($curl,CURLOPT_USERAGENT,'Nokia: 5130');
curl_setopt($curl,CURLOPT_TIMEOUT,6);
curl_setopt($curl,CURLOPT_RETURNTRANSFER,1);
$text = curl_exec($curl);
curl_close($curl);
$text=preg_replace('|<!DOCTYPE(.*?)SEfan.RU</b>|is', '<div class="div">', $text);
$text=str_replace('shtml','php',$text);
$text=str_replace('<?xml version="1.0" encoding="UTF-8"?>','',$text);
$text=str_replace('SEfan.RU','',$text);
$text=str_replace('http://vkollektive.net/style/img/folder.png', HOME . 'http://vkollektive.net/style/img/folder.png',$text);
$text=str_replace('http://vkollektive.net/style/img/folder.png',HOME . 'http://vkollektive.net/style/img/folder.png',$text);
$text=preg_replace('|<a href="../index.php(.*?)</wml>|is', '</div>', $text);
$text=preg_replace('|<!DOCTYPE(.*?)<a class="h"|is', '<div class="div"><a class="h"', $text);
$text=preg_replace('|<!DOCTYPE(.*?)</head>|is', '<div class="div">', $text);
$text=preg_replace('|<u>Выбор страницы</u>(.*?)</anchor>|is', '', $text);
$text=preg_replace('|Разделы(.*?)>Символы</a>|is', '<img src="http://vkollektive.net/style/img/folder.png" alt=">" /> <b><a href="index.php?rid=14&style=2&lan=ru">Символы</a>', $text);
echo $text;
require_once('../../foot.php');
?>