Файл: admin/index.php
Строк: 85
<?php
error_reporting(7);
//=============================================//
$headtime = microtime(true);
//=============================================//
$sid = mt_rand(1000, 9999);
define("ROOTPATH", realpath(".."));
include(ROOTPATH."/includes/config");
include(ROOTPATH."/includes/version");
include(ROOTPATH."/includes/admin_page");
//=============================================//
/*
$login = $_REQUEST['konotop'];
$password = $_REQUEST['pwd'];
//EMPTY
if(empty($login) || empty($password))
{
header("Location: /index.php");
die();
}
//BAD LOGIN OR PASSWORD
if($login != ALOGIN || $password != APASSWORD)
{
header("Location: /index.php");
die();
}
*/
switch(VERSION)
{
case 'wml':
///////////////////////////////////////////////////////
//WML VERSION
///////////////////////////////////////////////////////
header("Content-type: text/vnd.wap.wml; charset=utf-8");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-cache, must-relative");
echo(
"<?xml version='1.0' encoding='UTF-8'?>n".
"<!DOCTYPE wml PUBLIC '-//WAPFORUM//DTD WML 1.3//EN' 'http://www.wapforum.org/DTD/wml13.dtd'>n".
"<wml>n".
"<head><meta http-equiv='Cache-Control' content='no-cache, no-store, must-revalidate' forua='true' /></head>n".
"<card id='admin' title='".TITLE."'>n".
"<p align='left'>n");
include(ROOTPATH."/includes/wml/admin/".$module);
echo "[".round(microtime(true) - $headtime, 5)."] secn";
echo "</p></card></wml>";
break;
case 'xhtml':
///////////////////////////////////////////////////////
//XHTML VERSION
///////////////////////////////////////////////////////
header("Content-type: text/html; charset=utf-8");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-cache, must-relative");
echo(
"<?xml version='1.0' encoding='UTF-8'?>n".
"<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>n".
"<html xmlns='http://www.w3.org/1999/xhtml'>n".
"<head>n".
"<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />n".
"<title>".TITLE."</title>n".
"<style type='text/css'>n".
file_get_contents(ROOTPATH."/tmp/css/admin_style")."n".
"</style>n".
"</head>n".
"<body>n".
"<div class='title'>".TITLE."</div>n".
"<div style='text-align: left'>n");
include(ROOTPATH."/includes/xhtml/admin/".$module);
echo "[".round(microtime(true) - $headtime, 5)."] secn";
echo "</div></body></html>";
break;
}
?>