From 835bf0a5e4ad2d5a2f92f68d7cf14618ce395a61 Mon Sep 17 00:00:00 2001 From: xushubieli Date: Fri, 6 May 2022 18:13:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9B=B4=E6=96=B0=E9=A6=96?= =?UTF-8?q?=E9=A1=B5=E8=B7=AF=E5=BE=84=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/admin/makehtml_homepage.php | 12 ++++++------ src/admin/makehtml_spec.php | 2 +- src/admin/makehtml_taglist_action.php | 6 +++--- src/system/archive/freelist.class.php | 4 ++-- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/admin/makehtml_homepage.php b/src/admin/makehtml_homepage.php index ba650067..5ceb9469 100644 --- a/src/admin/makehtml_homepage.php +++ b/src/admin/makehtml_homepage.php @@ -31,28 +31,28 @@ if ($dopost == "view") { //设定dedebiz admin密码 if ($dedebiz_admin == "" || $dedebiz_admin !== $re_dedebiz_admin) { echo ""; - echo "
DedeBIZ操作密码为空或两次指定的密码不符

"; + echo "
DedeBIZ操作密码为空或两次指定的密码不符

"; $client->Close(); exit; } $data = $client->AdminPWDCreate($dedebiz_admin); if ($data->data != "ok") { echo ""; - echo "
DedeBIZ设定操作密码失败:${$data}

"; + echo "
DedeBIZ设定操作密码失败:${$data}

"; $client->Close(); exit; } } else { if ($dedebiz_admin == "") { echo ""; - echo "
DedeBIZ操作密码为空

"; + echo "
DedeBIZ操作密码为空

"; $client->Close(); exit; } $data = $client->AdminSetIndexLockState($dedebiz_admin, $lockindex); if ($data->data != "ok") { echo ""; - echo "
DedeBIZ操作密码失败,填写正确的操作密码

"; + echo "
DedeBIZ操作密码失败,填写正确的操作密码

"; $client->Close(); exit; } @@ -84,12 +84,12 @@ if ($dopost == "view") { $pv->SetTemplet($cfg_basedir.$cfg_templets_dir."/".$templet); $pv->SaveToHtml($homeFile); echo ""; - echo "
成功更新首页:".$homeFile." 浏览
"; + echo "
成功更新首页:".$position." 浏览
"; } else { //动态浏览 if (file_exists($homeFile)) @unlink($homeFile); echo ""; - echo "
采用动态浏览:浏览
"; + echo "
采用动态浏览:浏览
"; } $iquery = "UPDATE `#@__homepageset` SET showmod='$showmod'"; $dsql->ExecuteNoneQuery($iquery); diff --git a/src/admin/makehtml_spec.php b/src/admin/makehtml_spec.php index 0b0bec1a..955db054 100644 --- a/src/admin/makehtml_spec.php +++ b/src/admin/makehtml_spec.php @@ -16,7 +16,7 @@ if ($dopost == "ok") { $sp = new SpecView(); $rurl = $sp->MakeHtml(0); echo ""; - echo "
成功生成所有专题列表 预览
"; + echo "
成功生成所有专题列表 预览
"; exit(); } include DedeInclude('templets/makehtml_spec.htm'); \ No newline at end of file diff --git a/src/admin/makehtml_taglist_action.php b/src/admin/makehtml_taglist_action.php index 08542c3a..b515c445 100644 --- a/src/admin/makehtml_taglist_action.php +++ b/src/admin/makehtml_taglist_action.php @@ -21,7 +21,7 @@ $startid = isset($startid) ? intval($startid) : 0; $endid = isset($endid) ? intval($endid) : 0; $tagid = isset($tagid) ? intval($tagid) : 0; $tagsdir = str_replace("{cmspath}", $cfg_cmspath, $cfg_tags_dir); -// 生成 +//生成 if ($tagid > 0) { $upall = 0; //更新单个模式 $ctagid = $tagid; @@ -31,7 +31,7 @@ if ($tagid > 0) { $allfinish = false; //是否全部完成 $gwhere = ($startid == 0 ? "WHERE 1=1" : "WHERE id>=$startid"); if ($endid > $startid && $startid > 0) $gwhere .= " AND id <= $endid "; -// 判断生成模式 +//判断生成模式 if ($upall == 1 && $ctagid == 0) { $rr = $dsql->GetOne("SELECT * FROM `#@__tagindex` $gwhere AND mktime <> {$mktime} LIMIT 1"); if (isset($rr['id']) && $rr['id'] > 0) { @@ -49,7 +49,7 @@ if ($ctagid == 0 && $allfinish) { exit; } $tag = $dsql->GetOne("SELECT * FROM `#@__tagindex` WHERE id='$ctagid' LIMIT 0,1;"); -// 创建TAGS目录 +//创建TAGS目录 $tagsDir = str_replace("{cmspath}",$cfg_cmspath,$cfg_tags_dir); MkdirAll($cfg_basedir.$tagsDir, $cfg_dir_purview); if (is_array($tag) && count($tag) > 0) { diff --git a/src/system/archive/freelist.class.php b/src/system/archive/freelist.class.php index 12a02af5..1b9ba370 100755 --- a/src/system/archive/freelist.class.php +++ b/src/system/archive/freelist.class.php @@ -242,14 +242,14 @@ class FreeList } //保存文件 $this->dtp->SaveTo($makeFile); - echo "
成功创建:".preg_replace("#\/{1,}#", "/", $murl)."

"; + echo "
成功创建:".preg_replace("#\/{1,}#", "/", $murl)."

"; } if ($this->FLInfos['nodefault'] == 0) { $murl = '/'.str_replace('{cmspath}', $GLOBALS['cfg_cmspath'], $this->FLInfos['listdir']); $murl .= '/'.$this->FLInfos['defaultpage']; $indexfile = $GLOBALS['cfg_basedir'].$murl; $murl = preg_replace("#\/{1,}#", "/", $murl); - echo "
复制:$firstFile 为 ".$this->FLInfos['defaultpage']."

"; + echo "
复制:$firstFile 为 ".$this->FLInfos['defaultpage']."

"; copy($firstFile, $indexfile); } $this->Close();