View file index.php

File size: 1.12Kb
<?php
require_once './element_options/element_options.php';
	
	$title = 'Повелители стихий';
	require_once './element_include/element_head.php';

if ($user) {
	if (readcache('element_user_mesto'.$user['lost_id']) != 'На сайте') writecache('element_user_mesto'.$user['lost_id'], 'На сайте');
	require_once './element_function/element_function_mission.php';
	require_once './element_function/element_function_labirint.php';
	require_once './element_include/element_header_user_true.php';
	require_once './element_include/element_index_user_true.php';
	require_once './element_include/element_foot_user_true.php';
} else {
	$refferer = (isset($_GET['refferer']) AND is_numeric($_GET['refferer'])) ? (int)$_GET['refferer'] : false;
		if ($refferer) {
			$refferer_user = cache_user($refferer);
			if ($refferer_user) setcookie('refferer', $refferer, time()+1800, '/');
		}
	
	// lost_refferer
	require_once './element_include/element_header_user_false.php';
	require_once './element_include/element_index_user_false.php';
	require_once './element_include/element_foot_user_false.php';
}
?>