Файл: soc-set/moduls/lib/x.php
Строк: 17
<?php
require_once('../../core/start.php');
check_auth();
head('Библиотека');
echo '<style>.block{font-size:15px;}</style>';
panel();
$curl = curl_init();
curl_setopt($curl,CURLOPT_URL,'http://sefan.mobi/info/drugie/erolib/?'.$_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="block">', $text);
$text=str_replace('index.shtml','x.php',$text);
$text=str_replace('<?xml version="1.0" encoding="UTF-8"?>','',$text);
$text=str_replace('SEfan.RU','WMCLUB.IN',$text);
$text=preg_replace('|<a href="../(.*?)</wml>|is', '</div>', $text);
$text=preg_replace('|<!DOCTYPE(.*?)<a class="h"|is', '<div class="block"><a class="h"', $text);
$text=preg_replace('|<!DOCTYPE(.*?)</head>|is', '<div class="block">', $text);
$text=preg_replace('|<u>Выбор страницы</u>(.*?)</anchor>|is', '', $text);
$text=preg_replace('|Слов на стpаницу(.*?)</anchor>|is', '', $text);
$text=str_replace('<img src="../../../images/style/2/dir.gif','',$text);
echo $text;
$array = array();
nav($array);
require_once('../../core/stop.php');
?>