Файл: soc-set/moduls/lib/index.php
Строк: 24
<?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/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="block">', $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('../images/style/2/dir.gif', HOME . '/style/icons/folder.png',$text);
$text=str_replace('../images/style/2/dir_new.gif',HOME . '/style/icons/folder.png',$text);
$text=preg_replace('|<a href="../index.php(.*?)</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('|Разделы(.*?)>Символы</a>|is', '<img src="'. HOME . '/style/icons/folder.png" alt=">" /> <b><a href="index.php?rid=14&style=2&lan=ru">Символы</a>', $text);
echo $text;
$array = array();
nav($array);
require_once('../../core/stop.php');
?>