diff --git a/src/dede/ad_add.php b/src/dede/ad_add.php index 9299e614..5ef1b645 100755 --- a/src/dede/ad_add.php +++ b/src/dede/ad_add.php @@ -21,7 +21,7 @@ if ($dopost == "save") { $tagname = trim($tagname); $row = $dsql->GetOne("SELECT typeid FROM #@__myad WHERE typeid='$typeid' AND tagname LIKE '$tagname'"); if (is_array($row)) { - ShowMsg("在相同栏目下已经存在同名的标记!", "-1"); + ShowMsg("在相同栏目下已经存在同名的标记", "-1"); exit(); } $starttime = GetMkTime($starttime); @@ -62,7 +62,7 @@ if ($dopost == "save") { VALUES('$clsid','$typeid','$tagname','$adname','$timeset','$starttime','$endtime','$normbody','$expbody'); "; $dsql->ExecuteNoneQuery($query); - ShowMsg("成功增加一个广告!", "ad_main.php"); + ShowMsg("成功增加一个广告", "ad_main.php"); exit(); } $dsql->Execute('dd', 'SELECT * FROM `#@__myadtype` ORDER BY id DESC'); diff --git a/src/dede/ad_edit.php b/src/dede/ad_edit.php index 0dc4a265..53283678 100755 --- a/src/dede/ad_edit.php +++ b/src/dede/ad_edit.php @@ -18,7 +18,7 @@ $ENV_GOBACK_URL = empty($_COOKIE['ENV_GOBACK_URL']) ? "ad_main.php" : $_COOKIE[' if ($dopost == 'delete') { $dsql->ExecuteNoneQuery("DELETE FROM `#@__myad` WHERE aid='$aid' "); - ShowMsg("成功删除一则广告代码!", $ENV_GOBACK_URL); + ShowMsg("成功删除一则广告代码", $ENV_GOBACK_URL); exit(); } else if ($dopost == "gettag") { require_once(DEDEINC.'/oxwindow.class.php'); @@ -32,7 +32,7 @@ if ($dopost == 'delete') { 如果不希望重新生成所有页面,则直接调用JS代码即可。 "; $wintitle = "广告管理-获取广告标签"; - $wecome_info = "广告管理::获取JS"; + $wecome_info = "广告管理::获取JS"; $win = new OxWindow(); $win->Init(); $winform = $win->GetWindow("hand", $info); @@ -63,7 +63,7 @@ if ($dopost == 'delete') { WHERE aid='$aid' "; $dsql->ExecuteNoneQuery($query); - ShowMsg("成功更改一则广告代码!", $ENV_GOBACK_URL); + ShowMsg("成功更改一则广告代码", $ENV_GOBACK_URL); exit(); } diff --git a/src/dede/adtype_main.php b/src/dede/adtype_main.php index 947d46f6..9f954447 100755 --- a/src/dede/adtype_main.php +++ b/src/dede/adtype_main.php @@ -36,7 +36,7 @@ if ($dopost == "save") { $dsql->ExecuteNoneQuery($query); } header("Content-Type: text/html; charset={$cfg_soft_lang}"); - ShowMsg("成功更新广告分类列表!", 'adtype_main.php'); + ShowMsg("成功更新广告分类列表", 'adtype_main.php'); exit; } diff --git a/src/dede/article_coonepage_rule.php b/src/dede/article_coonepage_rule.php index 40de3a77..7911ea96 100755 --- a/src/dede/article_coonepage_rule.php +++ b/src/dede/article_coonepage_rule.php @@ -20,7 +20,7 @@ function _AddNote(){ } if ($action == 'add') { $row = $dsql->GetOne("SELECT * FROM `#@__co_onepage` WHERE url LIKE '$url' "); if (is_array($row)) { - echo "系统已经存在这个网址的条目!"; + echo "系统已经存在这个网址的条目"; } else { $query = " INSERT INTO `#@__co_onepage`(`url`,`title`,`issource`,`lang`,`rule`) Values('$url','$title','$issource','$lang','$rule'); "; $dsql->ExecuteNonequery($query); diff --git a/src/dede/article_keywords_select.php b/src/dede/article_keywords_select.php index 0588d768..fb7dd78b 100755 --- a/src/dede/article_keywords_select.php +++ b/src/dede/article_keywords_select.php @@ -33,6 +33,6 @@ function GetSta($sta) function GetMan($sta) { - if ($sta == 1) return "禁用"; - else return "启用"; + if ($sta == 1) return "禁用"; + else return "启用"; } diff --git a/src/dede/article_template_rand.php b/src/dede/article_template_rand.php index 510e90e9..31f33e7e 100755 --- a/src/dede/article_template_rand.php +++ b/src/dede/article_template_rand.php @@ -33,19 +33,19 @@ else if ($dopost == 'makeold') { set_time_limit(3600); if (!file_exists($m_file)) { AjaxHead(); - echo "配置文件不存在!"; + echo "配置文件不存在"; exit(); } require_once($m_file); if ($cfg_tamplate_rand == 0) { AjaxHead(); - echo "系统没开启允许随机模板的选项!"; + echo "系统没开启允许随机模板的选项"; exit(); } $totalTmp = count($cfg_tamplate_arr) - 1; if ($totalTmp < 1) { AjaxHead(); - echo "随机模板的数量必须为2个或以上!"; + echo "随机模板的数量必须为2个或以上"; exit(); } for ($i = 0; $i < 10; $i++) { @@ -53,7 +53,7 @@ else if ($dopost == 'makeold') { $dsql->ExecuteNoneQuery(" Update `#@__addonarticle` set templet='$temp' where RIGHT(aid, 1)='$i' "); } AjaxHead(); - echo "全部随机操作成功!"; + echo "全部随机操作成功"; exit(); } //清除全部的指定模板 @@ -62,7 +62,7 @@ else if ($dopost == 'clearold') { $dsql->ExecuteNoneQuery(" Update `#@__addonarticle` set templet='' "); $dsql->ExecuteNoneQuery(" OPTIMIZE TABLE `#@__addonarticle` "); AjaxHead(); - echo "全部清除操作成功!"; + echo "全部清除操作成功"; exit(); } @@ -96,8 +96,8 @@ function DoRand(jobname)
- 如果您想对旧的文章应用随机模板设置,请点击此对旧文章进行处理(必须设置好模板项)! + |
+ 如果您想对旧的文章应用随机模板设置,请点击此对旧文章进行处理(必须设置好模板项)
设置全部
取消全部
$okmsg
@@ -115,7 +115,7 @@ $win = new OxWindow();
$win->Init('article_template_rand.php', 'js/blank.js', 'POST');
$win->AddHidden('dopost', 'save');
$win->AddHidden('token', $_SESSION['token']);
-$win->AddTitle("本设置仅适用于系统默认的文章模型,设置后发布文章时会自动按指定的模板随机获取一个,如果不想使用此功能,把它设置为空即可!");
+$win->AddTitle("本设置仅适用于系统默认的文章模型,设置后发布文章时会自动按指定的模板随机获取一个,如果不想使用此功能,把它设置为空即可");
$win->AddMsgItem($msg);
$winform = $win->GetWindow('ok');
$win->Display();
diff --git a/src/dede/article_test_same.php b/src/dede/article_test_same.php
index 761117db..19e2714b 100755
--- a/src/dede/article_test_same.php
+++ b/src/dede/article_test_same.php
@@ -18,7 +18,7 @@ if ($dopost == 'analyse') {
if (is_array($arr)) {
$maintable = $arr['maintable'];
} else {
- showmsg('频道id不正确,无法处理!', 'javascript:;');
+ showmsg('频道id不正确,无法处理', 'javascript:;');
exit();
}
$dsql->SetQuery("SELECT COUNT(title) AS dd,title FROM `$maintable` WHERE channel='$channelid' GROUP BY title ORDER BY dd DESC LIMIT 0, $pagesize");
@@ -35,7 +35,7 @@ else if ($dopost == 'delsel') {
if (empty($titles)) {
header("Content-Type: text/html; charset={$cfg_ver_lang}");
echo "\r\n";
- echo "没有指定删除的文档!";
+ echo "没有指定删除的文档";
exit();
}
@@ -72,7 +72,7 @@ else if ($dopost == 'delsel') {
}
}
$dsql->ExecuteNoneQuery(" OPTIMIZE TABLE `$maintable`; ");
- ShowMsg("一共删除了[{$totalarc}]篇重复的文档!", "javascript:;");
+ ShowMsg("一共删除了[{$totalarc}]篇重复的文档", "javascript:;");
exit();
}
diff --git a/src/dede/article_test_title.php b/src/dede/article_test_title.php
index bc1e20ce..e51591b7 100755
--- a/src/dede/article_test_title.php
+++ b/src/dede/article_test_title.php
@@ -15,5 +15,5 @@ if (empty($t) || $cfg_check_title == 'N') exit;
$row = $dsql->GetOne("SELECT id FROM `#@__archives` WHERE title LIKE '$t' ");
if (is_array($row)) {
- echo "提示:系统已经存在标题为 '$t' 的文档。[关闭]";
+ echo "提示:系统已经存在标题为 '$t' 的文档。[关闭]";
}
diff --git a/src/dede/cards_make.php b/src/dede/cards_make.php
index 3a00bd07..6995a1f5 100755
--- a/src/dede/cards_make.php
+++ b/src/dede/cards_make.php
@@ -55,5 +55,5 @@ elseif ($dopost == 'make') {
$dsql->ExecuteNoneQuery($inquery);
echo "成功生成点卡:{$cardid} "; } - echo "成功生成 {$mnum} 个点卡!"; + echo "成功生成 {$mnum} 个点卡"; } diff --git a/src/dede/cards_manage.php b/src/dede/cards_manage.php index 7d715260..f36ccae2 100755 --- a/src/dede/cards_manage.php +++ b/src/dede/cards_manage.php @@ -21,7 +21,7 @@ if ($dopost == "delete") { } if ($dquery != "") $dquery = " WHERE ".$dquery; $dsql->ExecuteNoneQuery("DELETE FROM #@__moneycard_record $dquery"); - ShowMsg("成功删除指定的记录!", "cards_manage.php"); + ShowMsg("成功删除指定的记录", "cards_manage.php"); exit(); } else { $addsql = ''; diff --git a/src/dede/cards_type.php b/src/dede/cards_type.php index 1d075a5d..b414ad68 100755 --- a/src/dede/cards_type.php +++ b/src/dede/cards_type.php @@ -44,6 +44,6 @@ if ($dopost == "save") { $dsql->ExecuteNoneQuery($query); } header("Content-Type: text/html; charset={$cfg_soft_lang}"); - echo ""; + echo ""; } require_once(DEDEADMIN."/templets/cards_type.htm"); diff --git a/src/dede/catalog_add.php b/src/dede/catalog_add.php index 5dea5c78..1ba6231b 100755 --- a/src/dede/catalog_add.php +++ b/src/dede/catalog_add.php @@ -27,7 +27,7 @@ if ($id == 0 && $reid == 0) { } else { $checkID = empty($id) ? $reid : $id; CheckPurview('t_AccNew'); - CheckCatalog($checkID, '您无权在本栏目下创建子类!'); + CheckCatalog($checkID, '您无权在本栏目下创建子类'); } if (empty($myrow)) $myrow = array(); @@ -136,7 +136,7 @@ function action_savequick(){ } } } UpDateCatCache(); - ShowMsg('成功增加指定栏目!', 'catalog_main.php'); + ShowMsg('成功增加指定栏目', 'catalog_main.php'); exit(); } /*--------------------- @@ -173,11 +173,11 @@ function action_save(){ } if ($siteurl != '') { $siteurl = preg_replace("#\/$#", "", $siteurl); if (!preg_match("#http:\/\/#i", $siteurl)) { - ShowMsg("您绑定的二级域名无效,请用(http://host)的形式!", "-1"); + ShowMsg("您绑定的二级域名无效,请用(http://host)的形式", "-1"); exit(); } if (preg_match("#".$cfg_basehost."#i", $siteurl)) { - ShowMsg("您绑定的二级域名与当前站点是同一个域,不需要绑定!", "-1"); + ShowMsg("您绑定的二级域名与当前站点是同一个域,不需要绑定", "-1"); exit(); } } @@ -188,7 +188,7 @@ function action_save(){ } $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(); } } @@ -201,14 +201,14 @@ function action_save(){ } '$ispart','$corank','$description','$keywords','$seotitle','$moresite','$siteurl','$sitepath','$ishidden','$cross','$crossid','$content','$smalltypes')"; if (!$dsql->ExecuteNoneQuery($in_query)) { - ShowMsg("保存目录数据时失败,请检查您的输入资料是否存在问题!", "-1"); + ShowMsg("保存目录数据时失败,请检查您的输入资料是否存在问题", "-1"); exit(); } UpDateCatCache(); if ($reid > 0) { PutCookie('lastCid', GetTopid($reid), 3600 * 24, '/'); } - ShowMsg("成功创建一个分类!", "catalog_main.php"); + ShowMsg("成功创建一个分类", "catalog_main.php"); exit(); } //End dopost==save diff --git a/src/dede/catalog_del.php b/src/dede/catalog_del.php index fae0db39..9fdd61df 100755 --- a/src/dede/catalog_del.php +++ b/src/dede/catalog_del.php @@ -18,13 +18,13 @@ require_once(DEDEINC.'/oxwindow.class.php'); $id = trim(preg_replace("#[^0-9]#", '', $id)); //检查栏目操作许可 -CheckCatalog($id, "您无权删除本栏目!"); +CheckCatalog($id, "您无权删除本栏目"); if (empty($dopost)) $dopost = ''; if ($dopost == 'ok') { $ut = new TypeUnit(); $ut->DelType($id, $delfile); UpDateCatCache(); - ShowMsg("成功删除一个栏目!", "catalog_main.php"); + ShowMsg("成功删除一个栏目", "catalog_main.php"); exit(); } $dsql->SetQuery("SELECT typename,typedir FROM #@__arctype WHERE id=".$id); diff --git a/src/dede/catalog_do.php b/src/dede/catalog_do.php index 67c96232..fe0ca1cb 100755 --- a/src/dede/catalog_do.php +++ b/src/dede/catalog_do.php @@ -11,7 +11,7 @@ */ require_once(dirname(__FILE__).'/config.php'); if (empty($dopost)) { - ShowMsg("对不起,请指定栏目参数!", "catalog_main.php"); + ShowMsg("对不起,请指定栏目参数", "catalog_main.php"); exit(); } $cid = empty($cid) ? 0 : intval($cid); @@ -37,7 +37,7 @@ if ($dopost == "addArchives") { } $gurl = $row["addcon"]; if ($gurl == "") { - ShowMsg("对不起,您指的栏目可能有误!", "catalog_main.php"); + ShowMsg("对不起,您指的栏目可能有误", "catalog_main.php"); exit(); } @@ -64,7 +64,7 @@ function listArchives(); $typename = $row["typename"]; $channelname = $row["channelname"]; if ($gurl == "") { - ShowMsg("对不起,您指的栏目可能有误!", "catalog_main.php"); + ShowMsg("对不起,您指的栏目可能有误", "catalog_main.php"); exit(); } } else if ($channelid > 0) { @@ -104,7 +104,7 @@ function upRank() CheckPurview('t_Edit,t_AccEdit'); //检查栏目操作许可 - CheckCatalog($cid, "您无权更改本栏目!"); + CheckCatalog($cid, "您无权更改本栏目"); $row = $dsql->GetOne("SELECT reid,sortrank FROM #@__arctype WHERE id='$cid'"); $reid = $row['reid']; $sortrank = $row['sortrank']; @@ -211,7 +211,7 @@ function unitCatalog() { } $reid = $tl->TypeInfos['reid']; $channelid = $tl->TypeInfos['channeltype']; if (!empty($row['dd'])) { - ShowMsg("栏目: $typename($typeid) 有子栏目,不能进行合并操作!", '-1'); + ShowMsg("栏目: $typename($typeid) 有子栏目,不能进行合并操作", '-1'); exit(); } $typeOptions = $tl->GetOptionArray(0, 0, $channelid); @@ -232,11 +232,11 @@ function unitCatalog() { } exit(); } else { if ($typeid == $unittype) { - ShowMsg("同一栏目无法合并,请后退重试!", '-1'); + ShowMsg("同一栏目无法合并,请后退重试", '-1'); exit(); } if (IsParent($unittype, $typeid)) { - ShowMsg('不能从父类合并到子类!', 'catalog_main.php'); + ShowMsg('不能从父类合并到子类', 'catalog_main.php'); exit(); } $row = $dsql->GetOne("SELECT addtable FROM `#@__channeltype` WHERE id='$channelid' "); @@ -249,7 +249,7 @@ function unitCatalog() { } $dsql->ExecuteNoneQuery("UPDATE `$addtable` SET typeid='$unittype' WHERE typeid='$typeid' "); $dsql->ExecuteNoneQuery("DELETE FROM `#@__arctype` WHERE id='$typeid' "); UpDateCatCache(); - ShowMsg('成功合并指定栏目!', 'catalog_main.php'); + ShowMsg('成功合并指定栏目', 'catalog_main.php'); exit(); } } @@ -284,16 +284,16 @@ function moveCatalog() { } exit(); } else { if ($typeid == $movetype) { - ShowMsg('移对对象和目标位置相同!', 'catalog_main.php'); + ShowMsg('移对对象和目标位置相同', 'catalog_main.php'); exit(); } if (IsParent($movetype, $typeid)) { - ShowMsg('不能从父类移动到子类!', 'catalog_main.php'); + ShowMsg('不能从父类移动到子类', 'catalog_main.php'); exit(); } $dsql->ExecuteNoneQuery(" UPDATE `#@__arctype` SET reid='$movetype' WHERE id='$typeid' "); UpDateCatCache(); - ShowMsg('成功移动目录!', 'catalog_main.php'); + ShowMsg('成功移动目录', 'catalog_main.php'); exit(); } } diff --git a/src/dede/config.php b/src/dede/config.php index 6822c08f..72babafc 100755 --- a/src/dede/config.php +++ b/src/dede/config.php @@ -100,7 +100,7 @@ if (strlen($cfg_cookie_encode) <= 10) { $dsql->ExecuteNoneQuery("UPDATE `#@__sysconfig` SET `value`='{$hash}' WHERE varname='cfg_cookie_encode' "); $configfile = DEDEDATA . '/config.cache.inc.php'; if (!is_writeable($configfile)) { - echo "配置文件'{$configfile}'不支持写入,无法修改系统配置参数!"; + echo "配置文件'{$configfile}'不支持写入,无法修改系统配置参数"; exit(); } $fp = fopen($configfile, 'w'); diff --git a/src/dede/content_att.php b/src/dede/content_att.php index 980eb1a1..fefcfac8 100755 --- a/src/dede/content_att.php +++ b/src/dede/content_att.php @@ -24,7 +24,7 @@ if ($dopost == "save") { $query = "UPDATE `#@__arcatt` SET `attname`='$attname',`sortid`='$sortid' WHERE att='$att' "; $dsql->ExecuteNoneQuery($query); } - echo ""; + echo ""; } include DedeInclude('templets/content_att.htm'); diff --git a/src/dede/content_batchup_action.php b/src/dede/content_batchup_action.php index 50535789..b996ebd0 100755 --- a/src/dede/content_batchup_action.php +++ b/src/dede/content_batchup_action.php @@ -60,7 +60,7 @@ if (!empty($heightdone)) $action = $heightdone; //指量审核 if ($action == 'check') { if (empty($startid) || empty($endid) || $endid < $startid) { - ShowMsg('该操作必须指定起始ID!', 'javascript:;'); + ShowMsg('该操作必须指定起始ID', 'javascript:;'); exit(); } $jumpurl = "makehtml_archives_action.php?endid=$endid&startid=$startid"; @@ -80,7 +80,7 @@ if ($action == 'check') { //批量删除 else if ($action == 'del') { if (empty($startid) || empty($endid) || $endid < $startid) { - ShowMsg('该操作必须指定起始ID!', 'javascript:;'); + ShowMsg('该操作必须指定起始ID', 'javascript:;'); exit(); } $dsql->SetQuery("SELECT id FROM `#@__archives` $gwhere"); @@ -89,7 +89,7 @@ else if ($action == 'del') { while ($row = $dsql->GetObject('x')) { if (DelArc($row->id)) $tdd++; } - ShowMsg("成功删除 $tdd 条记录!", "javascript:;"); + ShowMsg("成功删除 $tdd 条记录", "javascript:;"); exit(); } //删除空标题文档 @@ -100,7 +100,7 @@ else if ($action == 'delnulltitle') { while ($row = $dsql->GetObject('x')) { if (DelArc($row->id)) $tdd++; } - ShowMsg("成功删除 $tdd 条记录!", "javascript:;"); + ShowMsg("成功删除 $tdd 条记录", "javascript:;"); exit(); } //删除空内容文章 @@ -111,33 +111,33 @@ else if ($action == 'delnullbody') { while ($row = $dsql->GetObject('x')) { if (DelArc($row->aid)) $tdd++; } - ShowMsg("成功删除 $tdd 条记录!", "javascript:;"); + ShowMsg("成功删除 $tdd 条记录", "javascript:;"); exit(); } //修正缩略图错误 else if ($action == 'modddpic') { $dsql->ExecuteNoneQuery("UPDATE `#@__archives` SET litpic='' WHERE trim(litpic)='litpic' "); - ShowMsg("成功修正缩略图错误!", "javascript:;"); + ShowMsg("成功修正缩略图错误", "javascript:;"); exit(); } //批量移动 else if ($action == 'move') { if (empty($typeid)) { - ShowMsg('该操作必须指定栏目!', 'javascript:;'); + ShowMsg('该操作必须指定栏目', 'javascript:;'); exit(); } $typeold = $dsql->GetOne("SELECT * FROM #@__arctype WHERE id='$typeid'; "); $typenew = $dsql->GetOne("SELECT * FROM #@__arctype WHERE id='$newtypeid'; "); if (!is_array($typenew)) { - ShowMsg("无法检测移动到的新栏目的信息,不能完成操作!", "javascript:;"); + ShowMsg("无法检测移动到的新栏目的信息,不能完成操作", "javascript:;"); exit(); } if ($typenew['ispart'] != 0) { - ShowMsg("您不能把数据移动到非最终列表的栏目!", "javascript:;"); + ShowMsg("您不能把数据移动到非最终列表的栏目", "javascript:;"); exit(); } if ($typenew['channeltype'] != $typeold['channeltype']) { - ShowMsg("不能把数据移动到内容类型不同的栏目!", "javascript:;"); + ShowMsg("不能把数据移动到内容类型不同的栏目", "javascript:;"); exit(); } $gwhere .= " And channel='".$typenew['channeltype']."' And title like '%$keyword%'"; @@ -175,12 +175,12 @@ else if ($action == 'delnulltitle') { while ($row = $dsql->GetObject('x')) { if (DelArc($row->id)) $tdd++; } - ShowMsg("成功删除 $tdd 条记录!", "javascript:;"); + ShowMsg("成功删除 $tdd 条记录", "javascript:;"); exit(); } //修正缩略图错误 else if ($action == 'modddpic') { $dsql->ExecuteNoneQuery("UPDATE #@__archives SET litpic='' WHERE trim(litpic)='litpic' "); - ShowMsg("成功修正缩略图错误!", "javascript:;"); + ShowMsg("成功修正缩略图错误", "javascript:;"); exit(); } diff --git a/src/dede/content_list.php b/src/dede/content_list.php index 6e2fb9a5..d486d149 100755 --- a/src/dede/content_list.php +++ b/src/dede/content_list.php @@ -39,7 +39,7 @@ if (TestPurview('a_List')) {; $admin_catalog = join(',', $admin_catalogs); $userCatalogSql = " arc.typeid IN($admin_catalog) "; } else { - CheckCatalog($cid, '您无权浏览非指定栏目的内容!'); + CheckCatalog($cid, '您无权浏览非指定栏目的内容'); } if (TestPurview('a_MyList')) $mid = $cuserLogin->getUserID(); } diff --git a/src/dede/content_sg_list.php b/src/dede/content_sg_list.php index 88ce01ee..cf362e05 100755 --- a/src/dede/content_sg_list.php +++ b/src/dede/content_sg_list.php @@ -17,7 +17,7 @@ if (!isset($keyword)) $keyword = ''; if (!isset($arcrank)) $arcrank = ''; if (empty($cid) && empty($channelid)) { - ShowMsg("该页面必须指定栏目ID或内容模型ID才能浏览!", "javascript:;"); + ShowMsg("该页面必须指定栏目ID或内容模型ID才能浏览", "javascript:;"); exit(); } @@ -30,7 +30,7 @@ if (TestPurview('a_List')) { if ($cid == 0) { $ucid = $cid = $cuserLogin->getUserChannel(); } else { - CheckCatalog($cid, "您无权浏览非指定栏目的内容!"); + CheckCatalog($cid, "您无权浏览非指定栏目的内容"); } } @@ -43,7 +43,7 @@ setcookie("ENV_GOBACK_URL", $dedeNowurl, time() + 3600, "/"); $tl = new TypeLink($cid); $listtable = @trim($tl->TypeInfos['addtable']); if (!empty($channelid) && !empty($ucid) && $tl->TypeInfos['channeltype'] != $channelid) { - ShowMsg('您没权限访问此页!', 'javascript:;'); + ShowMsg('您没权限访问此页', 'javascript:;'); exit(); } diff --git a/src/dede/content_tj.php b/src/dede/content_tj.php index 48e169ad..cd6b2658 100755 --- a/src/dede/content_tj.php +++ b/src/dede/content_tj.php @@ -40,7 +40,7 @@ function GetArchives($dsql, $ordertype) $dsql->Execute('ga'); while ($row = $dsql->GetObject('ga')) { if (preg_match("#feedback#i", $ordertype)) { - $moreinfo = "[id}'>评论:{$row->scores}]"; + $moreinfo = "[id}'>评论:{$row->scores}]"; } else { $moreinfo = "[点击:{$row->click}]"; } diff --git a/src/dede/css/base.css b/src/dede/css/base.css index 2894864c..590aa680 100644 --- a/src/dede/css/base.css +++ b/src/dede/css/base.css @@ -1 +1 @@ -*{font-size:12px;letter-spacing:.4px}body{font:12px Helvetica Neue,Helvetica,PingFang SC,Tahoma,Arial,sans-serif;color:#424b51;background:#fff;line-height:1.5}form,h1,h2,h3,ul,ol,div{margin:0;padding:0}td{line-height:1.5}td,th,div{word-break:break-all;word-wrap:break-word}b,strong{font-weight:400}li,dd{margin:0;padding:0;list-style-type:none}select{height:calc(1.5em + .75rem + 2px);padding:.25rem .5rem;color:#424b51;background:#fff;border:1px solid #eee;border-radius:.2rem;transition:all .6s}input{padding:.25rem .5rem;height:calc(1.5em + .75rem + 2px);line-height:18px;color:#424b51;background:#fff;border:1px solid #eee;border-radius:.2rem;transition:all .6s;vertical-align:middle}input[type=button],input[type=submit],input[type=reset]{padding:.25rem .5rem;height:auto;line-height:1.5;color:#fff;background:#28a745;border-radius:.2rem;transition:all .6s;border:0}textarea{padding:.25rem .5rem;line-height:18px;font-family:Helvetica Neue,Helvetica,PingFang SC,Tahoma,Arial,sans-serif;color:#424b51;background:#fff;border:1px solid #eee;border-radius:.2rem;transition:all .6s;vertical-align:middle}input:focus,textarea:focus{border-color:#28a745;box-shadow:0 0 2px #28a745;outline:none}input[type=radio],input[type=checkbox]{box-shadow:none;outline:none}label{display:inline-block;margin:10px 0}img{margin-right:6px;border-radius:.2rem;vertical-align:baseline}h1,h2,h3{font-size:18px;color:#424b51}a:link{color:#424b51;text-decoration:none}a:hover{opacity:.8}a:visited{color:#666}.np{border:0}.linerow{border-bottom:1px solid #ACACAC}.coolbg{padding:.25rem .5rem;background:#f2f2f2;border-bottom:1px solid #ccc;border-radius:.2rem;border:0;cursor:pointer}.coolbg2{height:18px;background:#DFDDD2;border:1px solid #000}.ll{border-right:2px solid #ACACAC;border-bottom:2px solid #ACACAC;background:#E6E6E6}.bline{height:36px;background:#fff;border-bottom:1px solid #eee}#uploadfield{float:left}.bline2{border-bottom:1px solid #eee}.coolbt{border-left:1px solid #EFEFEF;border-top:1px solid #EFEFEF;border-bottom:1px solid #ACACAC;background:#E4F7D7;cursor:pointer}.coolbt2{border-left:1px solid #EFEFEF;border-top:1px solid #EFEFEF;border-bottom:1px solid #ACACAC;background:#F7FCDA}.coolbg3{width:140px;height:20px;border:1px solid #BDC5B4;background:#DFDDD2;text-align:right}.coolbg61{width:380px;height:26px;line-height:26px;border-top:1px solid #BDC5B4;border-left:1px solid #BDC5B4;border-right:1px solid #BDC5B4;background:#E7F3B1;text-align:right}.coolbg62{padding:6px;width:380px;height:300px;border:1px solid #BDC5B4;background:#F8FDF0}.coolbg4{width:190px;height:24px;line-height:24px;border-bottom:1px solid #C9CFC1;background:#F9FCDC url(../images/dlgtitle.gif)repeat-x;text-align:right}.coolbg5{width:190px;height:6px;border-top:1px solid #BDC5B4;background:#F9FCDC}.wsselect{height:60px;line-height:24px;background:#FCFEF1;overflow:auto}.dlg{padding:.25rem .5rem;border:2px solid #008E38;background:#F0FAEB;width:360px;line-height:160%}.pubdlg{background:#fff;border:4px solid #008E38;border-radius:.2rem;z-index:8888}.pubdlg .title{height:29px;line-height:29px;border-bottom:1px solid #C9CFC1;background:url(../images/dlgtitle.gif)repeat-x;text-align:left;cursor:move}.pubdlg .titLeft{float:left;padding-left:10px;line-height:29px;font-weight:600;color:#424b51}.pubdlg .titRight{float:right;padding:0}.fullpagediv{position:absolute;top:0;left:0;width:100%;height:120%;background:#cdcdcd;opacity:.5;z-index:1999}.quicksel{margin-left:10px;margin-top:10px;width:680px;height:420px;overflow:auto;z-index:10005}.quickselfoot{padding-top:8px;border-top:1px dashed #C0CC9D}.quickselItem{margin-bottom:8px}.quickselItem .topcat{padding-left:6px;line-height:24px;border-bottom:1px dashed #ccc;background:#FBFEEF;clear:both}.quickselItem .soncat{padding-left:10px}.quickselItem .item{float:left;margin-right:8px}.mysource,.mywriter{padding:.25rem .5rem;width:280px;line-height:160%;border:4px solid #008E38;background:#F0FAEB;z-index:10001}.dlgws div{width:100%}.dlgTesttitle{padding:.25rem .5rem;width:300px;line-height:150%;border:2px solid #008E38;background:#F0FAEB}#_mysource{z-index:10003}#_mywriter{z-index:10004}#uploadwait{z-index:19999}.option1{background:#DCECA6}.option2{background:#F7FBD2}.option3{background:#fff}.ininput{width:96%;height:20px;border:1px solid #fff}.nbt{padding:2px;background:#fff url(../images/allbtbg.gif);border:1px solid #A5AF83}.tdt{padding-left:6px}.waitpage{position:absolute;top:0;left:0;opacity:.7;background:#ababab url(../../images/loading1.gif)center no-repeat;z-index:10000}.divpre img{max-width:150px;max-height:100px}.divpre{overflow:hidden}.autoinput{padding-left:6px;width:90%}.bodytitle{margin:auto;width:98%;height:28px;border:1px dotted #BFD67C;background:url(../images/wbg.gif)}.bodytitle div{float:left}.bodytitletxt{padding-left:6px;line-height:28px}.tbtitle td{padding:6px}.tblist td{padding:6px;background:#fff}.tblist td.tbsname{padding:6px;background:#F9FFE6}.colordlg{padding:.25rem .5rem;width:100px;line-height:160%;border:2px dashed #008E38;background:#F0FAEB;z-index:10005}option.alltype{padding-left:16px;height:18px;line-height:18px;background:url(../images/arr4.gif)3px 4px no-repeat}option.btype{padding-left:16px;height:18px;line-height:18px;background:url(../images/arr4.gif)3px 4px no-repeat}option.stype{padding-left:26px;height:18px;line-height:18px;background:url(../images/arrr.gif)10px 4px no-repeat}.ilist{border-top:1px dashed #eee;border-bottom:1px dashed #eee;border-left:1px dashed #eee}.ilist td{border-right:1px dashed #eee}#typeid2{padding:0;float:left;height:18px;font-size:12px;background:url(../images/typeid2bg.gif)no-repeat;border:0}#litpic{margin-left:-20px;width:85px;height:20px;opacity:0;cursor:pointer}.litpic_span{margin-left:-60px;width:76px;height:22px;overflow:hidden;cursor:pointer}#starttime,#endtime,#pubdate{padding-left:30px;background:url(../images/calendar.gif)10px no-repeat}#title{background:url(../images/ruler.gif)repeat-x 0px 10px}.spec{width:60px}.gtab a{display:block;float:left;width:80px;height:26px;line-height:26px;text-align:center}.albCt img{cursor:pointer}.maintable{width:98%!important;border:1px solid #dee2e6}span.page-link{color:#fff;background:#28a745}a.btn{color:white!important}.btn-success{background:#28a745;border-color:#28a745}.table{color:#424b51}.table td,.table th{padding:.6rem;vertical-align:middle}.table th img,.table td img{vertical-align:text-bottom} \ No newline at end of file +*{font-size:12px;letter-spacing:.4px}body{font:12px Helvetica Neue,Helvetica,PingFang SC,Tahoma,Arial,sans-serif;color:#424b51;background:#fff;line-height:1.5}form,h1,h2,h3,ul,ol,div{margin:0;padding:0}td{line-height:1.5}td,th,div{word-break:break-all;word-wrap:break-word}b,strong{font-weight:400}li,dd{margin:0;padding:0;list-style-type:none}select{height:calc(1.5em + .75rem + 2px);padding:.25rem .5rem;color:#424b51;background:#fff;border:1px solid #eee;border-radius:.2rem;transition:all .6s}input{padding:.25rem .5rem;height:calc(1.5em + .75rem + 2px);line-height:18px;color:#424b51;background:#fff;border:1px solid #eee;border-radius:.2rem;transition:all .6s;vertical-align:middle}input[type=radio],input[type=checkbox]{height:auto;box-shadow:none;outline:none}input[type=button],input[type=submit],input[type=reset]{padding:.25rem .5rem;height:auto;line-height:1.5;color:#fff;background:#28a745;border-radius:.2rem;transition:all .6s;border:0}input:focus,textarea:focus{border-color:#28a745;box-shadow:0 0 2px #28a745;outline:none}textarea{padding:.25rem .5rem;line-height:18px;font-family:Helvetica Neue,Helvetica,PingFang SC,Tahoma,Arial,sans-serif;color:#424b51;background:#fff;border:1px solid #eee;border-radius:.2rem;transition:all .6s;vertical-align:middle}label{display:inline-block;margin:10px 0}img{margin-right:6px;border-radius:.2rem;vertical-align:baseline}h1,h2,h3{font-size:18px;color:#424b51}a:link{color:#424b51;text-decoration:none}a:hover{opacity:.8}a:visited{color:#666}.np{border:0}.linerow{border-bottom:1px solid #ACACAC}.coolbg{padding:.25rem .5rem;background:#f2f2f2;border-bottom:1px solid #ccc;border-radius:.2rem;border:0;cursor:pointer}.coolbg2{height:18px;background:#DFDDD2;border:1px solid #000}.ll{border-right:2px solid #ACACAC;border-bottom:2px solid #ACACAC;background:#E6E6E6}.bline{height:36px;background:#fff;border-bottom:1px solid #eee}#uploadfield{float:left}.bline2{border-bottom:1px solid #eee}.coolbt{border-left:1px solid #EFEFEF;border-top:1px solid #EFEFEF;border-bottom:1px solid #ACACAC;background:#E4F7D7;cursor:pointer}.coolbt2{border-left:1px solid #EFEFEF;border-top:1px solid #EFEFEF;border-bottom:1px solid #ACACAC;background:#F7FCDA}.coolbg3{width:140px;height:20px;border:1px solid #BDC5B4;background:#DFDDD2;text-align:right}.coolbg61{width:380px;height:26px;line-height:26px;border-top:1px solid #BDC5B4;border-left:1px solid #BDC5B4;border-right:1px solid #BDC5B4;background:#E7F3B1;text-align:right}.coolbg62{padding:6px;width:380px;height:300px;border:1px solid #BDC5B4;background:#F8FDF0}.coolbg4{width:190px;height:24px;line-height:24px;border-bottom:1px solid #C9CFC1;background:#F9FCDC url(../images/dlgtitle.gif)repeat-x;text-align:right}.coolbg5{width:190px;height:6px;border-top:1px solid #BDC5B4;background:#F9FCDC}.wsselect{height:60px;line-height:24px;background:#FCFEF1;overflow:auto}.dlg{padding:.25rem .5rem;border:2px solid #008E38;background:#F0FAEB;width:360px;line-height:160%}.pubdlg{background:#fff;border:4px solid #008E38;border-radius:.2rem;z-index:8888}.pubdlg .title{height:29px;line-height:29px;border-bottom:1px solid #C9CFC1;background:url(../images/dlgtitle.gif)repeat-x;text-align:left;cursor:move}.pubdlg .titLeft{float:left;padding-left:10px;line-height:29px;font-weight:600;color:#424b51}.pubdlg .titRight{float:right;padding:0}.fullpagediv{position:absolute;top:0;left:0;width:100%;height:120%;background:#cdcdcd;opacity:.5;z-index:1999}.quicksel{margin-left:10px;margin-top:10px;width:680px;height:420px;overflow:auto;z-index:10005}.quickselfoot{padding-top:8px;border-top:1px dashed #C0CC9D}.quickselItem{margin-bottom:8px}.quickselItem .topcat{padding-left:6px;line-height:24px;border-bottom:1px dashed #ccc;background:#FBFEEF;clear:both}.quickselItem .soncat{padding-left:10px}.quickselItem .item{float:left;margin-right:8px}.mysource,.mywriter{padding:.25rem .5rem;width:280px;line-height:160%;border:4px solid #008E38;background:#F0FAEB;z-index:10001}.dlgws div{width:100%}.dlgTesttitle{padding:.25rem .5rem;width:300px;line-height:150%;border:2px solid #008E38;background:#F0FAEB}#_mysource{z-index:10003}#_mywriter{z-index:10004}#uploadwait{z-index:19999}.option1{background:#DCECA6}.option2{background:#F7FBD2}.option3{background:#fff}.ininput{width:96%;height:20px;border:1px solid #fff}.nbt{padding:2px;background:#fff url(../images/allbtbg.gif);border:1px solid #A5AF83}.tdt{padding-left:6px}.waitpage{position:absolute;top:0;left:0;opacity:.7;background:#ababab url(../../images/loading1.gif)center no-repeat;z-index:10000}.divpre img{max-width:150px;max-height:100px}.divpre{overflow:hidden}.autoinput{padding-left:6px;width:90%}.bodytitle{margin:auto;width:98%;height:28px;border:1px dotted #BFD67C;background:url(../images/wbg.gif)}.bodytitle div{float:left}.bodytitletxt{padding-left:6px;line-height:28px}.tbtitle td{padding:6px}.tblist td{padding:6px;background:#fff}.tblist td.tbsname{padding:6px;background:#F9FFE6}.colordlg{padding:.25rem .5rem;width:100px;line-height:160%;border:2px dashed #008E38;background:#F0FAEB;z-index:10005}option.alltype{padding-left:16px;height:18px;line-height:18px;background:url(../images/arr4.gif)3px 4px no-repeat}option.btype{padding-left:16px;height:18px;line-height:18px;background:url(../images/arr4.gif)3px 4px no-repeat}option.stype{padding-left:26px;height:18px;line-height:18px;background:url(../images/arrr.gif)10px 4px no-repeat}.ilist{border-top:1px dashed #eee;border-bottom:1px dashed #eee;border-left:1px dashed #eee}.ilist td{border-right:1px dashed #eee}#typeid2{padding:0;float:left;height:18px;font-size:12px;background:url(../images/typeid2bg.gif)no-repeat;border:0}#litpic{margin-left:-20px;width:85px;height:20px;opacity:0;cursor:pointer}.litpic_span{margin-left:-60px;width:76px;height:22px;overflow:hidden;cursor:pointer}#starttime,#endtime,#pubdate{padding-left:30px;background:url(../images/calendar.gif)10px no-repeat}#title{background:url(../images/ruler.gif)repeat-x 0px 10px}.spec{width:60px}.gtab a{display:block;float:left;width:80px;height:26px;line-height:26px;text-align:center}.albCt img{cursor:pointer}.maintable{width:98%!important;border:1px solid #dee2e6}span.page-link{color:#fff;background:#28a745}a.btn{color:white!important}.btn-success{background:#28a745;border-color:#28a745}.table{color:#424b51}.table td,.table th{padding:.6rem;vertical-align:middle}.table th img,.table td img{vertical-align:text-bottom} \ No newline at end of file diff --git a/src/dede/dialog/select_images_post.php b/src/dede/dialog/select_images_post.php index 61b42cc4..41785a1e 100755 --- a/src/dede/dialog/select_images_post.php +++ b/src/dede/dialog/select_images_post.php @@ -34,14 +34,14 @@ $CKEditorFuncNum = (isset($CKEditorFuncNum)) ? $CKEditorFuncNum : 1; $imgfile_name = trim(preg_replace("#[ \r\n\t\*\%\\\/\?><\|\":]{1,}#", '', $imgfile_name)); if (!preg_match("#\.(".$cfg_imgtype.")#i", $imgfile_name)) { - ShowMsg("您所上传的图片类型不在许可列表,请更改系统对扩展名限定的配置!", "-1"); + ShowMsg("您所上传的图片类型不在许可列表,请更改系统对扩展名限定的配置", "-1"); exit(); } $nowtme = time(); $sparr = array("image/pjpeg", "image/jpeg", "image/gif", "image/png", "image/xpng", "image/wbmp"); $imgfile_type = strtolower(trim($imgfile_type)); if (!in_array($imgfile_type, $sparr)) { - ShowMsg("上传的图片格式错误,请使用JPEG、GIF、PNG、WBMP格式的其中一种!", "-1"); + ShowMsg("上传的图片格式错误,请使用JPEG、GIF、PNG、WBMP格式的其中一种", "-1"); exit(); } $mdir = MyDate($cfg_addon_savetype, $nowtme); @@ -55,7 +55,7 @@ $fs = explode('.', $imgfile_name); $filename = $filename.'.'.$fs[count($fs) - 1]; $filename_name = $filename_name.'.'.$fs[count($fs) - 1]; $fullfilename = $cfg_basedir.$activepath."/".$filename; -move_uploaded_file($imgfile, $fullfilename) or die("上传文件到 $fullfilename 失败!"); +move_uploaded_file($imgfile, $fullfilename) or die("上传文件到 $fullfilename 失败"); @unlink($imgfile); if (empty($resize)) { @@ -93,8 +93,8 @@ if ($GLOBALS['cfg_html_editor'] == 'ckeditor' && $CKUpload) { if (!empty($noeditor)) { - ShowMsg("成功上传一幅图片!", "select_images.php?imgstick=$imgstick&comeback=".urlencode($filename_name)."&v=$v&f=$f&CKEditorFuncNum=$CKEditorFuncNum&noeditor=yes&activepath=".urlencode($activepath)."/$mdir&d=".time()); + ShowMsg("成功上传一幅图片", "select_images.php?imgstick=$imgstick&comeback=".urlencode($filename_name)."&v=$v&f=$f&CKEditorFuncNum=$CKEditorFuncNum&noeditor=yes&activepath=".urlencode($activepath)."/$mdir&d=".time()); } else { - ShowMsg("成功上传一幅图片!", "select_images.php?imgstick=$imgstick&comeback=".urlencode($filename_name)."&v=$v&f=$f&CKEditorFuncNum=$CKEditorFuncNum&activepath=".urlencode($activepath)."/$mdir&d=".time()); + ShowMsg("成功上传一幅图片", "select_images.php?imgstick=$imgstick&comeback=".urlencode($filename_name)."&v=$v&f=$f&CKEditorFuncNum=$CKEditorFuncNum&activepath=".urlencode($activepath)."/$mdir&d=".time()); } exit(); diff --git a/src/dede/dialog/select_soft.php b/src/dede/dialog/select_soft.php index e799ae6d..e2f00d5a 100644 --- a/src/dede/dialog/select_soft.php +++ b/src/dede/dialog/select_soft.php @@ -122,7 +122,7 @@ table{background:#fff} else if ($file == "..") { if ($activepath == "") continue; $tmp = preg_replace("#[\/][^\/]*$#i", "", $activepath); - $line = "\n | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
当前目录:$activepath | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
@@ -142,7 +142,7 @@ table{background:#fff} $reurl = "$activeurl/$file"; $reurl = preg_replace("#^\.\.#", "", $reurl); $reurl = $reurl; - $line = "\n | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
$filesize KB | $filetime | @@ -154,7 +154,7 @@ table{background:#fff} $reurl = "$activeurl/$file"; $reurl = preg_replace("#^\.\.#", "", $reurl); $reurl = $reurl; - $line = "\n|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
$filesize KB | $filetime | diff --git a/src/dede/dialog/select_soft_post.php b/src/dede/dialog/select_soft_post.php index e6de7ca4..abd10378 100755 --- a/src/dede/dialog/select_soft_post.php +++ b/src/dede/dialog/select_soft_post.php @@ -32,7 +32,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}不在许可列表,请更改系统对扩展名限定的配置!", ""); + ShowMsg("您所上传的{$uploadmbtype}不在许可列表,请更改系统对扩展名限定的配置", ""); exit(); } @@ -52,7 +52,7 @@ if (!empty($newname)) { if (!preg_match("#\.#", $filename)) $fs = explode('.', $uploadfile_name); else $fs = explode('.', $filename); if (preg_match("#".$cfg_not_allowall."#", $fs[count($fs) - 1])) { - ShowMsg("您指定的文件名被系统禁止!", 'javascript:;'); + ShowMsg("您指定的文件名被系统禁止", 'javascript:;'); exit(); } if (!preg_match("#\.#", $filename)) $filename = $filename.'.'.$fs[count($fs) - 1]; @@ -60,7 +60,7 @@ if (!empty($newname)) { $filename = $cuserLogin->getUserID().'-'.dd2char(MyDate('ymdHis', $nowtme)); $fs = explode('.', $uploadfile_name); if (preg_match("#".$cfg_not_allowall."#", $fs[count($fs) - 1])) { - ShowMsg("您上传了某些可能存在不安全因素的文件,系统拒绝操作!", 'javascript:;'); + ShowMsg("您上传了某些可能存在不安全因素的文件,系统拒绝操作", 'javascript:;'); exit(); } $filename = $filename.'.'.$fs[count($fs) - 1]; @@ -68,7 +68,7 @@ if (!empty($newname)) { $fullfilename = $cfg_basedir.$activepath.'/'.$filename; $fullfileurl = $activepath.'/'.$filename; -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') { @@ -99,6 +99,6 @@ if ($ck == 1) { ); echo json_encode($arr); } else { - ShowMsg("成功上传文件!", $bkurl."?comeback=".urlencode($filename)."&f=$f&CKEditorFuncNum=$CKEditorFuncNum&activepath=".urlencode($activepath)."&d=".time()); + ShowMsg("成功上传文件", $bkurl."?comeback=".urlencode($filename)."&f=$f&CKEditorFuncNum=$CKEditorFuncNum&activepath=".urlencode($activepath)."&d=".time()); exit(); } diff --git a/src/dede/dialog/select_templets_post.php b/src/dede/dialog/select_templets_post.php index e12ebb08..f1a82251 100755 --- a/src/dede/dialog/select_templets_post.php +++ b/src/dede/dialog/select_templets_post.php @@ -24,7 +24,7 @@ if (!preg_match("#^text#", $uploadfile_type)) { exit(); } if (!preg_match("#\.(".$cfg_txttype.")#i", $uploadfile_name)) { - ShowMsg("您所上传的模板文件类型不能被识别,只允许htm、html、tpl、txt扩展名!", "-1"); + ShowMsg("您所上传的模板文件类型不能被识别,只允许htm、html、tpl、txt扩展名", "-1"); exit(); } if ($filename != '') { @@ -33,12 +33,12 @@ if ($filename != '') { $uploadfile_name = trim(preg_replace("#[ \r\n\t\*\%\\\/\?><\|\":]{1,}#", '', $uploadfile_name)); $filename = $uploadfile_name; if ($filename == '' || !preg_match("#\.(".$cfg_txttype.")#i", $filename)) { - ShowMsg("您所上传的文件存在问题,请检查文件类型是否适合!", "-1"); + ShowMsg("您所上传的文件存在问题,请检查文件类型是否适合", "-1"); 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()); +ShowMsg("成功上传文件", "select_templets.php?comeback=".urlencode($filename)."&f=$f&activepath=".urlencode($activepath)."&d=".time()); exit(); diff --git a/src/dede/diy_add.php b/src/dede/diy_add.php index 71da767c..c63575a0 100755 --- a/src/dede/diy_add.php +++ b/src/dede/diy_add.php @@ -21,18 +21,18 @@ if (empty($action)) { include(DEDEADMIN."/templets/diy_add.htm"); } else { if (preg_match("#[^0-9-]#", $diyid) || empty($diyid)) { - ShowMsg("'自定义表单diyid'必须为数字!", "-1"); + ShowMsg("'自定义表单diyid'必须为数字", "-1"); exit(); } if ($table == "") { - ShowMsg("表名不能为空!", "-1"); + ShowMsg("表名不能为空", "-1"); exit(); } $public = isset($public) && is_numeric($public) ? $public : 0; $name = dede_htmlspecialchars($name); $row = $dsql->GetOne("SELECT * FROM #@__diyforms WHERE diyid='$diyid' OR `table` LIKE '$table' OR name LIKE '$name' "); if (is_array($row)) { - ShowMsg("可能自定义表单的‘diyid’、‘名称’在数据库中已存在,不能重复使用!", "-1"); + ShowMsg("可能自定义表单的‘diyid’、‘名称’在数据库中已存在,不能重复使用", "-1"); exit(); } $query = "SHOW TABLES FROM {$dsql->dbName} "; diff --git a/src/dede/diy_edit.php b/src/dede/diy_edit.php index c110c468..78274d91 100755 --- a/src/dede/diy_edit.php +++ b/src/dede/diy_edit.php @@ -25,7 +25,7 @@ if ($dopost == "save") { $name = dede_htmlspecialchars($name); $query = "UPDATE `#@__diyforms` SET name = '$name', listtemplate='$listtemplate', viewtemplate='$viewtemplate', posttemplate='$posttemplate', public='$public' WHERE diyid='$diyid' "; $dsql->ExecuteNoneQuery($query); - ShowMsg("成功更改一个自定义表单!", "diy_main.php"); + ShowMsg("成功更改一个自定义表单", "diy_main.php"); exit(); } /*---------------- @@ -45,7 +45,7 @@ function __Delete() $win->AddHidden("job", "yes"); $win->AddHidden("dopost", $dopost); $win->AddHidden("diyid", $diyid); - $win->AddTitle("!将删除所有与该自定义表单相关的文件和数据
ID | +ID | 列表名称 | 模板文件 | -点击 | +点击 | 创建时间 | 管理 |
+ |
修改快捷操作项
![]() 您的管理目录的名称中包含默认名称dede,建议在FTP里把它修改为其它名称,那样会更安全! 您的管理目录的名称中包含默认名称dede,建议在FTP里把它修改为其它名称,那样会更安全 完成所有文件更新! ";
+ echo "完成所有文件更新 ";
exit();
} else {
$pv = new PartView($row['id']);
$pv->SetTemplet($cfg_basedir.$cfg_templets_dir."/".$templet);
$pv->SaveToHtml($cfg_basedir.$cfg_cmspath."/data/js/".$row['id'].".js", 0);
$typeid = $row['id'];;
- ShowMsg("成功更新".$cfg_cmspath."/data/js/".$row['id'].".js,继续进行操作!", "makehtml_js_action.php?typeid=$typeid", 0, 100);
+ ShowMsg("成功更新".$cfg_cmspath."/data/js/".$row['id'].".js,继续进行操作", "makehtml_js_action.php?typeid=$typeid", 0, 100);
exit();
}
} else {
@@ -36,7 +36,7 @@ if ($uptype == "all") {
$pv->SetTemplet($cfg_basedir.$cfg_templets_dir."/".$templet);
$pv->SaveToHtml($cfg_basedir.$cfg_cmspath."/data/js/".$typeid.".js", 0);
echo "";
- echo "成功更新".$cfg_cmspath."/data/js/".$typeid.".js!";
+ echo " 成功更新".$cfg_cmspath."/data/js/".$typeid.".js";
echo "预览: ";
echo ""; echo ""; diff --git a/src/dede/makehtml_list_action.php b/src/dede/makehtml_list_action.php index 81095eca..047d150b 100755 --- a/src/dede/makehtml_list_action.php +++ b/src/dede/makehtml_list_action.php @@ -52,10 +52,10 @@ if (isset($idArray[$pageno])) { $tid = $idArray[$pageno]; } else { if ($gotype == '') { - ShowMsg("完成所有列表更新!", "javascript:;"); + ShowMsg("完成所有列表更新", "javascript:;"); exit(); } else if ($gotype == 'mkall' || $gotype == 'mkallct') { - ShowMsg("完成所有栏目列表更新,现在作最后数据优化!", "makehtml_all.php?action=make&step=10"); + ShowMsg("完成所有栏目列表更新,现在作最后数据优化", "makehtml_all.php?action=make&step=10"); exit(); } } @@ -103,16 +103,16 @@ if ($nextpage >= $totalpage && $finishType) { if (empty($reurl)) { $reurl = '../plus/list.php?tid='.$tid; } - ShowMsg("完成所有栏目列表更新!浏览栏目", "javascript:;"); + ShowMsg("完成所有栏目列表更新浏览栏目", "javascript:;"); exit(); } else if ($gotype == 'mkall' || $gotype == 'mkallct') { - ShowMsg("完成所有栏目列表更新,现在作最后数据优化!", "makehtml_all.php?action=make&step=10"); + ShowMsg("完成所有栏目列表更新,现在作最后数据优化", "makehtml_all.php?action=make&step=10"); exit(); } } else { if ($finishType) { $gourl = "makehtml_list_action.php?gotype={$gotype}&uppage=$uppage&maxpagesize=$maxpagesize&typeid=$typeid&pageno=$nextpage"; - ShowMsg("成功创建栏目:".$tid.",继续进行操作!", $gourl, 0, 100); + ShowMsg("成功创建栏目:".$tid.",继续进行操作", $gourl, 0, 100); exit(); } else { $gourl = "makehtml_list_action.php?gotype={$gotype}&uppage=$uppage&mkpage=$mkpage&maxpagesize=$maxpagesize&typeid=$typeid&pageno=$pageno"; diff --git a/src/dede/makehtml_rss_action.php b/src/dede/makehtml_rss_action.php index e9c02365..3c4dda57 100755 --- a/src/dede/makehtml_rss_action.php +++ b/src/dede/makehtml_rss_action.php @@ -19,10 +19,10 @@ if (empty($maxrecord)) $maxrecord = 50; $row = $dsql->GetOne("SELECT id FROM `#@__arctype` WHERE id>'$tid' AND ispart<>2 ORDER BY id ASC LIMIT 0,1;"); if (!is_array($row)) { echo ""; - echo " 完成所有文件更新! ";
+ echo "完成所有文件更新 ";
} else {
$rv = new RssView($row['id'], $maxrecord);
$rssurl = $rv->MakeRss(0);
$tid = $row['id'];
- ShowMsg("成功更新".$rssurl.",继续进行操作!", "makehtml_rss_action.php?tid=$tid&maxrecord=$maxrecord", 0, 100);
+ ShowMsg("成功更新".$rssurl.",继续进行操作", "makehtml_rss_action.php?tid=$tid&maxrecord=$maxrecord", 0, 100);
}
diff --git a/src/dede/makehtml_spec.php b/src/dede/makehtml_spec.php
index 1fa952b4..3ce0a80e 100755
--- a/src/dede/makehtml_spec.php
+++ b/src/dede/makehtml_spec.php
@@ -18,7 +18,7 @@ if ($dopost == "ok") {
$sp = new SpecView();
$rurl = $sp->MakeHtml(0);
echo "";
- echo "成功生成所有专题HTML列表!预览 ";
+ echo "成功生成所有专题HTML列表预览 ";
exit();
}
include DedeInclude('templets/makehtml_spec.htm');
diff --git a/src/dede/makehtml_taglist_action.php b/src/dede/makehtml_taglist_action.php
index 0ed2cca6..86d03be0 100644
--- a/src/dede/makehtml_taglist_action.php
+++ b/src/dede/makehtml_taglist_action.php
@@ -41,7 +41,7 @@ if ($upall == 1 && $ctagid == 0) {
if ($ctagid == 0 && $allfinish) {
$reurl = '../a/tags/';
- ShowMsg("完成TAG更新!浏览TAG首页", "javascript:;");
+ ShowMsg("完成TAG更新浏览TAG首页", "javascript:;");
exit;
}
@@ -72,7 +72,7 @@ if (is_array($tag) && count($tag) > 0) {
$dlist->MakeHtml(1, 10);
$reurl = '../a/tags/';
if ($upall == 1) {
- ShowMsg("完成TAG更新!浏览TAG首页", "javascript:;");
+ ShowMsg("完成TAG更新浏览TAG首页", "javascript:;");
} else {
$query = "UPDATE `#@__tagindex` SET mktime=uptime WHERE id='$ctagid' ";
$dsql->ExecuteNoneQuery($query);
@@ -82,7 +82,7 @@ if (is_array($tag) && count($tag) > 0) {
}
$reurl .= $tag['tag_pinyin'];
- ShowMsg("完成TAG更新:[".$tag['tag']."]!浏览TAG首页", "javascript:;");
+ ShowMsg("完成TAG更新:[".$tag['tag']."]浏览TAG首页", "javascript:;");
}
exit();
} else {
@@ -95,7 +95,7 @@ if (is_array($tag) && count($tag) > 0) {
$nextpage = 0;
}
$gourl = "makehtml_taglist_action.php?maxpagesize=$maxpagesize&tagid=$tagid&pageno=$nextpage&upall=$upall&ctagid=$ctagid";
- ShowMsg("成功生成TAG:[".$tag['tag']."],继续进行操作!", $gourl, 0, 100);
+ ShowMsg("成功生成TAG:[".$tag['tag']."],继续进行操作", $gourl, 0, 100);
exit();
} else {
// 继续当前这个
diff --git a/src/dede/mda_main.php b/src/dede/mda_main.php
index ba1c8c29..0f7e9f56 100755
--- a/src/dede/mda_main.php
+++ b/src/dede/mda_main.php
@@ -83,7 +83,7 @@ function __link(){ }
-------------------------------*/
if ($dopost == 'place' or $dopost == 'report' or $dopost == 'account' or $dopost == 'setting') {
if (!mda_islogin()) {
- ShowMsg("您尚未登录德得广告,请先登录后继续使用……!", '?dopost=login');
+ ShowMsg("您尚未登录德得广告,请先登录后继续使用……", '?dopost=login');
exit();
}
mda_check_islogin();
@@ -161,7 +161,7 @@ function __bind_user(){ }
$domain = isset($domain) ? $domain : '';
$channel_name = isset($channel_name) ? $channel_name : '';
if (!$email or !$pwd or !$domain or !$channel_name) {
- ShowMsg("填写正确的账号信息!", -1);
+ ShowMsg("填写正确的账号信息", -1);
exit();
}
if ($cfg_soft_lang == 'gb2312') $channel_name = gb2utf8($channel_name);
@@ -173,7 +173,7 @@ function __bind_user(){ }
);
$rs = json_decode(mda_http_send(MDA_API_BIND_USER, 0, $paramsArr), TRUE);
if (!$rs) {
- ShowMsg("请求API错误,请重试!", -1);
+ ShowMsg("请求API错误,请重试", -1);
exit();
}
if ($rs['code'] != 0) {
@@ -272,7 +272,7 @@ function __main(){ }
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
您已成功登录德得广告!您可以进行以下操作: | +您已成功登录德得广告您可以进行以下操作: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
@@ -328,7 +328,7 @@ EOT; ); $rs = json_decode(mda_http_send(MDA_API_LOGIN, 0, $paramsArr), TRUE); if (!$rs) { - ShowMsg("请求API错误,请重试!", -1); + ShowMsg("请求API错误,请重试", -1); exit(); } if ($rs['code'] != 0) { @@ -336,7 +336,7 @@ EOT; exit(); } if ($rs['code'] == 0) { - ShowMsg("Channel Secret 修改成功……!", '?dopost=main'); + ShowMsg("Channel Secret 修改成功……", '?dopost=main'); mda_set_setting('channel_secret', $channel_secret); } } @@ -417,7 +417,7 @@ function __index(){ } | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
$msg ");
$winform = $win->GetWindow("ok", "");
$win->Display();
@@ -234,36 +215,31 @@ function Setup();
}
/*---------------
function SetupRun()
---------------*/ else if ($action == 'setupstart') {
+--------------*/
+else if ($action == 'setupstart') {
if (!is_writeable($mdir)) {
- ShowMsg("目录 {$mdir} 不支持写入,这将导致安装程序没法正常创建!", "-1");
+ ShowMsg("目录 {$mdir} 不支持写入,这将导致安装程序没法正常创建", "-1");
exit();
}
$dm = new DedeModule($mdir);
-
$minfos = $dm->GetModuleInfo($hash);
extract($minfos, EXTR_SKIP);
-
$menustring = addslashes($dm->GetSystemFile($hash, 'menustring'));
$indexurl = str_replace('**', '=', $indexurl);
-
$query = "INSERT INTO `#@__sys_module`(`hashcode` , `modname` , `indexname` , `indexurl` , `ismember` , `menustring` )
- VALUES ('$hash' , '$name' , '$indexname' , '$indexurl' , '$ismember' , '$menustring' ) ";
-
+ VALUES ('$hash' , '$name' , '$indexname' , '$indexurl' , '$ismember' , '$menustring' ) ";
$rs = $dsql->ExecuteNoneQuery("DELETE FROM `#@__sys_module` WHERE hashcode LIKE '$hash' ");
$rs = $dsql->ExecuteNoneQuery($query);
if (!$rs) {
- ShowMsg('保存数据库信息失败,无法完成安装!'.$dsql->GetError(), 'javascript:;');
+ ShowMsg('保存数据库信息失败,无法完成安装'.$dsql->GetError(), 'javascript:;');
exit();
}
-
$dm->WriteFiles($hash, $isreplace);
$filename = '';
if (!isset($autosetup) || $autosetup == 0) $filename = $dm->WriteSystemFile($hash, 'setup');
if (!isset($autodel) || $autodel == 0) $dm->WriteSystemFile($hash, 'uninstall');
$dm->WriteSystemFile($hash, 'readme');
$dm->Clear();
-
//用模块的安装程序安装
if (!isset($autosetup) || $autosetup == 0) {
include(DEDEDATA.'/module/'.$filename);
@@ -274,35 +250,26 @@ function SetupRun()
$mysql_version = $dsql->GetVersion(TRUE);
//默认使用MySQL 4.1 以下版本的SQL语句,对大于4.1版本采用替换处理 TYPE=MyISAM ==> ENGINE=MyISAM DEFAULT CHARSET=#~lang~#
$setupsql = $dm->GetSystemFile($hash, 'setupsql40');
-
$setupsql = preg_replace("#ENGINE=MyISAM#i", 'TYPE=MyISAM', $setupsql);
$sql41tmp = 'ENGINE=MyISAM DEFAULT CHARSET='.$cfg_db_language;
-
if ($mysql_version >= 4.1) {
$setupsql = preg_replace("#TYPE=MyISAM#i", $sql41tmp, $setupsql);
}
-
//_ROOTURL_
if ($cfg_cmspath == '/') $cfg_cmspath = '';
-
$rooturl = $cfg_basehost.$cfg_cmspath;
-
$setupsql = preg_replace("#_ROOTURL_#i", $rooturl, $setupsql);
$setupsql = preg_replace("#[\r\n]{1,}#", "\n", $setupsql);
-
$sqls = @split(";[ \t]{0,}\n", $setupsql);
foreach ($sqls as $sql) {
if (trim($sql) != '') $dsql->ExecuteNoneQuery($sql);
}
-
ReWriteConfigAuto();
-
$rflwft = "";
echo $rflwft;
-
UpDateCatCache();
ShowMsg('模块安装完成...', 'module_main.php');
exit();
@@ -310,51 +277,48 @@ function SetupRun()
}
/*--------------
function DelModule();
---------------*/ else if ($action == 'del') {
+--------------*/
+else if ($action == 'del') {
$dm = new DedeModule($mdir);
$infos = $dm->GetModuleInfo($hash);
-
- $alertMsg = ($infos['lang'] == $cfg_soft_lang ? '' : '(这个模块的语言编码与您系统的编码不一致,请向开发者确认它的兼容性)'); - $dev_id = empty($infos['dev_id'])? "未认证 前去认证" : "{$infos['dev_id']} 查看详情"; + $alertMsg = ($infos['lang'] == $cfg_soft_lang ? '' : ' (这个模块的语言编码与您系统的编码不一致,请向开发者确认它的兼容性)'); + $dev_id = empty($infos['dev_id'])? "未认证" : "{$infos['dev_id']} 未认证"; $win = new OxWindow(); $win->Init("module_main.php", "js/blank.js", "post"); $wecome_info = "模块管理"; $win->AddTitle("模块管理 >> 删除模块: {$infos['name']}"); $win->AddHidden('hash', $hash); $win->AddHidden('action', 'delok'); - $msg = " + $msg = "
$msg ");
$winform = $win->GetWindow("ok", "");
$win->Display();
@@ -363,19 +327,18 @@ function DelModule();
} else if ($action == 'delok') {
$dm = new DedeModule($mdir);
$modfile = $mdir."/".$dm->GetHashFile($hash);
- unlink($modfile) or die("删除文件 {$modfile} 失败!");
- ShowMsg("成功删除一个模块文件!", "module_main.php");
+ unlink($modfile) or die("删除文件 {$modfile} 失败");
+ ShowMsg("成功删除一个模块文件", "module_main.php");
exit();
}
/*--------------
function UnInstall();
---------------*/ else if ($action == 'uninstall') {
+--------------*/
+else if ($action == 'uninstall') {
$dm = new DedeModule($mdir);
$infos = $dm->GetModuleInfo($hash);
-
if ($infos['url'] == '') $infos['url'] = ' ';
- $alertMsg = ($infos['lang'] == $cfg_soft_lang ? '' : '(这个模块的语言编码与您系统的编码不一致,请向开发者确认它的兼容性)'); - + $alertMsg = ($infos['lang'] == $cfg_soft_lang ? '' : ' (这个模块的语言编码与您系统的编码不一致,请向开发者确认它的兼容性)'); $filelists = $dm->GetFileLists($hash); $filelist = ''; foreach ($filelists as $v) { @@ -384,58 +347,55 @@ function UnInstall(); else $v['type'] = '文件'; $filelist .= "{$v['type']}|{$v['name']}\r\n"; } - $dev_id = empty($infos['dev_id'])? "未认证 前去认证" : "{$infos['dev_id']} 查看详情"; + $dev_id = empty($infos['dev_id'])? "未认证" : "{$infos['dev_id']} 未认证"; $win = new OxWindow(); $win->Init("module_main.php", "js/blank.js", "post"); $wecome_info = "模块管理"; $win->AddTitle("模块管理 >> 卸载模块: {$infos['name']}"); $win->AddHidden("hash", $hash); $win->AddHidden("action", 'uninstallok'); - $msg = " + $msg = "
|
- 已完成数据结构完整性检测!
+ 已完成数据结构完整性检测
如果您系统有下面几种问题之一,请检测微表正确性: @@ -107,7 +107,7 @@ function 2_test_arctiny() { } $row = $dsql->GetOne("SELECT COUNT(*) AS dd FROM `#@__arctiny` "); $msg .= "※微统计表记录数: {$row['dd']} "; if ($row['dd'] == $allarcnum) { - $msg .= " 两者记录一致,无需修正! "; + $msg .= " 两者记录一致,无需修正 "; } else { $sql = " TRUNCATE TABLE `#@__arctiny`"; $dsql->ExecuteNoneQuery($sql); @@ -125,9 +125,9 @@ function 2_test_arctiny() { } } $row = $dsql->GetOne("SELECT COUNT(*) AS dd FROM `#@__arctiny` "); if ($row['dd'] == $allarcnum) { - $msg .= " 修正记录成功! "; + $msg .= " 修正记录成功 "; } else { - $msg .= " 修正记录失败,建议进行高级综合检测! "; + $msg .= " 修正记录失败,建议进行高级综合检测 "; $errall = " 进行高级结合性检测>> "; } } @@ -201,7 +201,7 @@ function 3_re_arctiny() { }
|