BLOG HOSTER---PHP & MYSQL
Create Blogs in seconds
Installation of your
BlogHoster system is easy.
源代码在线查看: admin_header.php
include "../mysqlcon.php";
$admin_info = mysql_fetch_assoc(mysql_query("SELECT * FROM bhost_admin"));
$n = basename($_SERVER['PHP_SELF']);
// INCLUDE LANGUAGE FILE
include "../lang/$admin_info[language]";
include "../functions.php";
if($n != "admin_login.php") {
if(isset($_COOKIE['admin_username']) & isset($_COOKIE['admin_password'])) {
if(stripslashes($_COOKIE['admin_username']) != encrypt($admin_info[username]) | stripslashes($_COOKIE['admin_password']) != encrypt($admin_info[password])) {
header("Location: admin_login.php");
exit;
}
} else {
header("Location: admin_login.php");
exit;
}
}
if($page == "admin.php" OR $page == "admin_changepass.php") { $b1 = ""; }
elseif($page == "admin_users.php" OR $page == "admin_userdelete.php" OR $page == "admin_useredit.php") { $b2 = ""; }
elseif($page == "admin_entries.php" OR $page == "admin_entrydelete.php" OR $page == "admin_entryedit.php") { $b3 = ""; }
elseif($page == "admin_templates.php") { $b5 = ""; }
elseif($page == "admin_html.php") { $b6 = ""; }
elseif($page == "admin_signup.php") { $b7 = ""; }
elseif($page == "admin_backup.php") { $b8 = ""; }
elseif($page == "admin_faq.php") { $b9 = ""; }
elseif($page == "admin_log.php") { $b10 = ""; }
elseif($page == "admin_emailsettings.php") { $b11 = ""; }
elseif($page == "admin_profile.php") { $b12 = ""; }
elseif($page == "admin_groups.php") { $b14 = ""; }
elseif($page == "admin_emailall.php") { $b15 = ""; }
elseif($page == "admin_stats.php") { $b16 = ""; }
elseif($page == "admin_ban.php") { $b17 = ""; }
elseif($page == "admin_url.php") { $b18 = ""; }
elseif($page == "admin_broadcast.php") { $b19 = ""; }
$head = "
$admin_header1
body { margin: 0px; }
form { margin: 0px; }
h1 { color: #003366; letter-spacing: 0px; margin-left: 3px; font-family: \"Trebuchet MS\", verdana, arial, tahoma; margin-bottom: 4px; font-size: 18pt;}
h2 { letter-spacing: 0px; font-family: \"Trebuchet MS\", verdana, arial, tahoma; margin-bottom: 2px; font-size: 12pt;}
td { font-size: 8pt; font-family: verdana, arial, tahoma; color: #333333; }
td.topbar { background: #F5F5F5; padding: 7px; padding-bottom: 0px; border-bottom: 2px solid #666666; }
td.item { font-size: 8pt; padding: 5px; padding-left: 4px; border-bottom: 1px solid #AAAAAA; }
td.content { padding: 7px; line-height: 17px; }
td.header { background-color: #DDDDDD; background-image: url(../images/header_bg.gif); background-repeat: repeat-x; border: 1px solid #AAAAAA; padding: 7px; font-weight: bold; }
td.box { border: 1px solid #AAAAAA; border-top: none; padding: 7px; background: #FFFFFF; }
td.list { border-bottom: 1px solid #AAAAAA; padding: 7px; padding-bottom: 3px; }
td.list1 { background: #F7F7F7; padding: 7px; border: 1px solid #AAAAAA; border-top: none; }
td.list2 { background: #FFFFFF; padding: 7px; border: 1px solid #AAAAAA; border-top: none; }
td.stats1 { background: #FFFFFF; padding: 7px; border: 1px solid #AAAAAA; border-top: none; }
td.stats2 { background: #FFFFFF; padding: 7px; border: 1px solid #AAAAAA; border-top: none; border-left: none; }
td.entry { border: 1px solid #666666; border-bottom: 2px solid #666666; background: #FFFFFF; padding: 5px; }
table.box { border: 1px solid #666666; border-bottom: 2px solid #666666; background: #F5F5F5; }
div.float { float: left; padding-right: 1px; }
input.button { background: #DDDDDD; font-size: 8pt; font-weight: bold; font-family: verdana, arial, tahoma; }
input.text { font-family: arial, verdana, tahoma; }
textarea, select { font-family: arial, verdana, tahoma; margin-top: 1px; }
font.disabled { color: #666666; }
font.gray { color: #888888; }
a:link { color: #000066; }
a:visited { color: #000066; }
a:hover { color: #000066; }
a.menu:link { color: #000000; text-decoration: none; }
a.menu:visited { color: #000000; text-decoration: none; }
a.menu:hover { color: #000000; text-decoration: underline; }
$b1 $admin_header3
$b2 $admin_header4
$b3 $admin_header5
$b5 $admin_header6
$b18 $admin_header17
$b6 $admin_header7
$b9 $admin_header9
$b11 $admin_header10
$b17 $admin_header20
$b12 $admin_header11
$b7 $admin_header12
$b14 $admin_header13
$b15 $admin_header14
$b19 $admin_header21
$b16 $admin_header19
$b10 $admin_header15
$b8 $admin_header16
$admin_header18
";
$foot = "
";
?>