You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
856 B
44 lines
856 B
<?php
|
|
error_reporting(0);
|
|
define('EmpireCMSAdmin','1');
|
|
$enews=$_POST['enews'];
|
|
if(empty($enews))
|
|
{$enews=$_GET['enews'];}
|
|
if($enews=='login')
|
|
{
|
|
define('EmpireCMSAPage','login');
|
|
}
|
|
require("../class/connect.php");
|
|
require("../class/db_sql.php");
|
|
require("../class/functions.php");
|
|
$link=db_connect();
|
|
$empire=new mysqlquery();
|
|
if($enews=="login")
|
|
{}
|
|
else
|
|
{
|
|
//验证用户
|
|
$lur=is_login();
|
|
$logininid=$lur['userid'];
|
|
$loginin=$lur['username'];
|
|
$loginrnd=$lur['rnd'];
|
|
$loginlevel=$lur['groupid'];
|
|
$loginadminstyleid=$lur['adminstyleid'];
|
|
hCheckEcmsRHash();
|
|
}
|
|
require("../class/adminfun.php");
|
|
if($enews=="login")//登陆
|
|
{
|
|
$username=$_POST['username'];
|
|
$password=$_POST['password'];
|
|
$key=$_POST['key'];
|
|
$loginin=$username;
|
|
login($username,$password,$key,$_POST);
|
|
}
|
|
else
|
|
{
|
|
printerror("ErrorUrl","history.go(-1)");
|
|
}
|
|
db_close();
|
|
$empire=null;
|
|
?>
|