DoRehtml.php
2.24 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
<?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();
$add=$_GET;
$havehtml=(int)$add['havehtml'];
$add[classid]=RepPostVar($add[classid]);
$add[from]=RepPostStrUrl($add[from]);
$add[retype]=RepPostStr($add[retype],1);
$add[startday]=RepPostStr($add[startday],1);
$add[endday]=RepPostStr($add[endday],1);
$add[startid]=RepPostVar($add[startid]);
$add[endid]=RepPostVar($add[endid]);
$tbname=$add['tbname'];
$count=count($tbname);
//刷新所有表
if(!$count)
{
$j=0;
$tsql=$empire->query("select tbname from {$dbtbpre}enewstable where intb=0 order by tid");
while($tr=$empire->fetch($tsql))
{
$tbname[$j]=$tr[tbname];
$j++;
}
$count=count($tbname);
}
esetcookie("retablenum",$count,0,1);
esetcookie("rechecktablenum",0,0,1);
$url="../ecmschtml.php?enews=ReNewsHtml&classid=$add[classid]&from=".urlencode($add[from])."&retype=$add[retype]&startday=$add[startday]&endday=$add[endday]&startid=$add[startid]&endid=$add[endid]&havehtml=$havehtml&reallinfotime=".time().$ecms_hashur['href'];
echo"<link href='../adminstyle/".$loginadminstyleid."/adminstyle.css' rel='stylesheet' type='text/css'><center>要刷新的表的總個數為:<font color=red>$count</font>個</center><br>";
for($i=0;$i<$count;$i++)
{
$tbname[$i]=RepPostVar($tbname[$i]);
$trueurl=$url."&tbname=".$tbname[$i];
echo"<table width='100%' border=0 align=center cellpadding=3 cellspacing=1 class=tableborder><tr class=header><td>刷新數據表:".$tbname[$i]."</td></tr><tr><td bgcolor='#ffffff'><iframe frameborder=0 height=35 id='".$tbname[$i]."' scrolling=no
src=\"".$trueurl."\"
width=\"100%\"></iframe></td></tr></table>";
}
db_close();
$empire=null;
?>
<iframe frameborder=0 height=35 id="checkrehtml" scrolling=no
src="CheckRehtml.php?first=1&from=<?=urlencode($add[from])?><?=$ecms_hashur['href']?>"
width="100%"></iframe>