ecmsadmin.php
1001 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
error_reporting(E_ALL ^ E_NOTICE);
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);
}
elseif($enews=="exit")//退出系統
{
loginout($logininid,$loginin,$loginrnd);
}
else
{
printerror("ErrorUrl","history.go(-1)");
}
db_close();
$empire=null;
?>