Файл: www/servis/gdz/index.php
Строк: 35
<?
include '../../config.php';
div('Готовые Домашние Задания');
$x = file_get_contents('http://otvet.mobi/index.php?' . $_SERVER['QUERY_STRING']);
if (empty($x)) {
echo 'Извините, раздел ГДЗ пока недоступен!';
} else {
$x = preg_replace('#<!DOCTYPE(.*)(<body>)#isU', '', $x);
$x = preg_replace('#<div class="logo">(.*)</div>#isU', '', $x);
$x = preg_replace('#<div class="other">(.*)</div>#isU', '', $x);
$x = preg_replace('#<font(.*)</font>#isU', '', $x);
$x = preg_replace('#<div class="mainmodeend">(.*)</html>#isU', '', $x);
$x = str_replace('<div class="mainmode">', '', $x);
$x = str_replace('</div>', '', $x);
$x = preg_replace('#<img src="/img/id.gif" alt="(.*)" />#isU', '<img src="/style/icons_menu/pencil-ruler.png"/>', $x);
$x = preg_replace('#<!--(.*)-->#isU', '', $x);
$x = str_replace('<a href="http://otvet.mobi/ngdz/', '<a href="info.php?id=', $x);
$x = str_replace('.htm">', '">', $x);
$x = preg_replace('#<img src="/style/icons_menu/pencil-ruler.png"/> <a href="http://ask.otvet.mobi/translate/">(.*)</a>#isU', '', $x);
$x = preg_replace('#<img src="/style/icons_menu/pencil-ruler.png"/> <a href="/ask/">(.*)</a><br />#isU', '', $x);
$x = str_replace('<img src="/style/icons_menu/pencil-ruler.png"/>', '<div class="post0"><img src="/style/icons_menu/pencil-ruler.png"/>', $x);
$x = str_replace('</a>', '</a></div>', $x);
echo $x;
}
include '../../foot.php';
?>