Размер файла: 2.08Kb
<?php
include_once "config.php";
include_once "inc/inc.php";
include_once "inc/func.php";
include_once "inc/user.php";
include_once "inc/gzip.php";
include_once "inc/online.php";
include_once "themes/$theme/index.php";
if ((isset($p)) && (isset($f)) && ($p != '') && ($f != '')) {
$p = str_replace('../', '', $p);
$p = str_replace('/', '', $p);
$p = str_replace('http://', '', $p);
$p = str_replace(' ', '', $p);
$p = str_replace('%00', '', $p);
$p = str_replace('.', '', $p);
$f = str_replace('../', '', $f);
$f = str_replace('/', '', $f);
$f = str_replace('http://', '', $f);
$f = str_replace(' ', '', $f);
$f = str_replace('%00', '', $f);
$f = str_replace('.', '', $f);
$paga = file("str/$p/$f.cms");
$paga = implode($paga);
if (strlen($paga) < 10) {
echo "Произошла ошибка, файл не найден";
include_once "themes/$theme/foot.php";
exit;
} else {
echo $paga;
}
} else {
echo'<div ali align="center">';
echo data();
echo'<br></div>';
if ($kto == 'user') {
echo '<font color="red">Привет, ' . $login . '</font><br>';
}
if ($dostup == '1') {
echo '<img src="/img/pic/14.gif" alt="."><a href="/adm/index.php">Админка</a><br>';
}
echo '<img src="/img/pic/14.gif" alt="."><a href="/news.php">Новости</a>';
include_once "inc/news.php";
echo '<img src="/img/pic/14.gif" alt="."><a href="/down/">Загрузки</a><br>';
echo '<img src="/img/pic/14.gif" alt="."><a href="/book/">Гостевая</a><br>';
echo '<img src="/img/pic/14.gif" alt="."><a href="/forum/">Форум</a><br>';
}
// echo brow();
// echo ip();
// echo '<img src="img/pic/m.png">';
// echo '<img src="img/pic/w.png">';
if ($kto == 'user') {
echo '<div align="center">';
echo '<a href="/setting/index.php">Кабинет</a><br>';
echo '<a href="/exit.php">Выход</a>';
echo '</div>';
}
// include_once "inc/gzip_foot.php";
include_once "themes/$theme/foot.php";
?>