From 459498ad1391ff849fb856fe61e9468096d3e360 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=99=E8=BF=B0=E3=80=81=E5=88=AB=E7=A6=BB?= <2449271624@qq.com> Date: Tue, 12 Sep 2023 11:32:46 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=80=E5=8C=96=E6=8F=90=E7=A4=BA=EF=BC=8C?= =?UTF-8?q?=E5=B9=B6=E4=BF=AE=E6=AD=A3=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/admin/actionsearch_class.php | 6 ++-- src/admin/album_add.php | 4 +-- src/admin/album_edit.php | 2 +- src/admin/archives_add.php | 2 +- src/admin/archives_do.php | 12 ++++---- src/admin/archives_edit.php | 2 +- src/admin/archives_sg_add.php | 2 +- src/admin/archives_sg_edit.php | 2 +- src/admin/article_add.php | 4 +-- src/admin/article_description_main.php | 4 +-- src/admin/article_edit.php | 2 +- src/admin/article_test_same.php | 2 +- src/admin/cards_make.php | 2 +- src/admin/catalog_add.php | 2 +- src/admin/catalog_del.php | 2 +- src/admin/catalog_do.php | 4 +-- src/admin/content_batchup_action.php | 8 ++--- src/admin/dialog/select_images_post.php | 2 +- src/admin/dialog/select_soft_post.php | 4 +-- src/admin/dialog/select_templets_post.php | 2 +- src/admin/diy_edit.php | 2 +- src/admin/erraddsave.php | 2 +- src/admin/feedback_edit.php | 2 +- src/admin/file_class.php | 2 +- src/admin/file_manage_control.php | 2 +- src/admin/file_manage_view.php | 4 +-- src/admin/friendlink_add.php | 2 +- src/admin/friendlink_edit.php | 2 +- src/admin/makehtml_all.php | 2 +- src/admin/makehtml_archives_action.php | 6 ++-- src/admin/makehtml_freelist_action.php | 4 +-- src/admin/makehtml_taglist_action.php | 6 ++-- src/admin/media_add.php | 2 +- src/admin/member_do.php | 8 ++--- src/admin/member_toadmin.php | 2 +- src/admin/module_main.php | 6 ++-- src/admin/module_upload.php | 2 +- src/admin/mychannel_edit.php | 12 ++++---- src/admin/mychannel_field_add.php | 2 +- src/admin/mychannel_field_edit.php | 2 +- src/admin/plus_edit.php | 2 +- src/admin/soft_add.php | 4 +-- src/admin/soft_edit.php | 2 +- src/admin/sys_admin_user_edit.php | 8 ++--- src/admin/sys_data.php | 8 ++--- src/admin/sys_data_replace.php | 4 +-- src/admin/sys_info.php | 8 ++--- src/admin/sys_info_mark.php | 2 +- src/admin/sys_sql_query.php | 34 +++++++++++----------- src/admin/tag_test_action.php | 2 +- src/admin/templets/album_edit.htm | 2 +- src/admin/templets/archives_edit.htm | 2 +- src/admin/templets/article_edit.htm | 2 +- src/admin/templets/makehtml_taglist.htm | 5 +++- src/admin/templets/member_toadmin.htm | 3 +- src/admin/templets/module_edit.htm | 5 +++- src/admin/templets/module_main.htm | 2 +- src/admin/templets/module_make.htm | 5 +++- src/admin/templets/soft_edit.htm | 2 +- src/admin/templets/spec_edit.htm | 2 +- src/admin/templets/sys_admin_user_add.htm | 3 +- src/admin/templets/sys_admin_user_edit.htm | 3 +- src/admin/templets/sys_data_replace.htm | 2 +- src/admin/templets/sys_group_add.htm | 2 +- src/admin/templets_one_edit.php | 4 +-- src/apps/download.php | 4 +-- src/apps/list.php | 2 +- src/apps/search.php | 2 +- src/apps/view.php | 8 ++--- src/install/install.html | 2 +- src/install/install.inc.php | 2 +- src/system/database/dedesqli.class.php | 2 +- src/system/database/dedesqlite.class.php | 2 +- src/system/dedemodule.class.php | 20 ++++++------- src/system/helpers/upload.helper.php | 2 +- src/system/inc/inc_fun_funAdmin.php | 2 +- src/system/memberlogin.class.php | 4 +-- src/user/album_add.php | 6 ++-- src/user/archives_add.php | 6 ++-- src/user/archives_sg_add.php | 10 +++---- src/user/article_add.php | 6 ++-- src/user/config.php | 4 +-- src/user/inc/archives_check.php | 4 +-- src/user/index_do.php | 2 +- src/user/reg_new.php | 2 +- src/user/resetpassword.php | 2 +- src/user/soft_add.php | 6 ++-- 87 files changed, 186 insertions(+), 174 deletions(-) diff --git a/src/admin/actionsearch_class.php b/src/admin/actionsearch_class.php index 7046423a..f311b631 100644 --- a/src/admin/actionsearch_class.php +++ b/src/admin/actionsearch_class.php @@ -77,14 +77,14 @@ class ActionSearch if ($key == 'title' || $key == 'description') { //仅对title,description进行数组替换 if ($key == 'description') { - $text[$key] = str_replace($this->keyword, ''.$this->keyword.'', $text[$key]); + $text[$key] = str_replace($this->keyword, ''.$this->keyword.'', $text[$key]); } else { - $text[$key] = str_replace($this->keyword, ''.$this->keyword.'', $text[$key]); + $text[$key] = str_replace($this->keyword, ''.$this->keyword.'', $text[$key]); } } } } else { - $text = str_replace($this->keyword, ''.$this->keyword.'', $text); + $text = str_replace($this->keyword, ''.$this->keyword.'', $text); } return $text; } diff --git a/src/admin/album_add.php b/src/admin/album_add.php index 17cd1cce..06afaca3 100644 --- a/src/admin/album_add.php +++ b/src/admin/album_add.php @@ -66,7 +66,7 @@ if ($dopost != 'save') { exit(); } if (!TestPurview('a_New')) { - CheckCatalog($typeid, "您没有操作栏目{$typeid}权限"); + CheckCatalog($typeid, "您没有操作栏目{$typeid}权限"); } //对保存的文档进行处理 if (empty($writer)) $writer = $cuserLogin->getUserName(); @@ -194,7 +194,7 @@ if ($dopost != 'save') { if (empty($addtable)) { $dsql->ExecuteNoneQuery("DELETE FROM `#@__archives` WHERE id='$arcID'"); $dsql->ExecuteNoneQuery("DELETE FROM `#@__arctiny` WHERE id='$arcID'"); - ShowMsg("没找到模型{$channelid}主表信息,无法完成操作", "javascript:;"); + ShowMsg("没找到模型{$channelid}主表信息,无法完成操作", "javascript:;"); exit(); } $useip = GetIP(); diff --git a/src/admin/album_edit.php b/src/admin/album_edit.php index c2884198..74c1cdcf 100644 --- a/src/admin/album_edit.php +++ b/src/admin/album_edit.php @@ -79,7 +79,7 @@ if ($dopost != 'save') { exit(); } if (!TestPurview('a_Edit')) { - CheckCatalog($typeid, "您没有操作栏目{$typeid}文档权限"); + CheckCatalog($typeid, "您没有操作栏目{$typeid}文档权限"); } //对保存的文档进行处理 $pubdate = GetMkTime($pubdate); diff --git a/src/admin/archives_add.php b/src/admin/archives_add.php index bdfc8829..b1340815 100644 --- a/src/admin/archives_add.php +++ b/src/admin/archives_add.php @@ -66,7 +66,7 @@ if ($dopost != 'save') { exit(); } if (!TestPurview('a_New')) { - CheckCatalog($typeid, "您没有操作栏目{$typeid}权限"); + CheckCatalog($typeid, "您没有操作栏目{$typeid}权限"); } //对保存的文档进行处理 if (empty($writer)) $writer = $cuserLogin->getUserName(); diff --git a/src/admin/archives_do.php b/src/admin/archives_do.php index 54c79e98..aa2d4115 100644 --- a/src/admin/archives_do.php +++ b/src/admin/archives_do.php @@ -208,7 +208,7 @@ else if ($dopost == "makeArchives") { $i++; $pageurl = MakeArt($aid, false); } - ShowMsg("成功更新指定$i个文件", $ENV_GOBACK_URL); + ShowMsg("成功更新指定$i个文件", $ENV_GOBACK_URL); exit(); } //审核文档 @@ -317,7 +317,7 @@ else if ($dopost == "checkArchives") { $arc = new Archives($aid); $arc->MakeHtml(); } - ShowMsg("成功移动$j个文档", $ENV_GOBACK_URL); + ShowMsg("成功移动$j个文档", $ENV_GOBACK_URL); exit(); } } @@ -373,7 +373,7 @@ else if ($dopost == "delArchives") { $win->AddHidden("dopost", $dopost); $win->AddHidden("qstr", $qstr); $win->AddHidden("aid", $aid); - $win->AddTitle("您确定删除,序号$qstr文档吗"); + $win->AddTitle("您确定删除,序号$qstr文档吗"); $winform = $win->GetWindow("ok"); $win->Display(); } @@ -424,7 +424,7 @@ else if ($dopost == 'clear') { $win->AddHidden("qstr", $qstr); $win->AddHidden("aid", $aid); $win->AddHidden("recycle", $recycle); - $win->AddTitle("清空回收站$num篇文档
您确定删除,序号$qstr文档吗"); + $win->AddTitle("清空回收站$num篇文档
您确定删除,序号$qstr文档吗"); $winform = $win->GetWindow("ok"); $win->Display(); } @@ -462,7 +462,7 @@ else if ($dopost == 'del') { $win->AddHidden("qstr", $qstr); $win->AddHidden("aid", $aid); $win->AddHidden("recycle", $recycle); - $win->AddTitle("您确要删除,序号$qstr文档吗"); + $win->AddTitle("您确要删除,序号$qstr文档吗"); $winform = $win->GetWindow("ok"); $win->Display(); } @@ -556,7 +556,7 @@ else if ($dopost == 'quickEditSave') { require_once(DEDEADMIN.'/inc/inc_archives_functions.php'); //权限检测 if (!TestPurview('a_Edit')) { - CheckCatalog($typeid, "您没有操作栏目{$typeid}文档权限"); + CheckCatalog($typeid, "您没有操作栏目{$typeid}文档权限"); } $title = dede_htmlspecialchars(cn_substrR($title, $cfg_title_maxlen)); $shorttitle = cn_substrR($shorttitle, 36); diff --git a/src/admin/archives_edit.php b/src/admin/archives_edit.php index e475043b..60230eea 100644 --- a/src/admin/archives_edit.php +++ b/src/admin/archives_edit.php @@ -65,7 +65,7 @@ if ($dopost != 'save') { exit(); } if (!TestPurview('a_Edit')) { - CheckCatalog($typeid, "您没有操作栏目{$typeid}文档权限"); + CheckCatalog($typeid, "您没有操作栏目{$typeid}文档权限"); } //对保存的文档进行处理 $pubdate = GetMkTime($pubdate); diff --git a/src/admin/archives_sg_add.php b/src/admin/archives_sg_add.php index e2e63895..4b1b90a9 100644 --- a/src/admin/archives_sg_add.php +++ b/src/admin/archives_sg_add.php @@ -54,7 +54,7 @@ if ($dopost != 'save') { exit(); } if (!TestPurview('a_New')) { - CheckCatalog($typeid, "您没有操作栏目{$typeid}权限"); + CheckCatalog($typeid, "您没有操作栏目{$typeid}权限"); } //对保存的文档进行处理 if (empty($writer)) $writer = $cuserLogin->getUserName(); diff --git a/src/admin/archives_sg_edit.php b/src/admin/archives_sg_edit.php index 561309dc..3efb4128 100644 --- a/src/admin/archives_sg_edit.php +++ b/src/admin/archives_sg_edit.php @@ -51,7 +51,7 @@ if ($dopost != 'save') { exit(); } if (!TestPurview('a_Edit')) { - CheckCatalog($typeid, "您没有操作栏目{$typeid}文档权限"); + CheckCatalog($typeid, "您没有操作栏目{$typeid}文档权限"); } //对保存的文档进行处理 if (empty($flags)) $flag = ''; diff --git a/src/admin/article_add.php b/src/admin/article_add.php index df5b0b98..178b0491 100644 --- a/src/admin/article_add.php +++ b/src/admin/article_add.php @@ -68,7 +68,7 @@ if ($dopost != 'save') { exit(); } if (!TestPurview('a_New')) { - CheckCatalog($typeid, "您没有操作栏目{$typeid}权限"); + CheckCatalog($typeid, "您没有操作栏目{$typeid}权限"); } //对保存的文档进行处理 if (empty($writer)) $writer = $cuserLogin->getUserName(); @@ -152,7 +152,7 @@ if ($dopost != 'save') { if (empty($addtable)) { $dsql->ExecuteNoneQuery("DELETE FROM `#@__archives` WHERE id='$arcID'"); $dsql->ExecuteNoneQuery("DELETE FROM `#@__arctiny` WHERE id='$arcID'"); - ShowMsg("没找到模型{$channelid}主表信息,无法完成操作", "javascript:;"); + ShowMsg("没找到模型{$channelid}主表信息,无法完成操作", "javascript:;"); exit(); } $useip = GetIP(); diff --git a/src/admin/article_description_main.php b/src/admin/article_description_main.php index 72ae4a58..69a7ac29 100644 --- a/src/admin/article_description_main.php +++ b/src/admin/article_description_main.php @@ -80,7 +80,7 @@ if ($dojob == '') { } $dvlen = $tjlen * 1; $tjsta = "
$dvlen%
"; - $tjsta .= "完成更新文档总数$tjlen%"; + $tjsta .= "完成更新文档总数$tjlen%"; $nurl = "article_description_main.php?totalnum=$totalnum&startdd={$startdd}&pagesize=$pagesize&table={$table}&field={$field}&dsize={$dsize}&msize={$msize}&channel={$channel}&dojob={$dojob}"; ShowMsg($tjsta, $nurl, 0, 500); exit(); @@ -140,7 +140,7 @@ if ($dojob == '') { } $dvlen = $tjlen * 1; $tjsta = "
$dvlen%
"; - $tjsta .= "完成更新文档总数$tjlen%"; + $tjsta .= "完成更新文档总数$tjlen%"; if ($tjnum < $totalnum) { $nurl = "article_description_main.php?totalnum=$totalnum&startdd=".($startdd + $pagesize)."&pagesize=$pagesize&table={$table}&field={$field}&dsize={$dsize}&msize={$msize}&channel={$channel}&dojob={$dojob}"; ShowMsg($tjsta, $nurl, 0, 500); diff --git a/src/admin/article_edit.php b/src/admin/article_edit.php index 25bfbe95..9e79e1b4 100644 --- a/src/admin/article_edit.php +++ b/src/admin/article_edit.php @@ -71,7 +71,7 @@ if ($dopost != 'save') { exit(); } if (!TestPurview('a_Edit')) { - CheckCatalog($typeid, "您没有操作栏目{$typeid}文档权限"); + CheckCatalog($typeid, "您没有操作栏目{$typeid}文档权限"); } //对保存的文档进行处理 $pubdate = GetMkTime($pubdate); diff --git a/src/admin/article_test_same.php b/src/admin/article_test_same.php index 8ca1f655..134a97ca 100644 --- a/src/admin/article_test_same.php +++ b/src/admin/article_test_same.php @@ -71,7 +71,7 @@ else if ($dopost == 'delsel') { } } $dsql->ExecuteNoneQuery(" OPTIMIZE TABLE `$maintable`;"); - ShowMsg("一共删除了{$totalarc}篇重复的文档", "javascript:;"); + ShowMsg("成功删除{$totalarc}篇重复文档", "javascript:;"); exit(); } //向导页 diff --git a/src/admin/cards_make.php b/src/admin/cards_make.php index a1e14a2e..760e327a 100644 --- a/src/admin/cards_make.php +++ b/src/admin/cards_make.php @@ -50,6 +50,6 @@ elseif ($dopost == 'make') { $dsql->ExecuteNoneQuery($inquery); echo "成功生成积分:{$cardid}
"; } - echo "成功生成{$mnum}个积分"; + echo "成功生成{$mnum}个积分"; } ?> \ No newline at end of file diff --git a/src/admin/catalog_add.php b/src/admin/catalog_add.php index 13950623..6ec35882 100644 --- a/src/admin/catalog_add.php +++ b/src/admin/catalog_add.php @@ -169,7 +169,7 @@ if ($dopost == 'quick') { $true_typedir = str_replace("{cmspath}", $cfg_cmspath, $typedir); $true_typedir = preg_replace("#\/{1,}#", "/", $true_typedir); if (!CreateDir($true_typedir)) { - ShowMsg("创建目录{$true_typedir}失败,请检查您的路径是否存在问题", "-1"); + ShowMsg("创建目录{$true_typedir}失败,请检查您的路径是否存在问题", "-1"); exit(); } } diff --git a/src/admin/catalog_del.php b/src/admin/catalog_del.php index 71a4f506..f8ff8d48 100644 --- a/src/admin/catalog_del.php +++ b/src/admin/catalog_del.php @@ -32,7 +32,7 @@ $win = new OxWindow(); $win->Init('catalog_del.php', 'js/blank.js', 'POST'); $win->AddHidden('id', $id); $win->AddHidden('dopost', 'ok'); -$win->AddTitle("您要确定要删除{$row['typename']}栏目吗"); +$win->AddTitle("您要确定要删除{$row['typename']}栏目吗"); $win->AddItem('栏目的文件保存目录:', $row['typedir']); $winform = $win->GetWindow('ok'); $win->Display(); diff --git a/src/admin/catalog_do.php b/src/admin/catalog_do.php index c040cb91..8f9f5718 100644 --- a/src/admin/catalog_do.php +++ b/src/admin/catalog_do.php @@ -175,7 +175,7 @@ else if ($dopost == 'unitCatalog') { $reid = $tl->TypeInfos['reid']; $channelid = $tl->TypeInfos['channeltype']; if (!empty($row['dd'])) { - ShowMsg("栏目$typename($typeid)有子栏目,不能进行合并操作", '-1'); + ShowMsg("栏目$typename有子栏目,不能进行合并操作", '-1'); exit(); } $typeOptions = $tl->GetOptionArray(0, 0, $channelid); @@ -188,7 +188,7 @@ else if ($dopost == 'unitCatalog') { $win->AddHidden('channelid', $channelid); $win->AddHidden('nextjob', 'unitok'); $win->AddTitle("合并目录时不会删除原来的栏目目录,合并后需手动更新目标栏目的文档网页和列表网页,栏目不能有下级子栏目,只允许子级到更高级或同级或不同父级的情况"); - $win->AddItem('您选择的栏目是:', "$typename($typeid)"); + $win->AddItem('您选择的栏目是:', "$typename"); $win->AddItem('您希望合并到那个栏目', ""); $winform = $win->GetWindow('ok'); $win->Display(); diff --git a/src/admin/content_batchup_action.php b/src/admin/content_batchup_action.php index 10b334dd..1499deff 100644 --- a/src/admin/content_batchup_action.php +++ b/src/admin/content_batchup_action.php @@ -80,7 +80,7 @@ else if ($action == 'del') { while ($row = $dsql->GetObject('x')) { if (DelArc($row->id)) $tdd++; } - ShowMsg("成功删除$tdd条记录", "javascript:;"); + ShowMsg("成功删除$tdd条记录", "javascript:;"); exit(); } //删除空标题文档 @@ -91,7 +91,7 @@ else if ($action == 'delnulltitle') { while ($row = $dsql->GetObject('x')) { if (DelArc($row->id)) $tdd++; } - ShowMsg("成功删除$tdd条记录", "javascript:;"); + ShowMsg("成功删除$tdd条记录", "javascript:;"); exit(); } //删除空文档 @@ -102,7 +102,7 @@ else if ($action == 'delnullbody') { while ($row = $dsql->GetObject('x')) { if (DelArc($row->aid)) $tdd++; } - ShowMsg("成功删除$tdd条记录", "javascript:;"); + ShowMsg("成功删除$tdd条记录", "javascript:;"); exit(); } //修正缩略图错误 @@ -165,7 +165,7 @@ else if ($action == 'delnulltitle') { while ($row = $dsql->GetObject('x')) { if (DelArc($row->id)) $tdd++; } - ShowMsg("成功删除$tdd条记录", "javascript:;"); + ShowMsg("成功删除$tdd条记录", "javascript:;"); exit(); } //修正缩略图错误 diff --git a/src/admin/dialog/select_images_post.php b/src/admin/dialog/select_images_post.php index 6c58a0b3..dcb716d8 100644 --- a/src/admin/dialog/select_images_post.php +++ b/src/admin/dialog/select_images_post.php @@ -59,7 +59,7 @@ if (!preg_match("#^(image|video|audio|application)#i", $mime)) { ShowMsg("仅支持媒体文件及应用程序上传", -1); exit; } -move_uploaded_file($imgfile, $fullfilename) or die("上传文件到$fullfilename失败"); +move_uploaded_file($imgfile, $fullfilename) or die("上传文件到$fullfilename失败"); @unlink($imgfile); if (empty($resize)) { $resize = 0; diff --git a/src/admin/dialog/select_soft_post.php b/src/admin/dialog/select_soft_post.php index fe699514..a9884e8b 100644 --- a/src/admin/dialog/select_soft_post.php +++ b/src/admin/dialog/select_soft_post.php @@ -28,7 +28,7 @@ $cfg_softtype = $cfg_softtype; $cfg_softtype = str_replace('||', '|', $cfg_softtype); $uploadfile_name = trim(preg_replace("#[ \r\n\t\*\%\\\/\?><\|\":]{1,}#", '', $uploadfile_name)); if (!preg_match("#\.(".$cfg_softtype.")#i", $uploadfile_name)) { - ShowMsg("您上传的{$uploadmbtype}扩展名已被系统禁止", "-1"); + ShowMsg("您上传的{$uploadmbtype}扩展名已被系统禁止", "-1"); exit(); } $nowtme = time(); @@ -73,7 +73,7 @@ if (!preg_match("#^(image|video|audio|application)#i", $mime)) { ShowMsg("仅支持媒体文件及应用程序上传", -1); exit; } -move_uploaded_file($uploadfile, $fullfilename) or die("上传文件到$fullfilename失败"); +move_uploaded_file($uploadfile, $fullfilename) or die("上传文件到$fullfilename失败"); @unlink($uploadfile); if ($uploadfile_type == 'application/x-shockwave-flash') { $mediatype = 2; diff --git a/src/admin/dialog/select_templets_post.php b/src/admin/dialog/select_templets_post.php index 91b1945d..e2759240 100644 --- a/src/admin/dialog/select_templets_post.php +++ b/src/admin/dialog/select_templets_post.php @@ -34,7 +34,7 @@ if ($filename == '' || !preg_match("#\.(".$cfg_txttype.")#i", $filename)) { exit(); } $fullfilename = $cfg_basedir.$activepath."/".$filename; -move_uploaded_file($uploadfile, $fullfilename) or die("上传文件到$fullfilename失败"); +move_uploaded_file($uploadfile, $fullfilename) or die("上传文件到$fullfilename失败"); @unlink($uploadfile); ShowMsg("成功上传文件", "select_templets.php?comeback=".urlencode($filename)."&f=$f&activepath=".urlencode($activepath)."&d=".time()); exit(); diff --git a/src/admin/diy_edit.php b/src/admin/diy_edit.php index c68010e0..369b2fc2 100644 --- a/src/admin/diy_edit.php +++ b/src/admin/diy_edit.php @@ -35,7 +35,7 @@ if ($dopost == "save") { $win->AddHidden("job", "yes"); $win->AddHidden("dopost", $dopost); $win->AddHidden("diyid", $diyid); - $win->AddTitle("删除自定义表单包括数据,您确定要删除".$row['name']."自定义表单吗"); + $win->AddTitle("删除自定义表单包括数据,您确定要删除".$row['name']."自定义表单吗"); $winform = $win->GetWindow("ok"); $win->Display(); exit(); diff --git a/src/admin/erraddsave.php b/src/admin/erraddsave.php index ea7b2990..d0f20a46 100644 --- a/src/admin/erraddsave.php +++ b/src/admin/erraddsave.php @@ -78,7 +78,7 @@ if ($dopost == "delete") { $win->AddHidden("fmdo", "yes"); $win->AddHidden("dopost", $dopost); $win->AddHidden("id", $id); - $win->AddTitle("您确定要删除$id错误提示吗"); + $win->AddTitle("您确定要删除$id错误提示吗"); $winform = $win->GetWindow("ok"); $win->Display(); exit(); diff --git a/src/admin/feedback_edit.php b/src/admin/feedback_edit.php index 1d54a9b0..def12503 100644 --- a/src/admin/feedback_edit.php +++ b/src/admin/feedback_edit.php @@ -22,7 +22,7 @@ if ($dopost == 'edit') { $adminmsg = str_replace(">", ">", $adminmsg); $adminmsg = str_replace(" ", "  ", $adminmsg); $adminmsg = str_replace("\r\n", "
\n", $adminmsg); - $msg = $msg."
\n"."管理员回复:$adminmsg\n"; + $msg = $msg."
\n"."管理员回复:$adminmsg\n"; } $query = "UPDATE `#@__feedback` SET username='$username',msg='$msg',ischeck=1 WHERE id=$id"; $dsql->ExecuteNoneQuery($query); diff --git a/src/admin/file_class.php b/src/admin/file_class.php index fc5fe2f9..de563616 100644 --- a/src/admin/file_class.php +++ b/src/admin/file_class.php @@ -84,7 +84,7 @@ class FileManagement ShowMsg("成功移动文件", "file_manage_main.php?activepath=$mpath", 0, 1000); return 1; } else { - ShowMsg("移动文件$oldfile>$truepath/$mfile失败,某个位置权限不足", "file_manage_main.php?activepath=$mpath", 0, 1000); + ShowMsg("移动文件$oldfile - $truepath/$mfile失败,某个位置权限不足", "file_manage_main.php?activepath=$mpath", 0, 1000); return 0; } } else { diff --git a/src/admin/file_manage_control.php b/src/admin/file_manage_control.php index 3e540648..5075af16 100644 --- a/src/admin/file_manage_control.php +++ b/src/admin/file_manage_control.php @@ -91,7 +91,7 @@ else if ($fmdo == "upload") { $j++; } } - ShowMsg("成功上传$j个文件到$activepath", "file_manage_main.php?activepath=$activepath"); + ShowMsg("成功上传$j个文件到$activepath", "file_manage_main.php?activepath=$activepath"); exit(); } //空间检查 diff --git a/src/admin/file_manage_view.php b/src/admin/file_manage_view.php index a2909e5e..3ced4ee7 100644 --- a/src/admin/file_manage_view.php +++ b/src/admin/file_manage_view.php @@ -75,9 +75,9 @@ else if ($fmdo == "del") { $win->AddHidden("activepath", $activepath); $win->AddHidden("filename", $filename); if (@is_dir($cfg_basedir.$activepath."/$filename")) { - $msg = "您确定要删除$filename目录吗"; + $msg = "您确定要删除$filename目录吗"; } else { - $msg = "您确定要删除$filename文件吗"; + $msg = "您确定要删除$filename文件吗"; } $win->AddTitle("删除文件确认"); $win->AddMsgItem($msg); diff --git a/src/admin/friendlink_add.php b/src/admin/friendlink_add.php index aade9465..31349918 100644 --- a/src/admin/friendlink_add.php +++ b/src/admin/friendlink_add.php @@ -34,7 +34,7 @@ if ($dopost == "add") { ShowMsg("非图片格式文件,无法正常上传", -1); exit; } - move_uploaded_file($logoimg, $cfg_basedir.$imgurl) or die("复制文件到".$cfg_basedir.$imgurl."失败"); + move_uploaded_file($logoimg, $cfg_basedir.$imgurl) or die("复制文件到".$cfg_basedir.$imgurl."失败"); @unlink($logoimg); } else { $imgurl = $logo; diff --git a/src/admin/friendlink_edit.php b/src/admin/friendlink_edit.php index e46bed29..ae17e451 100644 --- a/src/admin/friendlink_edit.php +++ b/src/admin/friendlink_edit.php @@ -58,7 +58,7 @@ if ($dopost == "delete") { } $logoimg_name = trim(preg_replace("#[ \r\n\t\*\%\\\/\?><\|\":]{1,}#", '', $logoimg_name)); $fullfilename = DEDEROOT.'static/flink/'.$logoimg_name; - move_uploaded_file($logoimg, $fullfilename) or die("上传文件到$fullfilename失败"); + move_uploaded_file($logoimg, $fullfilename) or die("上传文件到$fullfilename失败"); @unlink($logoimg); $logo = $cfg_cmspath.'/static/flink/'.$logoimg_name; } diff --git a/src/admin/makehtml_all.php b/src/admin/makehtml_all.php index 38930ad6..1a725778 100644 --- a/src/admin/makehtml_all.php +++ b/src/admin/makehtml_all.php @@ -82,7 +82,7 @@ if ($action == '') { } } } - $fp = fopen($mkcachefile, 'w') or die("无法写入缓存文件{$mkcachefile}所以无法更新栏目"); + $fp = fopen($mkcachefile, 'w') or die("无法写入缓存文件{$mkcachefile}所以无法更新栏目"); if (count($typeidsok) > 0) { fwrite($fp, "<"."?php\r\n"); $i = -1; diff --git a/src/admin/makehtml_archives_action.php b/src/admin/makehtml_archives_action.php index b1579707..3aad7f30 100644 --- a/src/admin/makehtml_archives_action.php +++ b/src/admin/makehtml_archives_action.php @@ -80,7 +80,7 @@ $ttime = number_format(($ttime / 60), 2); //返回提示信息 $tjlen = $totalnum > 0 ? ceil(($tjnum / $totalnum) * 100) : 100; $tjsta = "
$tjlen%
"; -$tjsta .= "更新文档[id:".($startdd + $pagesize)."],用时{$ttime}分钟,完成更新文档总数$tjlen%"; +$tjsta .= "更新文档[id:".($startdd + $pagesize)."],用时{$ttime}分钟,完成更新文档总数$tjlen%"; //速度测试 if ($tjnum < $totalnum) { $nurl = "makehtml_archives_action.php?endid=$endid&startid=$startid&typeid=$typeid"; @@ -90,10 +90,10 @@ if ($tjnum < $totalnum) { exit(); } else { if ($typeid != '') { - ShowMsg("更新文档$totalnum,用时{$ttime}分钟,开始更新栏目", "makehtml_list_action.php?typeid=$typeid&uptype=all&maxpagesize=50&upnext=1"); + ShowMsg("更新文档$totalnum,用时{$ttime}分钟,开始更新栏目", "makehtml_list_action.php?typeid=$typeid&uptype=all&maxpagesize=50&upnext=1"); } else { if ($uptype == '') { - ShowMsg("更新文档$totalnum,用时{$ttime}分钟,完成所有文档更新", "javascript:;"); + ShowMsg("更新文档$totalnum,用时{$ttime}分钟,完成所有文档更新", "javascript:;"); } else { ShowMsg("完成所有文档更新,开始更新首页", "makehtml_all.php?action=make&step=3&uptype=$uptype&mkvalue=$mkvalue"); } diff --git a/src/admin/makehtml_freelist_action.php b/src/admin/makehtml_freelist_action.php index 53b236c1..a1474805 100644 --- a/src/admin/makehtml_freelist_action.php +++ b/src/admin/makehtml_freelist_action.php @@ -54,10 +54,10 @@ if ($nextpage == $totalpage) { } else { if ($finishType) { $gourl = "makehtml_freelist_action.php?maxpagesize=$maxpagesize&startid=$startid&endid=$endid&pageno=$nextpage"; - ShowMsg("更新列表".$tid.",继续更新列表", $gourl, 0, 100); + ShowMsg("更新列表".$tid.",继续更新列表", $gourl, 0, 100); } else { $gourl = "makehtml_freelist_action.php?mkpage=$mkpage&maxpagesize=$maxpagesize&startid=$startid&endid=$endid&pageno=$pageno"; - ShowMsg("更新列表".$tid.",继续更新列表", $gourl, 0, 100); + ShowMsg("更新列表".$tid.",继续更新列表", $gourl, 0, 100); } } $dsql->ExecuteNoneQuery("UPDATE `#@__freelist` SET nodefault='1' WHERE aid='$startid';"); diff --git a/src/admin/makehtml_taglist_action.php b/src/admin/makehtml_taglist_action.php index 0d431b9b..bd7f3cdb 100644 --- a/src/admin/makehtml_taglist_action.php +++ b/src/admin/makehtml_taglist_action.php @@ -80,7 +80,7 @@ if (is_array($tag) && count($tag) > 0) { $query = "UPDATE `#@__tagindex` SET mktime=uptime WHERE id='$ctagid' "; $dsql->ExecuteNoneQuery($query); $reurl .= '/'.$ctagid; - ShowMsg("更新标签".$tag['tag']."点击浏览", "javascript:;"); + ShowMsg("更新标签".$tag['tag'].",点击浏览", "javascript:;"); } exit(); } else { @@ -93,12 +93,12 @@ if (is_array($tag) && count($tag) > 0) { $nextpage = 0; } $gourl = "makehtml_taglist_action.php?maxpagesize=$maxpagesize&tagid=$tagid&pageno=$nextpage&upall=$upall&ctagid=$ctagid&startid=$startid&endid=$endid&mktime=$mktime"; - ShowMsg("更新标签".$tag['tag'].",继续更新标签", $gourl, 0, 100); + ShowMsg("更新标签".$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"; - ShowMsg("更新标签".$tag['tag'].",继续更新标签", $gourl, 0, 100); + ShowMsg("更新标签".$tag['tag'].",继续更新标签", $gourl, 0, 100); exit(); } } diff --git a/src/admin/media_add.php b/src/admin/media_add.php index 6156852b..770d2605 100644 --- a/src/admin/media_add.php +++ b/src/admin/media_add.php @@ -85,7 +85,7 @@ if ($dopost == "upload") { $dsql->ExecuteNoneQuery($inquery); } } - ShowMsg("成功上传{$okdd}个文件", "media_main.php"); + ShowMsg("成功上传{$okdd}个文件", "media_main.php"); exit(); } include DedeInclude('templets/media_add.htm'); diff --git a/src/admin/member_do.php b/src/admin/member_do.php index a078c5bc..bcfe750a 100644 --- a/src/admin/member_do.php +++ b/src/admin/member_do.php @@ -66,8 +66,8 @@ if ($dopost == "delmember") { $win->AddHidden("id", $id); $win->AddHidden("randcode", $randcode); $win->AddHidden("safecode", $safecode); - $win->AddTitle("您确定要删除id".$id."会员吗"); - $win->AddMsgItem("验证安全码:(安全码:$safecode)"); + $win->AddTitle("您确定要删除id".$id."会员吗"); + $win->AddMsgItem("验证安全码:(安全码:$safecode)"); $winform = $win->GetWindow("ok"); $win->Display(); } else if ($dopost == "delmembers") { @@ -113,8 +113,8 @@ if ($dopost == "delmember") { $win->AddHidden("id", $id); $win->AddHidden("randcode", $randcode); $win->AddHidden("safecode", $safecode); - $win->AddTitle("您确定要删除id".$id."会员吗"); - $win->AddMsgItem("验证安全码: (安全码:$safecode)"); + $win->AddTitle("您确定要删除id".$id."会员吗"); + $win->AddMsgItem("验证安全码: (安全码:$safecode)"); $winform = $win->GetWindow("ok"); $win->Display(); } diff --git a/src/admin/member_toadmin.php b/src/admin/member_toadmin.php index d1e710f3..33524370 100644 --- a/src/admin/member_toadmin.php +++ b/src/admin/member_toadmin.php @@ -71,7 +71,7 @@ if ($dopost == "toadmin") { $floginid = $cuserLogin->getUserName(); $fromid = $cuserLogin->getUserID(); $subject = "恭喜您已经成功提升管理员"; - $message = "亲爱的会员{$userid},您已经成功提升为{$row['typename']},具体操作权限请同网站超级管理员联系"; + $message = "尊敬的{$userid}会员,您已经成功提升为{$row['typename']},具体操作权限请同网站超级管理员联系"; $sendtime = $writetime = time(); $inquery = "INSERT INTO `#@__member_pms` (`floginid`,`fromid`,`toid`,`tologinid`,`folder`,`subject`,`sendtime`,`writetime`,`hasview`,`isadmin`,`message`) VALUES ('$floginid','$fromid','$id','$userid','inbox','$subject','$sendtime','$writetime','0','0','$message'); "; $dsql->ExecuteNoneQuery($inquery); diff --git a/src/admin/module_main.php b/src/admin/module_main.php index a6f65839..b34cbe58 100644 --- a/src/admin/module_main.php +++ b/src/admin/module_main.php @@ -36,7 +36,7 @@ function ReWriteConfigAuto() global $dsql; $configfile = DEDEDATA.'/config.cache.inc.php'; if (!is_writeable($configfile)) { - echo "配置文件{$configfile}不支持写入,无法修改系统配置参数"; + echo "配置文件{$configfile}不支持写入,无法修改系统配置参数"; exit(); } $fp = fopen($configfile, 'w'); @@ -203,7 +203,7 @@ if ($action == '') { exit(); } else if ($action == 'setupstart') { if (!is_writeable($mdir)) { - ShowMsg("目录{$mdir}不支持写入,这导致程序安装没法正常创建", "-1"); + ShowMsg("目录{$mdir}不支持写入,这导致程序安装没法正常创建", "-1"); exit(); } $dm = new DedeModule($mdir); @@ -303,7 +303,7 @@ if ($action == '') { } else if ($action == 'delok') { $dm = new DedeModule($mdir); $modfile = $mdir."/".$dm->GetHashFile($hash); - unlink($modfile) or die("删除文件{$modfile}失败"); + unlink($modfile) or die("删除文件{$modfile}失败"); ShowMsg("成功删除一个模块文件", "module_main.php"); exit(); } else if ($action == 'uninstall') { diff --git a/src/admin/module_upload.php b/src/admin/module_upload.php index d32ffe78..3beda2e6 100644 --- a/src/admin/module_upload.php +++ b/src/admin/module_upload.php @@ -24,7 +24,7 @@ if ($action == 'upload') { } else { include_once(DEDEINC."/libraries/zip.class.php"); $tmpfilename = $mdir.'/'.ExecTime().mt_rand(10000, 50000).'.tmp'; - move_uploaded_file($upfile, $tmpfilename) or die("上传文件移动到{$tmpfilename}时失败,请检查{$mdir}目录是否有写入权限"); + move_uploaded_file($upfile, $tmpfilename) or die("上传文件移动到{$tmpfilename}时失败,请检查{$mdir}目录是否有写入权限"); $dm = new DedeModule($mdir); $infos = $dm->GetModuleInfo($tmpfilename, 'file'); if (empty($infos['hash'])) { diff --git a/src/admin/mychannel_edit.php b/src/admin/mychannel_edit.php index 7cb2b03a..de5be784 100644 --- a/src/admin/mychannel_edit.php +++ b/src/admin/mychannel_edit.php @@ -51,7 +51,7 @@ if ($dopost == "show") { $wecome_info = "文档模型管理 - 复制文档模型"; $win = new OxWindow(); $win->Init("mychannel_edit.php", "js/blank.js", "post"); - $win->AddTitle("复制文档模型:".$row['typename'].""); + $win->AddTitle("复制文档模型:".$row['typename'].""); $win->AddHidden("cid", $id); $win->AddHidden("id", $id); $win->AddHidden("dopost", 'copysave'); @@ -99,7 +99,7 @@ if ($dopost == "show") { $wecome_info = "文档模型管理 - 导出文档模型规则"; $win = new OxWindow(); $win->Init(); - $win->AddTitle("导出{$row['typename']}文档模型规则"); + $win->AddTitle("导出{$row['typename']}文档模型规则"); $winform = $win->GetWindow("hand", ""); $win->Display(); exit(); @@ -156,7 +156,7 @@ if ($dopost == "show") { $row = $dsql->GetOne("SELECT * FROM `#@__channeltype` WHERE nid='{$fields['nid']}' "); if (is_array($row)) { GotoStaMsg(" - 已经存在相同的{$fields['nid']}模型 + 已经存在相同的{$fields['nid']}模型 @@ -277,7 +277,7 @@ if ($dopost == "show") { } $trueTable = str_replace("#@__", $cfg_dbprefix, $addtable); if (!$dsql->IsTable($trueTable)) { - ShowMsg("系统找不到您所指定的$trueTable表", "-1"); + ShowMsg("系统找不到您所指定的$trueTable表", "-1"); exit(); } $dsql->ExecuteNoneQuery($query); @@ -290,7 +290,7 @@ if ($dopost == "show") { $wecome_info = "文档模型管理 - 模型应用模板"; $win = new OxWindow(); $win->Init("", "js/blank.js", ""); - $win->AddTitle("栏目".$row['typename']."默认模板文件说明"); + $win->AddTitle("栏目".$row['typename']."默认模板文件说明"); $defaulttemplate = $cfg_templets_dir.'/'.$cfg_df_style; $msg = " @@ -332,7 +332,7 @@ if ($dopost == "show") { $win->AddHidden("job", "yes"); $win->AddHidden("dopost", $dopost); $win->AddHidden("id", $id); - $win->AddTitle("您确定要删除".$row['typename']."模型吗"); + $win->AddTitle("您确定要删除".$row['typename']."模型吗"); $winform = $win->GetWindow("ok"); $win->Display(); exit(); diff --git a/src/admin/mychannel_field_add.php b/src/admin/mychannel_field_add.php index 8b5a2540..7e0ed88f 100644 --- a/src/admin/mychannel_field_add.php +++ b/src/admin/mychannel_field_add.php @@ -24,7 +24,7 @@ if ($action == 'save') { $mxlen = $maxlength; if (preg_match("#^(select|radio|checkbox)$#i", $dtype)) { if (!preg_match("#,#", $dfvalue)) { - ShowMsg("您设定了字段为{$dtype}类型,必须在默认值中指定元素列表,如:'a,b,c' ", "-1"); + ShowMsg("您设定了字段为{$dtype}类型,必须在默认值中指定元素列表,如:'a,b,c' ", "-1"); exit(); } } diff --git a/src/admin/mychannel_field_edit.php b/src/admin/mychannel_field_edit.php index d49acba7..dd999ef2 100644 --- a/src/admin/mychannel_field_edit.php +++ b/src/admin/mychannel_field_edit.php @@ -50,7 +50,7 @@ if ($action == 'save') { $dfvalue = $vdefault; if (preg_match("#^(select|radio|checkbox)#", $dtype)) { if (!preg_match("#,#", $dfvalue)) { - ShowMsg("您设定了字段为{$dtype}类型,必须在默认值中指定元素列表,如:'a,b,c' ", "-1"); + ShowMsg("您设定了字段为{$dtype}类型,必须在默认值中指定元素列表,如:'a,b,c' ", "-1"); exit(); } } diff --git a/src/admin/plus_edit.php b/src/admin/plus_edit.php index 89843740..96859298 100644 --- a/src/admin/plus_edit.php +++ b/src/admin/plus_edit.php @@ -31,7 +31,7 @@ if ($dopost == "show") { $win->AddHidden("job", "yes"); $win->AddHidden("dopost", $dopost); $win->AddHidden("aid", $aid); - $win->AddTitle("您确定要删除".$title."插件吗"); + $win->AddTitle("您确定要删除".$title."插件吗"); $win->AddMsgItem("提示:仅删除插件导航,前往模块管理卸载删除"); $winform = $win->GetWindow("ok"); $win->Display(); diff --git a/src/admin/soft_add.php b/src/admin/soft_add.php index 981805c1..7220d82f 100644 --- a/src/admin/soft_add.php +++ b/src/admin/soft_add.php @@ -63,7 +63,7 @@ if ($dopost != 'save') { exit(); } if (!TestPurview('a_New')) { - CheckCatalog($typeid, "您没有操作栏目{$typeid}权限"); + CheckCatalog($typeid, "您没有操作栏目{$typeid}权限"); } //对保存的文档进行处理 if (empty($writer)) $writer = $cuserLogin->getUserName(); @@ -198,7 +198,7 @@ if ($dopost != 'save') { if (empty($addtable)) { $dsql->ExecuteNoneQuery("DELETE FROM `#@__archives` WHERE id='$arcID'"); $dsql->ExecuteNoneQuery("DELETE FROM `#@__arctiny` WHERE id='$arcID'"); - ShowMsg("没找到模型{$channelid}主表信息,无法完成操作", "javascript:;"); + ShowMsg("没找到模型{$channelid}主表信息,无法完成操作", "javascript:;"); exit(); } $daccess = isset($daccess) && is_numeric($daccess) ? $daccess : 0; diff --git a/src/admin/soft_edit.php b/src/admin/soft_edit.php index 42025a75..7f337fa7 100644 --- a/src/admin/soft_edit.php +++ b/src/admin/soft_edit.php @@ -89,7 +89,7 @@ if ($dopost != 'save') { exit(); } if (!TestPurview('a_Edit')) { - CheckCatalog($typeid, "您没有操作栏目{$typeid}文档权限"); + CheckCatalog($typeid, "您没有操作栏目{$typeid}文档权限"); } //对保存的文档进行处理 $pubdate = GetMkTime($pubdate); diff --git a/src/admin/sys_admin_user_edit.php b/src/admin/sys_admin_user_edit.php index f5d0204b..75f69d03 100644 --- a/src/admin/sys_admin_user_edit.php +++ b/src/admin/sys_admin_user_edit.php @@ -51,12 +51,12 @@ if ($dopost == 'saveedit') { if ($olduserid !== $userid) { $row = $dsql->GetOne("SELECT mid FROM `#@__member` WHERE userid LIKE '$userid' "); if (is_array($row)) { - ShowMsg("您指定的账号{$userid}已存在,请使用别的账号", "-1"); + ShowMsg("您指定的账号{$userid}已存在,请使用别的账号", "-1"); exit(); } $row = $dsql->GetOne("SELECT id FROM `#@__admin` WHERE userid LIKE '$userid' "); if (is_array($row)) { - ShowMsg("您指定的账号{$userid}已存在,请使用别的账号", "-1"); + ShowMsg("您指定的账号{$userid}已存在,请使用别的账号", "-1"); exit(); } $usql = ",userid='$userid'"; @@ -86,8 +86,8 @@ if ($dopost == 'saveedit') { $win->AddHidden("randcode", $randcode); $win->AddHidden("safecode", $safecode); $win->AddHidden("id", $id); - $win->AddMsgItem("您确定要删除id$userid管理员吗"); - $win->AddMsgItem("验证安全码:(安全码:$safecode)"); + $win->AddMsgItem("您确定要删除id$userid管理员吗"); + $win->AddMsgItem("验证安全码:(安全码:$safecode)"); $winform = $win->GetWindow("ok"); $win->Display(); exit(); diff --git a/src/admin/sys_data.php b/src/admin/sys_data.php index 306c82d5..c843d8a8 100644 --- a/src/admin/sys_data.php +++ b/src/admin/sys_data.php @@ -41,9 +41,9 @@ else if ($dopost == "opimize") { } else { $rs = $dsql->ExecuteNoneQuery("OPTIMIZE TABLE `$tablename`"); if ($rs) { - echo "执行优化表$tablename完成
"; + echo "执行优化表$tablename完成"; } else { - echo "执行优化表$tablename失败,原因是:".$dsql->GetError(); + echo "
执行优化表$tablename失败,原因是:".$dsql->GetError(); } } echo ''; @@ -57,9 +57,9 @@ else if ($dopost == "repair") { } else { $rs = $dsql->ExecuteNoneQuery("REPAIR TABLE `$tablename`"); if ($rs) { - echo "修复表$tablename完成
"; + echo "修复表$tablename完成"; } else { - echo "修复表$tablename失败,原因是:".$dsql->GetError(); + echo "
修复表$tablename失败,原因是:".$dsql->GetError(); } } echo ''; diff --git a/src/admin/sys_data_replace.php b/src/admin/sys_data_replace.php index c03cb5a9..13459adf 100644 --- a/src/admin/sys_data_replace.php +++ b/src/admin/sys_data_replace.php @@ -23,7 +23,7 @@ else if ($action == 'getfields') { AjaxHead(); $dsql->GetTableFields($exptable); echo "
"; - echo "

".$exptable."含有的字段:

"; + echo "

表".$exptable."含有的字段:

"; while ($row = $dsql->GetFieldObject()) { echo "name}')\">".$row->name."\r\n"; } @@ -79,7 +79,7 @@ else if ($action == 'apply') { } } $dsql->ExecuteNoneQuery("OPTIMIZE TABLE `$exptable`"); - ShowMsg("共找到$tt条记录,成功替换了$oo条", "javascript:;"); + ShowMsg("共找到$tt条记录,成功替换了$oo条", "javascript:;"); exit(); } } diff --git a/src/admin/sys_info.php b/src/admin/sys_info.php index 2ca3e073..9f3b0ec5 100644 --- a/src/admin/sys_info.php +++ b/src/admin/sys_info.php @@ -17,7 +17,7 @@ function ReWriteConfig() { global $dsql, $configfile; if (!is_writeable($configfile)) { - echo "配置文件{$configfile}不支持写入,无法修改系统配置参数"; + echo "配置文件{$configfile}不支持写入,无法修改系统配置参数"; exit(); } $fp = fopen($configfile, 'w'); @@ -86,7 +86,7 @@ else if ($dopost == 'add') { exit(); } if (!is_writeable($configfile)) { - ShowMsg("成功保存变量,但由于$configfile无法写入,因此不能更新配置文件", "sys_info.php?gp=$vargroup"); + ShowMsg("成功保存变量,但由于$configfile无法写入,因此不能更新配置文件", "sys_info.php?gp=$vargroup"); exit(); } else { ReWriteConfig(); @@ -115,8 +115,8 @@ EOT; $dsql->Execute(); while ($row = $dsql->GetArray()) { $bgcolor = ($i++ % 2 == 0) ? "#f5f5f5" : "#ffffff"; - $row['info'] = preg_replace("#{$keywords}#", ''.$keywords.'', $row['info']); - $row['varname'] = preg_replace("#{$keywords}#", ''.$keywords.'', $row['varname']); + $row['info'] = preg_replace("#{$keywords}#", ''.$keywords.'', $row['info']); + $row['varname'] = preg_replace("#{$keywords}#", ''.$keywords.'', $row['varname']); ?> : diff --git a/src/admin/sys_info_mark.php b/src/admin/sys_info_mark.php index 1165a3ed..bab93210 100644 --- a/src/admin/sys_info_mark.php +++ b/src/admin/sys_info_mark.php @@ -58,7 +58,7 @@ if ($action == "save") { } $configstr .= "\$photo_markimg = '{$photo_markimg}';\r\n"; $configstr = "<"."?php\r\n".$configstr."?".">\r\n"; - $fp = fopen($ImageWaterConfigFile, "w") or die("写入文件$ImageWaterConfigFile失败,请检查权限"); + $fp = fopen($ImageWaterConfigFile, "w") or die("写入文件$ImageWaterConfigFile失败,请检查权限"); fwrite($fp, $configstr); fclose($fp); echo "\r\n"; diff --git a/src/admin/sys_sql_query.php b/src/admin/sys_sql_query.php index 01f98350..97e4ae13 100644 --- a/src/admin/sys_sql_query.php +++ b/src/admin/sys_sql_query.php @@ -35,8 +35,8 @@ else if ($dopost == "opimize") { echo "没有指定表名"; } else { $rs = $dsql->ExecuteNoneQuery("OPTIMIZE TABLE `$tablename`"); - if ($rs) echo "执行优化表$tablename完成
"; - else echo "执行优化表$tablename失败,原因是:".$dsql->GetError(); + if ($rs) echo "执行优化表$tablename完成"; + else echo "
执行优化表$tablename失败,原因是:".$dsql->GetError(); } exit(); } @@ -48,9 +48,9 @@ else if ($dopost == "opimizeAll") { while ($row = $dsql->GetArray('t', MYSQL_BOTH)) { $rs = $dsql->ExecuteNoneQuery("OPTIMIZE TABLE `{$row[0]}`"); if ($rs) { - echo "优化表{$row[0]}完成
"; + echo "优化表{$row[0]}完成"; } else { - echo "优化表{$row[0]}失败,原因是: ".$dsql->GetError()."
"; + echo "
优化表{$row[0]}失败,原因是: ".$dsql->GetError(); } } exit(); @@ -62,8 +62,8 @@ else if ($dopost == "repair") { echo "没有指定表名"; } else { $rs = $dsql->ExecuteNoneQuery("REPAIR TABLE `$tablename`"); - if ($rs) echo "修复表$tablename完成
"; - else echo "修复表$tablename失败,原因是:".$dsql->GetError(); + if ($rs) echo "修复表$tablename完成"; + else echo "
修复表$tablename失败,原因是:".$dsql->GetError(); } exit(); } @@ -75,9 +75,9 @@ else if ($dopost == "repairAll") { while ($row = $dsql->GetArray('t', MYSQL_BOTH)) { $rs = $dsql->ExecuteNoneQuery("REPAIR TABLE `{$row[0]}`"); if ($rs) { - echo "修复表{$row[0]}完成
"; + echo "修复表{$row[0]}完成"; } else { - echo "修复表{$row[0]}失败,原因是: ".$dsql->GetError()."

"; + echo "
修复表{$row[0]}失败,原因是: ".$dsql->GetError(); } } exit(); @@ -96,9 +96,9 @@ else if ($dopost == "query") { $dsql->SetQuery($sqlquery); $dsql->Execute(); if ($dsql->GetTotalRow() <= 0) { - echo "运行SQL:{$sqlquery},无返回记录
"; + echo "运行SQL:{$sqlquery}无返回记录
"; } else { - echo "运行SQL:{$sqlquery},共有".$dsql->GetTotalRow()."条记录,最大返回100条
"; + echo "运行SQL:{$sqlquery}共有".$dsql->GetTotalRow()."条记录,最大返回100条"; } $j = 0; while ($row = $dsql->GetArray()) { @@ -106,11 +106,11 @@ else if ($dopost == "query") { if ($j > 100) { break; } - echo "
"; - echo "记录:$j"; - echo "
"; + echo "
"; + echo "记录:$j"; + echo "
"; foreach ($row as $k => $v) { - echo "{$k}:{$v}
\r\n"; + echo "{$k}:{$v}
\r\n"; } } exit(); @@ -131,15 +131,15 @@ else if ($dopost == "query") { if ($errCode == "") { $i++; } else { - $nerrCode .= "执行$q出错,错误提示:".$errCode."
"; + $nerrCode .= "执行$q出错,错误提示:".$errCode.""; } } - echo "成功执行{$i}个SQL语句
"; + echo "成功执行{$i}个SQL语句"; echo $nerrCode; } else { $dsql->ExecuteNoneQuery($sqlquery); $nerrCode = trim($dsql->GetError()); - echo "成功执行1个SQL语句
"; + echo "成功执行1个SQL语句"; echo $nerrCode; } exit(); diff --git a/src/admin/tag_test_action.php b/src/admin/tag_test_action.php index 82474093..5ac3e88d 100644 --- a/src/admin/tag_test_action.php +++ b/src/admin/tag_test_action.php @@ -26,7 +26,7 @@ if ($typeid > 0) $pv = new PartView($typeid); else $pv = new PartView(); $pv->SetTemplet($partcode, "string"); if ($showsource == "" || $showsource == "yes") { - echo "
".dede_htmlspecialchars($partcode)."
"; + echo "
".dede_htmlspecialchars($partcode)."
"; echo "
"; } $pv->Display(); diff --git a/src/admin/templets/album_edit.htm b/src/admin/templets/album_edit.htm index 5b9001ab..0795bfba 100644 --- a/src/admin/templets/album_edit.htm +++ b/src/admin/templets/album_edit.htm @@ -340,7 +340,7 @@ 正常排序"; - if ($subday>0) echo ""; + if ($subday>0) echo ""; ?> diff --git a/src/admin/templets/archives_edit.htm b/src/admin/templets/archives_edit.htm index e81642a2..1cd34393 100644 --- a/src/admin/templets/archives_edit.htm +++ b/src/admin/templets/archives_edit.htm @@ -227,7 +227,7 @@ 正常排序"; - if ($subday>0) echo ""; + if ($subday>0) echo ""; ?> diff --git a/src/admin/templets/article_edit.htm b/src/admin/templets/article_edit.htm index b5bba5de..5a6cd554 100644 --- a/src/admin/templets/article_edit.htm +++ b/src/admin/templets/article_edit.htm @@ -226,7 +226,7 @@ 正常排序"; - if ($subday>0) echo ""; + if ($subday>0) echo ""; ?> diff --git a/src/admin/templets/makehtml_taglist.htm b/src/admin/templets/makehtml_taglist.htm index b1a9a677..2247905e 100644 --- a/src/admin/templets/makehtml_taglist.htm +++ b/src/admin/templets/makehtml_taglist.htm @@ -26,7 +26,10 @@ 0) {$row = $dsql->GetOne("SELECT tag FROM `#@__tagindex` WHERE id = '$tagid' ");?> 输入标签: - 重新选择 + + + 重新选择 + diff --git a/src/admin/templets/member_toadmin.htm b/src/admin/templets/member_toadmin.htm index e3ea60f1..25467748 100644 --- a/src/admin/templets/member_toadmin.htm +++ b/src/admin/templets/member_toadmin.htm @@ -71,7 +71,8 @@ 验证安全码: - (安全码:) + + (安全码: diff --git a/src/admin/templets/module_edit.htm b/src/admin/templets/module_edit.htm index 2ddc5519..3ff8259b 100644 --- a/src/admin/templets/module_edit.htm +++ b/src/admin/templets/module_edit.htm @@ -23,7 +23,10 @@ 开发者id: - 如何获取开发者id + + + 如何获取开发者id + 语言编码: diff --git a/src/admin/templets/module_main.htm b/src/admin/templets/module_main.htm index 6a29d40c..738691bc 100644 --- a/src/admin/templets/module_main.htm +++ b/src/admin/templets/module_main.htm @@ -58,7 +58,7 @@ ".$v['lang'].""; + if ($cfg_soft_lang != $v['lang']) echo "".$v['lang'].""; else echo $v['lang']; ?> diff --git a/src/admin/templets/module_make.htm b/src/admin/templets/module_make.htm index 48c49dc7..2732544c 100644 --- a/src/admin/templets/module_make.htm +++ b/src/admin/templets/module_make.htm @@ -40,7 +40,10 @@ 开发者id: - 如何获取开发者id + + + 如何获取开发者id + 发布时间: diff --git a/src/admin/templets/soft_edit.htm b/src/admin/templets/soft_edit.htm index 6d03af17..d41abc0e 100644 --- a/src/admin/templets/soft_edit.htm +++ b/src/admin/templets/soft_edit.htm @@ -382,7 +382,7 @@ 正常排序"; - if ($subday>0) echo ""; + if ($subday>0) echo ""; ?> diff --git a/src/admin/templets/spec_edit.htm b/src/admin/templets/spec_edit.htm index aa389c07..b771547f 100644 --- a/src/admin/templets/spec_edit.htm +++ b/src/admin/templets/spec_edit.htm @@ -313,7 +313,7 @@ 正常排序"; - if ($subday>0) echo ""; + if ($subday>0) echo ""; ?> diff --git a/src/admin/templets/sys_admin_user_add.htm b/src/admin/templets/sys_admin_user_add.htm index 6fa5d936..299048d1 100644 --- a/src/admin/templets/sys_admin_user_add.htm +++ b/src/admin/templets/sys_admin_user_add.htm @@ -78,7 +78,8 @@ 验证安全码: - (安全码:) + + (安全码: diff --git a/src/admin/templets/sys_admin_user_edit.htm b/src/admin/templets/sys_admin_user_edit.htm index 79b566f7..adb120fb 100644 --- a/src/admin/templets/sys_admin_user_edit.htm +++ b/src/admin/templets/sys_admin_user_edit.htm @@ -74,7 +74,8 @@ 验证安全码: - (安全码:) + + (安全码: diff --git a/src/admin/templets/sys_data_replace.htm b/src/admin/templets/sys_data_replace.htm index f706b52a..5e03fb7f 100644 --- a/src/admin/templets/sys_data_replace.htm +++ b/src/admin/templets/sys_data_replace.htm @@ -34,7 +34,7 @@ $dsql->SetQuery("Show Tables"); $dsql->Execute('t'); if ($dsql->GetError()!=''){ - echo "找不到您所指定的数据库 $dbname
"; + echo "找不到您所指定的数据库$dbname"; echo $qbutton; } echo " - (系统已占用的级别值:SetQuery("Select `rank` From `#@__admintype`");$dsql->Execute();while($row = $dsql->GetObject()) echo ''.$row->rank.'';?>,级别值必须小于10,超过或等于10所有权限设置无效) + (系统已占用的级别值:SetQuery("Select `rank` From `#@__admintype`");$dsql->Execute();while($row = $dsql->GetObject()) echo ''.$row->rank.'';?>,级别值必须小于10,超过或等于10所有权限设置无效) SaveToHtml(); $i++; } - ShowMsg("成功更新$i个页面", '-1'); + ShowMsg("成功更新$i个页面", '-1'); exit(); } else if ($dopost == "mksel") { if (empty($ids)) { @@ -84,7 +84,7 @@ if ($dopost == "saveedit") { $sg->SaveToHtml(); $i++; } - ShowMsg("成功更新$i个页面", '-1'); + ShowMsg("成功更新$i个页面", '-1'); exit(); } } else if ($dopost == "view") { diff --git a/src/apps/download.php b/src/apps/download.php index fcee1dcb..25e84d57 100755 --- a/src/apps/download.php +++ b/src/apps/download.php @@ -165,7 +165,7 @@ else if ($open == 2) { } $memberTypes[0] = "游客或没权限会员"; $msgtitle = "您没有权限下载软件:{$arctitle}"; - $moremsg = "该软件需要等级".$memberTypes[$needRank]."才能下载,您目前等级是".$memberTypes[$cfg_ml->M_Rank]."升级会员"; + $moremsg = "该软件需要等级".$memberTypes[$needRank]."才能下载,您目前等级是".$memberTypes[$cfg_ml->M_Rank]." 升级会员"; include_once(DEDETEMPLATE.'/apps/view_msg.htm'); exit(); } @@ -178,7 +178,7 @@ else if ($open == 2) { //没有足够的金币 if ($needMoney > $cfg_ml->M_Money || $cfg_ml->M_Money == '') { $msgtitle = "您没有权限下载软件:{$arctitle}"; - $moremsg = "该软件需要消费".$needMoney."金币才能下载,您目前金币".$cfg_ml->M_Money."充值金币"; + $moremsg = "该软件需要消费".$needMoney."金币才能下载,您目前金币".$cfg_ml->M_Money." 充值金币"; include_once(DEDETEMPLATE.'/apps/view_msg.htm'); exit(0); } diff --git a/src/apps/list.php b/src/apps/list.php index 7fcf05b2..b0cd122e 100755 --- a/src/apps/list.php +++ b/src/apps/list.php @@ -48,7 +48,7 @@ if (isset($lv->Fields['corank']) && $lv->Fields['corank'] > 0) { } $memberTypes[0] = "游客或没权限会员"; $msgtitle = "您没有权限浏览栏目:{$lv->Fields['typename']}"; - $moremsg = "该栏目需要等级".$memberTypes[$lv->Fields['corank']]."才能浏览,您目前等级是".$memberTypes[$cfg_ml->M_Rank]."升级会员"; + $moremsg = "该栏目需要等级".$memberTypes[$lv->Fields['corank']]."才能浏览,您目前等级是".$memberTypes[$cfg_ml->M_Rank]." 升级会员"; include_once(DEDETEMPLATE.'/apps/view_msg_catalog.htm'); exit(); } diff --git a/src/apps/search.php b/src/apps/search.php index 8291595a..92d11ffe 100755 --- a/src/apps/search.php +++ b/src/apps/search.php @@ -70,7 +70,7 @@ $now = time(); $row = $dsql->GetOne("SELECT * FROM `#@__search_limits` WHERE ip='{$ip}'"); if (is_array($row)) { if (($now - $row['searchtime']) < $cfg_search_time) { - ShowMsg("搜索间隔为$cfg_search_time秒,请稍后重试", "-1"); + ShowMsg("搜索间隔为$cfg_search_time秒,请稍后重试", "-1"); exit; } $dsql->ExecuteNoneQuery("UPDATE `#@__search_limits` SET `searchtime`='{$now}' WHERE `ip`='{$ip}';"); diff --git a/src/apps/view.php b/src/apps/view.php index c7899039..f1165c5b 100755 --- a/src/apps/view.php +++ b/src/apps/view.php @@ -43,7 +43,7 @@ if ($needMoney > 0 || $needRank > 1) { } $memberTypes[0] = "游客或没权限会员"; $msgtitle = "您没有权限浏览文档:{$arctitle}"; - $moremsg = "该文档需要消费".$memberTypes[$needRank]."才能浏览,您目前等级是".$memberTypes[$cfg_ml->M_Rank].""; + $moremsg = "该文档需要消费".$memberTypes[$needRank]."才能浏览,您目前等级是".$memberTypes[$cfg_ml->M_Rank].""; include_once(DEDETEMPLATE.'/apps/view_msg.htm'); exit(); } @@ -54,8 +54,8 @@ if ($needMoney > 0 || $needRank > 1) { //未购买过此文档 if (!is_array($row)) { if ($cfg_ml->M_Money == '' || $needMoney > $cfg_ml->M_Money) { - $msgtitle = "您没有权限浏览文档:{$arctitle} "; - $moremsg = "该文档需要消费".$needMoney."金币才能浏览,您目前金币".$cfg_ml->M_Money."充值金币"; + $msgtitle = "您没有权限浏览文档:{$arctitle}"; + $moremsg = "该文档需要消费".$needMoney."金币才能浏览,您目前金币".$cfg_ml->M_Money." 充值金币"; include_once(DEDETEMPLATE.'/apps/view_msg.htm'); $arc->Close(); exit(); @@ -76,7 +76,7 @@ if ($needMoney > 0 || $needRank > 1) { } } $msgtitle = "扣金币购买阅读"; - $moremsg = "该文档需要消费".$needMoney."金币才能浏览,您目前金币".$cfg_ml->M_Money."确认阅读"; + $moremsg = "该文档需要消费".$needMoney."金币才能浏览,您目前金币".$cfg_ml->M_Money." 确认阅读"; include_once($cfg_basedir.$cfg_templets_dir."/apps/view_msg.htm"); $arc->Close(); exit(); diff --git a/src/install/install.html b/src/install/install.html index 66737878..f5220152 100644 --- a/src/install/install.html +++ b/src/install/install.html @@ -30,7 +30,7 @@ 0) {foreach($arrMsg as $msg){?>
-
请先阅读《站点授权协议》
+
请先阅读《站点授权协议》

安装DedeV

diff --git a/src/install/install.inc.php b/src/install/install.inc.php index f3135368..780f63be 100755 --- a/src/install/install.inc.php +++ b/src/install/install.inc.php @@ -60,7 +60,7 @@ function ReWriteConfigAuto() global $dsql; $configfile = DEDEDATA.'/config.cache.inc.php'; if (!is_writeable($configfile)) { - echo "配置文件{$configfile}不支持写入,无法修改系统配置参数"; + echo "配置文件{$configfile}不支持写入,无法修改系统配置参数"; //ClearAllLink(); exit(); } diff --git a/src/system/database/dedesqli.class.php b/src/system/database/dedesqli.class.php index 3694f0cf..f8f1b2fc 100755 --- a/src/system/database/dedesqli.class.php +++ b/src/system/database/dedesqli.class.php @@ -306,7 +306,7 @@ class DedeSqli } } if ($this->result[$id] === FALSE) { - $this->DisplayError(mysqli_error($this->linkID)."
Error sql:".$this->queryString.""); + $this->DisplayError(mysqli_error($this->linkID)."
Error sql:".$this->queryString.""); } } function Query($id = "me", $sql = '') diff --git a/src/system/database/dedesqlite.class.php b/src/system/database/dedesqlite.class.php index 95ff9c0e..42bd52e6 100755 --- a/src/system/database/dedesqlite.class.php +++ b/src/system/database/dedesqlite.class.php @@ -267,7 +267,7 @@ class DedeSqlite //echo $this->queryString."--{$queryTime}
\r\n"; } if ($this->result[$id] === FALSE) { - $this->DisplayError($this->linkID->lastErrorMsg()."
Error sql:".$this->queryString.""); + $this->DisplayError($this->linkID->lastErrorMsg()."
Error sql:".$this->queryString.""); } } function Query($id = "me", $sql = '') diff --git a/src/system/dedemodule.class.php b/src/system/dedemodule.class.php index 34062677..2eafe809 100755 --- a/src/system/dedemodule.class.php +++ b/src/system/dedemodule.class.php @@ -148,7 +148,7 @@ class DedeModule $minfos['filesize'] = filesize($filename) / 1024; $minfos['filesize'] = number_format($minfos['filesize'], 2, '.', '').' Kb'; } - $fp = fopen($filename, 'r') or die("文件{$filename}不存在或不可读"); + $fp = fopen($filename, 'r') or die("文件{$filename}不存在或不可读"); $n = 0; while (!feof($fp)) { $n++; @@ -204,7 +204,7 @@ class DedeModule if ($ftype == 'file') $filename = $hash; else $filename = $this->modulesPath.'/'.$this->GetHashFile($hash); $filexml = ''; - $fp = fopen($filename, 'r') or die("文件{$filename}不存在或不可读"); + $fp = fopen($filename, 'r') or die("文件{$filename}不存在或不可读"); $start = 0; while (!feof($fp)) { $line = fgets($fp, 1024); @@ -236,7 +236,7 @@ class DedeModule $this->GetModuleInfo($hashcode, $ntype); $start = FALSE; $filename = $this->modulesPath.'/'.$this->GetHashFile($hashcode); - $fp = fopen($filename, 'r') or die("文件{$filename}不存在或不可读"); + $fp = fopen($filename, 'r') or die("文件{$filename}不存在或不可读"); $okdata = ''; while (!feof($fp)) { $line = fgets($fp, 1024); @@ -268,7 +268,7 @@ class DedeModule $filename = $hashcode."-{$ntype}.php"; $fname = $this->modulesPath.'/'.$filename; $filect = $this->GetSystemFile($hashcode, $ntype); - $fp = fopen($fname, 'w') or die("生成{$ntype}文件失败"); + $fp = fopen($fname, 'w') or die("生成{$ntype}文件失败"); fwrite($fp, $filect); fclose($fp); return $filename; @@ -309,7 +309,7 @@ class DedeModule */ function GetEncodeFile($filename, $isremove = FALSE) { - $fp = fopen($filename, 'r') or die("文件{$filename}不存在或不可读"); + $fp = fopen($filename, 'r') or die("文件{$filename}不存在或不可读"); $str = @fread($fp, filesize($filename)); fclose($fp); if ($isremove) @unlink($filename); @@ -328,7 +328,7 @@ class DedeModule $dap = new DedeAttParse(); $filelists = array(); $modulefile = $this->modulesPath.'/'.$this->GetHashFile($hashcode); - $fp = fopen($modulefile, 'r') or die("文件{$modulefile}不存在或不可读"); + $fp = fopen($modulefile, 'r') or die("文件{$modulefile}不存在或不可读"); $i = 0; while (!feof($fp)) { $line = fgets($fp, 1024); @@ -357,7 +357,7 @@ class DedeModule else { $dap = new DedeAttParse(); $modulefile = $this->modulesPath.'/'.$this->GetHashFile($hashcode); - $fp = fopen($modulefile, 'r') or die("文件{$modulefile}不存在或不可读"); + $fp = fopen($modulefile, 'r') or die("文件{$modulefile}不存在或不可读"); $i = 0; $dirs = array(); while (!feof($fp)) { @@ -400,7 +400,7 @@ class DedeModule global $AdminBaseDir; $dap = new DedeAttParse(); $modulefile = $this->modulesPath.'/'.$this->GetHashFile($hashcode); - $fp = fopen($modulefile, 'r') or die("文件{$modulefile}不存在或不可读"); + $fp = fopen($modulefile, 'r') or die("文件{$modulefile}不存在或不可读"); $i = 0; while (!feof($fp)) { $line = fgets($fp, 1024); @@ -427,7 +427,7 @@ class DedeModule } } if (!empty($filename)) { - $fw = fopen($filename, 'w') or die("写入文件{$filename}失败,请检查相关目录的权限"); + $fw = fopen($filename, 'w') or die("写入文件{$filename}失败,请检查相关目录的权限"); $ct = ''; while (!feof($fp)) { $l = fgets($fp, 1024); @@ -526,7 +526,7 @@ class DedeModule else if (preg_match("/Thumbs\.db/i", $f)) return; else $this->fileListNames[$f] = 1; if (!file_exists($filename)) { - ShowMsg("文件或文件夹{$filename}不存在,无法进行编译", "-1"); + ShowMsg("文件或文件夹{$filename}不存在,无法进行编译", "-1"); exit(); } if (is_dir($filename)) { diff --git a/src/system/helpers/upload.helper.php b/src/system/helpers/upload.helper.php index 5bf14d89..4050eb1e 100755 --- a/src/system/helpers/upload.helper.php +++ b/src/system/helpers/upload.helper.php @@ -154,7 +154,7 @@ if (!function_exists('MemberUploads')) { ShowMsg("仅支持媒体文件及应用程序上传", -1); exit; } - move_uploaded_file($GLOBALS[$upname], $cfg_basedir.$filename) or die("上传文件到{$filename}失败"); + move_uploaded_file($GLOBALS[$upname], $cfg_basedir.$filename) or die("上传文件到{$filename}失败"); @unlink($GLOBALS[$upname]); if (@filesize($cfg_basedir.$filename) > $GLOBALS['cfg_mb_upload_size'] * 1024) { @unlink($cfg_basedir.$filename); diff --git a/src/system/inc/inc_fun_funAdmin.php b/src/system/inc/inc_fun_funAdmin.php index 58e7222b..85aa3f17 100755 --- a/src/system/inc/inc_fun_funAdmin.php +++ b/src/system/inc/inc_fun_funAdmin.php @@ -104,7 +104,7 @@ function SpCreateDir($spath) $isok = ChmodAll($truepath, $cfg_dir_purview); } if (!$isok) { - echo "创建或修改目录".$truepath."失败"; + echo "创建或修改目录".$truepath."失败"; return false; } } diff --git a/src/system/memberlogin.class.php b/src/system/memberlogin.class.php index 8e178bbd..ee31be8b 100755 --- a/src/system/memberlogin.class.php +++ b/src/system/memberlogin.class.php @@ -539,11 +539,11 @@ class MemberLogin $sta .= "您目前等级是:".$row['membername']; $rs = $this->dsql->GetOne("SELECT id FROM `#@__admin` WHERE userid='".$this->M_LoginID."'"); if (!is_array($rs)) { - if ($this->M_Rank > 10 && $this->M_HasDay > 0) $sta .= ",剩余".$this->M_HasDay."天"; + if ($this->M_Rank > 10 && $this->M_HasDay > 0) $sta .= ",剩余".$this->M_HasDay."天"; elseif ($this->M_Rank > 10) $sta .= ",会员已到期"; } } - $sta .= ",积分{$this->M_Scores}分,金币{$this->M_Money}个,余额{$this->M_UserMoney}元"; + $sta .= ",积分{$this->M_Scores}分,金币{$this->M_Money}个,余额{$this->M_UserMoney}元"; return $sta; } //获取能够发布文档的栏目 diff --git a/src/user/album_add.php b/src/user/album_add.php index 4c7ff05e..42c3ea85 100755 --- a/src/user/album_add.php +++ b/src/user/album_add.php @@ -40,11 +40,11 @@ if (empty($dopost)) { //检查会员等级和类型限制 if ($cInfos['sendrank'] > $cfg_ml->M_Rank) { $row = $dsql->GetOne("SELECT membername FROM `#@__arcrank` WHERE `rank`='".$cInfos['sendrank']."' "); - ShowMsg("需要".$row['membername']."才能在这个栏目发布文档", "-1", "0", 5000); + ShowMsg("需要".$row['membername']."才能在这个栏目发布文档", "-1", "0", 5000); exit(); } if ($cInfos['usertype'] != '' && $cInfos['usertype'] != $cfg_ml->M_MbType) { - ShowMsg("需要".$cInfos['usertype']."帐号才能在这个栏目发布文档", "-1", "0", 5000); + ShowMsg("需要".$cInfos['usertype']."帐号才能在这个栏目发布文档", "-1", "0", 5000); exit(); } include(DEDEMEMBER."/templets/album_add.htm"); @@ -126,7 +126,7 @@ if (empty($dopost)) { if (empty($addtable)) { $dsql->ExecuteNoneQuery("DELETE FROM `#@__archives` WHERE id='$arcID'"); $dsql->ExecuteNoneQuery("DELETE FROM `#@__arctiny` WHERE id='$arcID'"); - ShowMsg("没找到模型{$channelid}主表信息,无法完成操作", "javascript:;"); + ShowMsg("没找到模型{$channelid}主表信息,无法完成操作", "javascript:;"); exit(); } else { $body = HtmlReplace($body, -1); diff --git a/src/user/archives_add.php b/src/user/archives_add.php index f1b730f2..e86a5d5b 100755 --- a/src/user/archives_add.php +++ b/src/user/archives_add.php @@ -32,11 +32,11 @@ if (empty($dopost)) { //检查会员等级和类型限制 if ($cInfos['sendrank'] > $cfg_ml->M_Rank) { $row = $dsql->GetOne("Select membername From `#@__arcrank` where `rank`='".$cInfos['sendrank']."' "); - ShowMsg("需要".$row['membername']."才能在这个栏目发布文档", "-1", "0", 5000); + ShowMsg("需要".$row['membername']."才能在这个栏目发布文档", "-1", "0", 5000); exit(); } if ($cInfos['usertype'] != '' && $cInfos['usertype'] != $cfg_ml->M_MbType) { - ShowMsg("需要".$cInfos['usertype']."帐号才能在这个栏目发布文档", "-1", "0", 5000); + ShowMsg("需要".$cInfos['usertype']."帐号才能在这个栏目发布文档", "-1", "0", 5000); exit(); } include(DEDEMEMBER."/templets/archives_add.htm"); @@ -98,7 +98,7 @@ if (empty($dopost)) { if (empty($addtable)) { $dsql->ExecuteNoneQuery("DELETE FROM `#@__archives` WHERE id='$arcID'"); $dsql->ExecuteNoneQuery("DELETE FROM `#@__arctiny` WHERE id='$arcID'"); - ShowMsg("没找到模型{$channelid}主表信息,无法完成操作", "javascript:;"); + ShowMsg("没找到模型{$channelid}主表信息,无法完成操作", "javascript:;"); exit(); } else { $inquery = "INSERT INTO `{$addtable}` (aid,typeid,userip,redirecturl,templet{$inadd_f}) VALUES ('$arcID','$typeid','$userip','',''{$inadd_v})"; diff --git a/src/user/archives_sg_add.php b/src/user/archives_sg_add.php index f778c7d2..27d6a55e 100755 --- a/src/user/archives_sg_add.php +++ b/src/user/archives_sg_add.php @@ -32,11 +32,11 @@ if (empty($dopost)) { //检查会员等级和类型限制 if ($cInfos['sendrank'] > $cfg_ml->M_Rank) { $row = $dsql->GetOne("SELECT membername FROM `#@__arcrank` WHERE `rank`='".$cInfos['sendrank']."' "); - ShowMsg("需要".$row['membername']."才能在这个栏目发布文档", "-1", "0", 5000); + ShowMsg("需要".$row['membername']."才能在这个栏目发布文档", "-1", "0", 5000); exit(); } if ($cInfos['usertype'] != '' && $cInfos['usertype'] != $cfg_ml->M_MbType) { - ShowMsg("需要".$cInfos['usertype']."帐号才能在这个栏目发布文档", "-1", "0", 5000); + ShowMsg("需要".$cInfos['usertype']."帐号才能在这个栏目发布文档", "-1", "0", 5000); exit(); } include(DEDEMEMBER."/templets/archives_sg_add.htm"); @@ -72,11 +72,11 @@ if (empty($dopost)) { //检查栏目设定的投稿许可权限 if ($cInfos['sendrank'] > $cfg_ml->M_Rank) { $row = $dsql->GetOne("Select membername From #@__arcrank where `rank`='".$cInfos['sendrank']."' "); - ShowMsg("需要".$row['membername']."才能在这个栏目发布文档", "-1", "0", 5000); + ShowMsg("需要".$row['membername']."才能在这个栏目发布文档", "-1", "0", 5000); exit(); } if ($cInfos['usertype'] != '' && $cInfos['usertype'] != $cfg_ml->M_MbType) { - ShowMsg("需要".$cInfos['usertype']."才能在这个栏目发布文档", "-1", "0", 5000); + ShowMsg("需要".$cInfos['usertype']."才能在这个栏目发布文档", "-1", "0", 5000); exit(); } //文档的默认状态 @@ -133,7 +133,7 @@ if (empty($dopost)) { $addtable = trim($cInfos['addtable']); if (empty($addtable)) { $dsql->ExecuteNoneQuery("DELETE FROM `#@__arctiny` WHERE id='$arcID'"); - ShowMsg("没找到模型{$channelid}主表信息,无法完成操作", "javascript:;"); + ShowMsg("没找到模型{$channelid}主表信息,无法完成操作", "javascript:;"); exit(); } else { $litpic = isset($litpic)? HtmlReplace($litpic, 1) : ''; diff --git a/src/user/article_add.php b/src/user/article_add.php index ab41d09d..9936b0ec 100755 --- a/src/user/article_add.php +++ b/src/user/article_add.php @@ -28,11 +28,11 @@ if (empty($dopost)) { //检查会员等级和类型限制 if ($cInfos['sendrank'] > $cfg_ml->M_Rank) { $row = $dsql->GetOne("SELECT membername FROM `#@__arcrank` WHERE `rank`='".$cInfos['sendrank']."' "); - ShowMsg("需要".$row['membername']."才能在这个栏目发布文档", "-1", "0", 5000); + ShowMsg("需要".$row['membername']."才能在这个栏目发布文档", "-1", "0", 5000); exit(); } if ($cInfos['usertype'] != '' && $cInfos['usertype'] != $cfg_ml->M_MbType) { - ShowMsg("需要".$cInfos['usertype']."帐号才能在这个栏目发布文档", "-1", "0", 5000); + ShowMsg("需要".$cInfos['usertype']."帐号才能在这个栏目发布文档", "-1", "0", 5000); exit(); } include(DEDEMEMBER."/templets/article_add.htm"); @@ -89,7 +89,7 @@ if (empty($dopost)) { if (empty($addtable)) { $dsql->ExecuteNoneQuery("DELETE FROM `#@__archives` WHERE id='$arcID'"); $dsql->ExecuteNoneQuery("DELETE FROM `#@__arctiny` WHERE id='$arcID'"); - ShowMsg("没找到模型{$channelid}主表信息,无法完成操作", "javascript:;"); + ShowMsg("没找到模型{$channelid}主表信息,无法完成操作", "javascript:;"); exit(); } else { $inquery = "INSERT INTO `{$addtable}` (aid,typeid,userip,redirecturl,templet,body{$inadd_f}) VALUES ('$arcID','$typeid','$userip','','','$body'{$inadd_v})"; diff --git a/src/user/config.php b/src/user/config.php index ce0082d9..962ba0b2 100755 --- a/src/user/config.php +++ b/src/user/config.php @@ -198,10 +198,10 @@ function CheckRank($rank = 0, $money = 0) $myname = "注册会员"; } } - ShowMsg("需要$needname才能浏览本页面,您目前等级是$myname", "-1", 0, 5000); + ShowMsg("需要$needname才能浏览本页面,您目前等级是$myname", "-1", 0, 5000); exit(); } else if ($cfg_ml->M_Money < $money) { - ShowMsg("需要$money金币才能浏览本页面,您目前金币".$cfg_ml->M_Money."个", "-1", 0, 5000); + ShowMsg("需要$money金币才能浏览本页面,您目前金币".$cfg_ml->M_Money."个", "-1", 0, 5000); exit(); } } diff --git a/src/user/inc/archives_check.php b/src/user/inc/archives_check.php index 16e8cfa1..643660b4 100755 --- a/src/user/inc/archives_check.php +++ b/src/user/inc/archives_check.php @@ -34,11 +34,11 @@ if ($cInfos['issend'] != 1 || $cInfos['ispart'] != 0 || $cInfos['channeltype'] //检查栏目设定的投稿许可权限 if ($cInfos['sendrank'] > $cfg_ml->M_Rank) { $row = $dsql->GetOne("SELECT membername FROM `#@__arcrank` WHERE `rank`='".$cInfos['sendrank']."' "); - ShowMsg("需要".$row['membername']."才能在这个栏目发布文档", "-1", "0", 5000); + ShowMsg("需要".$row['membername']."才能在这个栏目发布文档", "-1", "0", 5000); exit(); } if ($cInfos['usertype'] != '' && $cInfos['usertype'] != $cfg_ml->M_MbType) { - ShowMsg("需要".$cInfos['usertype']."才能在这个栏目发布文档", "-1", "0", 5000); + ShowMsg("需要".$cInfos['usertype']."才能在这个栏目发布文档", "-1", "0", 5000); exit(); } //文档的默认状态 diff --git a/src/user/index_do.php b/src/user/index_do.php index 52ecd176..3c0d7b69 100755 --- a/src/user/index_do.php +++ b/src/user/index_do.php @@ -154,7 +154,7 @@ if ($fmdo == 'sendMail') { } if (CheckUserID($userid, '', false) != 'ok') { ResetVdValue(); - ShowMsg("您输入的账号{$userid}已禁止", "index.php"); + ShowMsg("您输入的账号{$userid}已禁止", "index.php"); exit(); } if ($pwd == '') { diff --git a/src/user/reg_new.php b/src/user/reg_new.php index bce2af67..fa6c69ee 100755 --- a/src/user/reg_new.php +++ b/src/user/reg_new.php @@ -56,7 +56,7 @@ if ($step == 1) { //检测账号是否存在 $row = $dsql->GetOne("SELECT mid FROM `#@__member` WHERE userid LIKE '$userid' "); if (is_array($row)) { - ShowMsg("您指定的账号{$userid}已存在,请使用别的账号", "-1"); + ShowMsg("您指定的账号{$userid}已存在,请使用别的账号", "-1"); exit(); } //会员的默认金币 diff --git a/src/user/resetpassword.php b/src/user/resetpassword.php index fa7d5025..c5c8acaa 100755 --- a/src/user/resetpassword.php +++ b/src/user/resetpassword.php @@ -33,7 +33,7 @@ if ($dopost == "") { showmsg('请输入正确的邮箱格式', '-1'); exit; } else if (CheckUserID($userid, '', false) != 'ok') { - ShowMsg("您输入的账号{$userid}不合法", "-1"); + ShowMsg("您输入的账号{$userid}不合法", "-1"); exit(); } $member = member($mail, $userid); diff --git a/src/user/soft_add.php b/src/user/soft_add.php index 6fa0dde7..74e3527f 100755 --- a/src/user/soft_add.php +++ b/src/user/soft_add.php @@ -35,11 +35,11 @@ if (empty($dopost)) { //检查会员等级和类型限制 if ($cInfos['sendrank'] > $cfg_ml->M_Rank) { $row = $dsql->GetOne("SELECT membername FROM `#@__arcrank` where `rank`='".$cInfos['sendrank']."' "); - ShowMsg("需要".$row['membername']."才能在这个栏目发布文档", "-1", "0", 5000); + ShowMsg("需要".$row['membername']."才能在这个栏目发布文档", "-1", "0", 5000); exit(); } if ($cInfos['usertype'] != '' && $cInfos['usertype'] != $cfg_ml->M_MbType) { - ShowMsg("需要".$cInfos['usertype']."帐号才能在这个栏目发布文档", "-1", "0", 5000); + ShowMsg("需要".$cInfos['usertype']."帐号才能在这个栏目发布文档", "-1", "0", 5000); exit(); } include(DEDEMEMBER."/templets/soft_add.htm"); @@ -139,7 +139,7 @@ if (empty($dopost)) { if (empty($addtable)) { $dsql->ExecuteNoneQuery("DELETE FROM `#@__archives` WHERE id='$arcID'"); $dsql->ExecuteNoneQuery("DELETE FROM `#@__arctiny` WHERE id='$arcID'"); - ShowMsg("没找到模型{$channelid}主表信息,无法完成操作", "javascript:;"); + ShowMsg("没找到模型{$channelid}主表信息,无法完成操作", "javascript:;"); exit(); } $inQuery = "INSERT INTO `$addtable` (aid,typeid,filetype,language,softtype,accredit,os,softrank,officialUrl,officialDemo,softsize,softlinks,introduce,userip,templet,redirecturl,daccess,needmoney{$inadd_f}) VALUES ('$arcID','$typeid','$filetype','$language','$softtype','$accredit','$os','$softrank','$officialUrl','$officialDemo','$softsize','$urls','$body','$userip','','','0','$needmoney'{$inadd_v});";