View file public_html/admin/adminmain.php

File size: 997B
<? session_start(); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="ru">
<head>
<title>Административная часть.</title>
<meta http-equiv="Content-Type" content="text/html; charset=win-1251" />
<link rel="stylesheet" type="text/css" href="style.css" />
</head>

<body>
<?
require('funciones.php');
require('config.php');
include('checkcookie.php');

include('adminmenu.php');
?>
<fieldset style="background:#ccc url(images/dmenu.png) repeat; border: 0px; margin: 0px; padding: 0px;">
<?
	$m=0;
	if(!isset($_SESSION["dmpage"]))
	{
		$_SESSION["dmpage"]=$m;
	}

	if(isset($_GET["m"]))
	{
		$m=$_GET["m"];
		if(!is_numeric($m)) $m=0;
		$_SESSION["dmpage"]=$m;
	}
	
	include('dopmenu.php');
?>
</fieldset>
<?
if(isset($_GET["p"]))
{
	$p=$_GET["p"];
	$p.='.php';
	include($p);
}
mysql_close($con);
?>

</body>
</html>