📄 admincp.php
字号:
<?php
define('IN_FLY', TRUE);
require_once 'common.php';
$charset = 'utf-8'; //缃戦〉缂栫爜
$pageshow = 20;
$action = $_GET['action'];
if (submitcheck('islogin') == 'yes' && empty($admin_info)) {
$admin_name = addslashes($_POST['admin_name']);
$admin_password = md5($_POST['admin_password']);
$a = $DB->get_one("SELECT * FROM {$tablepre}admin WHERE admin_name='$admin_name' AND admin_password='$admin_password'");
if (empty($a)) {
echo "<meta http-equiv=refresh content=\"0;URL=admincp.php\">";exit;
}
$_SESSION['admin_name'] = $a['admin_name'];
$_SESSION['admin_password'] = $a['admin_password'];
$_SESSION['admin_prem'] = $a['admin_prem'];
echo "<meta http-equiv=refresh content=\"0;URL=admincp.php\">";exit;
}
if ($admin_info) {
if (in_array($action, array('main', 'logout', 'header', 'menu', 'bizcate_add', 'bizcate_list', 'biz_list', 'shopcate_edit', 'bizcate_cache',
'biz_one_list', 'bizinfo_one_view', 'fleicate_add', 'fleicate_list', 'fleicate_cache', 'bizmenu', 'user_list', 'user_online','setcard','cardtxt',
'index_map_cache', 'dzapi','webset','comment_list','comment_del','fleiinfo_list','fleiinfo_del','biztj','dboptimize','dbexport','dbsave','dbimport','dbtosql',
'dbquery','localcity','adminpwd','delbizone','modbizboss','clsmbcache','edituser','user_search','flei_set','reflinfo_list','reflinfo_del','flinfojb_list','flinfojb_del',
'deluser', 'index_cache', 'settings', 'userreg', 'passbiz', 'delbiz', 'train_add', 'train_list','train_del', 'bizcate_count', 'modbizcate', 'editcate', 'newaction',
'biz_product', 'biz_coupon', 'procate_add'))) {
include_once $action . '.php';
if($action != 'menu' && $action != 'header' && $action != 'ajax') {
cpfooter();
}
exit;
}
?>
<!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">
<head>
<title>Administrator's Control Panel</title>
<meta http-equiv="Content-Type" content="text/html; charset=<?=$charset?>">
</head>
<frameset rows="63,*" cols="*" frameborder="no" border="0" framespacing="0">
<frame name="header" noresize scrolling="no" src="admincp.php?action=header">
<frameset cols="165,*" rows="*" frameborder="no" border="0" framespacing="0">
<frame name="menu" noresize scrolling="yes" src="admincp.php?action=menu">
<frame name="main" noresize scrolling="yes" src="admincp.php?action=main">
</frameset>
</frameset><noframes></noframes>
</html>
<?
} else {
?>
<!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">
<head>
<title>Administrator's Login Panel</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="./css/login.css" rel="stylesheet" type="text/css" />
</head>
<script language="JavaScript">
if (self.parent.frames.length != 0) {
self.parent.location=document.location;
}
function redirect(url) {
window.location.replace(url);
}
</script>
<br /><br /><br /><br />
<table width="600" border="0" cellpadding="8" cellspacing="0" class="logintable">
<tr class="loginheader"><td width="80"></td><td width="150"></td><td></td><td width="120"></td><td width="80"></td></tr>
<tr style="height:60px"><td> </td>
<td class="line1"><span style="color:#ffff66;font-size:15px;font-weight: bold;">SOCITY!鍚庡彴绠$悊</span></td>
<td class="line1"> </td>
<td> </td></tr>
<tr><td> </td><td class="line2"> </td><td class="line2"> </td><td class="line2"> </td><td> </td></tr>
<form method="post" name="login" action="admincp.php?"><tr><td> </td><td align="right">鐢ㄦ埛鍚
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -