View file includes/web/index.php

File size: 605B
<?php
$webpath=$rootpath."web/";
$tmp=explode('-',$query0);
$query0=$tmp[0];
$mpage=$tmp[1];
if ($mpage!='') $dmpage='-';
$tmp=explode('-',$query2);
$query2=$tmp[0];
$apage=$tmp[1];
if ($apage!='') $dapage='-';
Header("Content-type: text/html; charset=windows-1251");
Header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
Header("Cache-Control: no-cache, must-relative");
if     ($user!='')
{
	//авторизованный чел
	exit();
}
elseif ($query0=='faq')
{
	include($webpath.'faq.php');
	exit();
}
else
{
// 	главная страница
	include($webpath.'site.inc.php');
	exit;
}
?>