Browse Source

Update makehtml_taglist_action.php

tags/6.1.9
xushubieli 2 years ago
parent
commit
297dc93ea9
1 changed files with 6 additions and 7 deletions
  1. +6
    -7
      src/admin/makehtml_taglist_action.php

+ 6
- 7
src/admin/makehtml_taglist_action.php View File

@@ -11,7 +11,6 @@
require_once(dirname(__FILE__)."/config.php");
CheckPurview('sys_MakeHtml');
require_once(DEDEINC."/archive/taglist.class.php");

if (empty($pageno)) $pageno = 0;
if (empty($mktime)) $mktime = time();
if (empty($mkpage)) $mkpage = 1;
@@ -46,7 +45,7 @@ if ($ctagid == 0 && $allfinish) {
$dlist->SetTagsDir($tagsdir);
$dlist->MakeHtml(1, 10);
$reurl = '..'.$tagsdir;
ShowMsg("完成TAG更新<a href='$reurl' target='_blank'>浏览TAG首页</a>", "javascript:;");
ShowMsg("更新完成TAG,<a href='$reurl' target='_blank'>浏览标签</a>", "javascript:;");
exit;
}
$tag = $dsql->GetOne("SELECT * FROM `#@__tagindex` WHERE id='$ctagid' LIMIT 0,1;");
@@ -76,12 +75,12 @@ if (is_array($tag) && count($tag) > 0) {
$dlist->MakeHtml(1, 10);
$reurl = '..'.$tagsdir;
if ($upall == 1) {
ShowMsg("完成TAG更新<a href='$reurl' target='_blank'>浏览TAG首页</a>", "javascript:;");
ShowMsg("完成TAG更新<a href='$reurl' target='_blank'>浏览标签</a>", "javascript:;");
} else {
$query = "UPDATE `#@__tagindex` SET mktime=uptime WHERE id='$ctagid' ";
$dsql->ExecuteNoneQuery($query);
$reurl .= '/'.$ctagid;
ShowMsg("完成TAG更新:[".$tag['tag']."]<a href='$reurl' target='_blank'>浏览TAG首页</a>", "javascript:;");
ShowMsg("更新完成TAG:".$tag['tag'].",<a href='$reurl' target='_blank'>浏览标签</a>", "javascript:;");
}
exit();
} else {
@@ -95,14 +94,14 @@ if (is_array($tag) && count($tag) > 0) {
}
$gourl = "makehtml_taglist_action.php?maxpagesize=$maxpagesize&tagid=$tagid&pageno=$nextpage&upall=$upall&ctagid=$ctagid&startid=$startid&endid=$endid&mktime=$mktime";
var_dump_cli($gourl);
ShowMsg("成功生成TAG:[".$tag['tag']."],继续进行操作", $gourl, 0, 100);
ShowMsg("成功生成TAG:".$tag['tag'].",继续进行操作", $gourl, 0, 100);
exit();
} else {
//继续当前这个
$gourl = "makehtml_taglist_action.php?mkpage=$mkpage&maxpagesize=$maxpagesize&tagid=$tagid&pageno=$pageno&upall=$upall&ctagid=$ctagid&startid=$startid&endid=$endid&mktime=$mktime";
var_dump_cli($gourl);
ShowMsg("成功生成TAG:[".$tag['tag']."],继续进行操作", $gourl, 0, 100);
ShowMsg("成功生成TAG:".$tag['tag'].",继续进行操作", $gourl, 0, 100);
exit();
}
}
}
}

Loading…
Cancel
Save