View file pages/index.php

File size: 812B
<?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'Нет такой страницы!!<br>'; }
} else { echo'Нет такой страницы!!<br>'; }

echo'<br>
<a href="'.BASEDIR.'index.php">Главъ</a>';

include_once "../themes/".$config['themes']."/niz.dat";
?>