Размер файла: 2.78Kb
<?
$DB_SERVER='localhost';//Сервер
$DB_NAME='biwap';//Имя базы
$DB_USER='biwap';//Пользователь
$DB_PASS='';//Пароль
/////////////////////////////////////////////////////////////////
$CON=mysql_connect($DB_SERVER,$DB_USER,$DB_PASS);
if (!$CON)
die('<b>ERROR: CAN NOT CONNECT TO DATABASE</b>');
mysql_select_db ($DB_NAME,$CON);
/////////////////////////////////////////////////////////////////
$pass_a = '123';//pass Admina
////////////////////////////////////////////////////////////////
//error_reporting(0);
DEFINE('HEADER', '`header`');
DEFINE('FOOTER', '`footer`');
DEFINE('LINK_V', '`link_v`');
DEFINE('LINK_N', '`link_n`');
mysql_query('SET NAMES "utf8"');
//////////////////////////////////////////////////////////////////////////////
function do_header()
{
$title = 'Управление';
header('Content-Type: application/xhtml+xml;charset=utf-8');
header('Cache-Control: no-cache, must-revalidate');
echo '<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
<title>'.$title.'</title>
<style type="text/css">
body{ font-weight: normal; font-size: small; color: #000000; font-family: sans-serif; background-color: #FFFFFF;}
div{ margin: 0px; padding: 0px 0px 0px 2px;}
a{ color: #0230FF; text-decoration: none;}
a:hover{ text-decoration:underline;}
a.redlink { color: #B41F24; text-decoration: none;}
a.redlink:hover{ text-decoration: underline;}
.block_logo{ padding: 0px; background-color: #B41F24; border-bottom: solid 3px #BBBBBB; color: #FFFFFF;}
.block_title{ color : #FFFFFF; background-color: #BBBBBB; border: 1px solid #AAAAAA; text-align: center; padding: 0px;}
.block_title a{ color : #B41F24;}
.shopwindow{ padding-left: 2px;}
.contest{ color: #555555; padding-left: 2px;}
.contest a{ color: #B41F24; text-decoration: none;}
.contest a:hover{ text-decoration: underline;}
.rlink a{ color: #B41F24; text-decoration: none;}
.rlink a:hover{ text-decoration: none;}
.block_main{ color: #BF0000; padding-left: 2px;}
.red_line { background-color: #B41F24; height: 1px; margin: 2px;}
.red{ color: #B41F24; }
.gray_line { background-color: #BBBBBB; height: 1px; margin: 2px;}
.block_footer{ background-color: #BBBBBB; border: 1px solid #AAAAAA; color: #FFFFFF; padding:1px;}
.block_footer a { color: #FFFFFF;}
.copyright{ color : #FFFFFF; background-color: #B41F24; border: 1px solid #A30D13; padding: 0px;}
.copyright a{ color : #FFFFFF;}
img { vertical-align: middle;}
.icon { margin: 2px; width: 24px; height: 24px; vertical-align: middle;}
</style></head><body>';
}
function do_footer()
{
echo '</body></html>';
}
?>