File size: 942B
<?php
require_once "../includes/start.php";
require_once "../includes/functions.php";
require_once "../includes/header.php";
include_once "../themes/".$config['themes']."/verh.dat";
if (isset($_GET['action'])) {$action = check($_GET['action']);} else {$action = "";}
if (!is_user() && $action=='menu'){header ('Location: '.BASEDIR.'index.php'); exit;}
if ($action=='index'){header ('Location: '.BASEDIR.'index.php'); exit;}
if (preg_match('|^[a-z0-9_\-]+$|i', $action)){
if (file_exists(DATADIR.'datamain/'.$action.'.dat')){
include DATADIR.'datamain/'.$action.'.dat';
} else { echo'<b>Ошибка, такой страницы не существует!</b><br>'; }
} else { echo'<b>Ошибка, недопустимое название страницы!</b><br>'; }
echo'<br><img src="'.BASEDIR.'images/home.svg" alt="+">
<a href="'.BASEDIR.'index.php">Главъ</a>';
include_once "../themes/".$config['themes']."/niz.dat";
?>