Esempio n. 1
0
//$_SESSION['subdomain'] =
$content_type = '';
$uid = get_uid();
$subdomain = $_GET['subdomain'];
//@todo автоматом в эту переменную надо передавать субдомен
if ($subdomain == null) {
    $subdomain = 'all';
}
$seo = new seo($subdomain);
if (isset($_GET['subdomain']) && !$seo->subdomain['id']) {
    header("Location: {$GLOBALS['host']}/404.php");
    exit;
}
$direct_link = $direct_id = __paramInit('string', 'direction');
if ($direct_link) {
    $direct = $seo->getDirectionByLink($direct_link);
    $direct_id = null;
    if ($direct['id']) {
        $direct_id = $direct['id'];
    }
    if (isset($_GET['direction']) && $direct_id == null) {
        header("Location: {$GLOBALS['host']}/404.php");
        exit;
    }
}
if (isset($_GET['dir'])) {
    //if(is_numeric($_GET['dir'])) {
    //    $section_id = intval($_GET['dir']);
    //    $section_content = seo::getSectionById($section_id);
    //} else {
    $section_name = $_GET['dir'];