footer.php
1.87 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
<?php
if(!defined('InEmpireCMS'))
{
exit();
}
$waitbaktime=(int)$_GET['waitbaktime'];
$stime=(int)$_GET['stime'];
if(empty($stime))
{
$stime=time();
}
$t=(int)$_GET['t'];
if(empty($t))
{$t=0;}
$p=(int)$_GET['p'];
if(empty($p))
{$p=1;}
$btb=explode(",",$b_table);
$tbcount=count($btb);
//最後一個文件
if($p>=$tb[$btb[$t]])
{
$t++;
//恢復完畢
if($t>=$tbcount)
{
if($ecms_config['db']['dbname']!=$mydbname)
{
$use=$empire->usequery("use ".$ecms_config['db']['dbname']);
}
$enews="ReData";
//操作日誌
insert_dolog("dbname=".$mydbname."&path=".$mypath);
$varmessage=$fun_r['ReDataSuccess']."<br><br>".$fun_r['TotalUseTime'].ToChangeUseTime($stime);
$GLOBALS['varmessage']=$varmessage;
printerror('VarMessage','../../ReData.php'.hReturnEcmsHashStrHref2(1),0,1);
}
$nfile=$btb[$t]."_1.php";
//進入下一個表
//echo $btb[$t-1].$fun_r['ReOneTableSuccess']."<script>self.location.href='$nfile?t=$t&p=0&mydbname=$mydbname&mypath=$mypath&stime=$stime".hReturnEcmsHashStrHref(0)."';</script>";
echo"<meta http-equiv=\"refresh\" content=\"".$waitbaktime.";url=$nfile?t=$t&p=0&mydbname=$mydbname&mypath=$mypath&stime=$stime&waitbaktime=$waitbaktime".hReturnEcmsHashStrHref(0)."\">".$btb[$t-1].$fun_r['ReOneTableSuccess'];
exit();
}
//進入下一個文件
$p++;
$nfile=$btb[$t]."_".$p.".php";
//echo $fun_r['ReOneDataSuccess'].Ebak_EchoReDataSt($btb[$t],$tbcount,$t,$tb[$btb[$t]],$p)."<script>self.location.href='$nfile?t=$t&p=$p&mydbname=$mydbname&mypath=$mypath&stime=$stime".hReturnEcmsHashStrHref(0)."';</script>";
echo"<meta http-equiv=\"refresh\" content=\"".$waitbaktime.";url=$nfile?t=$t&p=$p&mydbname=$mydbname&mypath=$mypath&stime=$stime&waitbaktime=$waitbaktime".hReturnEcmsHashStrHref(0)."\">".$fun_r['ReOneDataSuccess'].Ebak_EchoReDataSt($btb[$t],$tbcount,$t,$tb[$btb[$t]],$p);
db_close();
$empire=null;
?>