SpInfoBak.php
2.54 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<?php
define('EmpireCMSAdmin','1');
require("../../class/connect.php");
require("../../class/db_sql.php");
require("../../class/functions.php");
$link=db_connect();
$empire=new mysqlquery();
$editor=1;
//驗證用戶
$lur=is_login();
$logininid=$lur['userid'];
$loginin=$lur['username'];
$loginrnd=$lur['rnd'];
$loginlevel=$lur['groupid'];
$loginadminstyleid=$lur['adminstyleid'];
//ehash
$ecms_hashur=hReturnEcmsHashStrAll();
$spid=(int)$_GET['spid'];
//碎片
$spr=$empire->fetch1("select spid,spname,varname,sptype,maxnum,groupid,userclass,username from {$dbtbpre}enewssp where spid='$spid'");
if(!$spr['spid']||$spr[sptype]!=3)
{
printerror('ErrorUrl','');
}
//驗證操作權限
CheckDoLevel($lur,$spr[groupid],$spr[userclass],$spr[username]);
$sr=$empire->fetch1("select sid from {$dbtbpre}enewssp_3 where spid='$spid'");
if(!$sr['sid'])
{
printerror('NotRecord','');
}
$sql=$empire->query("select bid,sid,spid,lastuser,lasttime from {$dbtbpre}enewssp_3_bak where sid='".$sr['sid']."' order by bid desc");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>碎片信息修改記錄</title>
<link href="../adminstyle/<?=$loginadminstyleid?>/adminstyle.css" rel="stylesheet" type="text/css">
</head>
<body>
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1">
<tr>
<td height="25">位置:碎片 <b><?=$spr[spname]?></b> 的修改記錄</td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
<tr class="header">
<td width="52%" height="25"> <div align="center">修改時間</div></td>
<td width="29%" height="25"> <div align="center">修改者</div></td>
<td width="19%"><div align="center">還原</div></td>
</tr>
<?php
while($r=$empire->fetch($sql))
{
?>
<tr bgcolor="#FFFFFF" onmouseout="this.style.backgroundColor='#ffffff'" onmouseover="this.style.backgroundColor='#C3EFFF'">
<td height="25"><div align="center">
<?=date("Y-m-d H:i:s",$r[lasttime])?>
</div></td>
<td height="25"><div align="center">
<?=$r[lastuser]?>
</div></td>
<td><div align="center">[<a href="ListSpInfo.php?enews=SpInfoReBak&spid=<?=$spid?>&sid=<?=$r['sid']?>&bid=<?=$r[bid]?><?=$ecms_hashur['href']?>" onclick="return confirm('確認要還原?');">還原</a>]</div></td>
</tr>
<?php
}
?>
</table>
</body>
</html>
<?php
db_close();
$empire=null;
?>