Файл: files/info.php
Строк: 22
<?php
$file = file_get_contents("https://obmenvsem.org/info.php?id=".htmlspecialchars($_GET['id']));
$file = str_replace('/static/', 'https://obmenvsem.org/static/', $file);
$file = str_replace('"sub"', '"main"', $file);
$file = str_replace('<h1>', '', $file);
$file = str_replace('</h1>', '', $file);
$file = str_replace('"item"', '"main_menu"', $file);
$file = str_replace('info.php', 'files/info.php', $file);
$file = str_replace('<a href="/">Обменник</a>', '<a href="/files/">Обменник</a>', $file);
/* Плеер для mp4 */
$file = str_replace('<img width="16" height="16" src="https://obmenvsem.org/static/images/file_icons/video.png" alt="mp4" /> <a href="', '<center><video src="', $file);
$file = str_replace('mp4">', 'mp4" width="300px" height="350px" controls/></center>', $file);
$file=preg_replace('|<?
<!DOCTYPE(.*?)</head>|is', '',$file);
$file=preg_replace('|<body>(.*?)
</script>|is', '',$file);
$file=preg_replace('|<a href="/r.php?(.*?)">|is', '',$file);
$file=preg_replace('|<a href="/r.php?(.*?)">|is', '',$file);
$file = str_replace('</a> (', ' (', $file);
$file=preg_replace('|В папку:(.*?)
</a>
<br />|is', '',$file);
$file=preg_replace('|<div class="c1" id="comments">(.*?)</body>
</html>|is', '',$file);
include_once 'heads.php';
echo $file;
include_once 'foots.php';
?>