From 9c91aa5577cde2d009f134ed717dea7119615120 Mon Sep 17 00:00:00 2001 From: xushubieli Date: Wed, 30 Mar 2022 16:52:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E7=BC=A9=E7=95=A5=E5=9B=BE?= =?UTF-8?q?=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/arcmulti.php | 2 +- src/apps/feedback.php | 2 +- src/system/archive/archives.class.php | 6 +++--- src/system/archive/freelist.class.php | 2 +- src/system/archive/listview.class.php | 2 +- src/system/archive/rssview.class.php | 2 +- src/system/archive/searchview.class.php | 2 +- src/system/archive/sglistview.class.php | 2 +- src/system/archive/specview.class.php | 2 +- src/system/archive/taglist.class.php | 2 +- src/system/taglib/arclist.lib.php | 2 +- src/system/taglib/arclistsg.lib.php | 2 +- src/system/taglib/feedback.lib.php | 2 +- src/system/taglib/likearticle.lib.php | 2 +- src/system/typelink/typeunit.class.admin.php | 18 +++++++++--------- src/system/typelink/typeunit.class.menu.php | 8 ++++---- 16 files changed, 29 insertions(+), 29 deletions(-) diff --git a/src/apps/arcmulti.php b/src/apps/arcmulti.php index b98f7cf4..3e2b024f 100755 --- a/src/apps/arcmulti.php +++ b/src/apps/arcmulti.php @@ -66,7 +66,7 @@ if($tagid !='') if($row['litpic'] == '-' || $row['litpic'] == '') { - $row['litpic'] = $GLOBALS['cfg_cmspath'].'../static/web/img/defaultpic.jpg'; + $row['litpic'] = $GLOBALS['cfg_cmspath'].'/static/web/img/defaultpic.jpg'; } if(!preg_match("#^http:\/\/#", $row['litpic']) && $GLOBALS['cfg_multi_site'] == 'Y') { diff --git a/src/apps/feedback.php b/src/apps/feedback.php index 3621a340..ea8edec7 100755 --- a/src/apps/feedback.php +++ b/src/apps/feedback.php @@ -70,7 +70,7 @@ if ($action == '' || $action == 'show') { $dsql->Execute('fb', $querystring." LIMIT 20 "); $data = array(); while ($row = $dsql->GetArray('fb')) { - $row['face'] = empty($row['mface']) ? $GLOBALS['cfg_cmspath'].'../static/web/img/avatar.png' : $row['mface']; + $row['face'] = empty($row['mface']) ? $GLOBALS['cfg_cmspath'].'/static/web/img/avatar.png' : $row['mface']; $row['dtimestr'] = MyDate('Y-m-d', $row['dtime']); unset($row['ip']); $data[] = $row; diff --git a/src/system/archive/archives.class.php b/src/system/archive/archives.class.php index 95cc123b..d61a12e9 100755 --- a/src/system/archive/archives.class.php +++ b/src/system/archive/archives.class.php @@ -236,7 +236,7 @@ class Archives //处理默认缩略图等 if (isset($this->Fields['litpic'])) { if ($this->Fields['litpic'] == '-' || $this->Fields['litpic'] == '') { - $this->Fields['litpic'] = $GLOBALS['cfg_cmspath'].'../static/web/img/defaultpic.jpg'; + $this->Fields['litpic'] = $GLOBALS['cfg_cmspath'].'/static/web/img/defaultpic.jpg'; } if (!preg_match("#^http:\/\/#i", $this->Fields['litpic']) && $GLOBALS['cfg_multi_site'] == 'Y') { $this->Fields['litpic'] = $GLOBALS['cfg_mainsite'].$this->Fields['litpic']; @@ -716,7 +716,7 @@ class Archives ); } //二次开发上一篇属性 - $preRow['litpic'] = (empty($preRow['litpic'])) ? $GLOBALS['cfg_cmspath'].'/images/defaultpic.jpg' : $preRow['litpic']; + $preRow['litpic'] = (empty($preRow['litpic'])) ? $GLOBALS['cfg_cmspath'].'/static/web/img/defaultpic.jpg' : $preRow['litpic']; $this->PreNext['diy']['pre']['id'] = $preRow['id']; $this->PreNext['diy']['pre']['arcurl'] = $mlink; $this->PreNext['diy']['pre']['title'] = $preRow['title']; @@ -749,7 +749,7 @@ class Archives ); } //二次开发下一篇属性 - $nextRow['litpic'] = (empty($nextRow['litpic'])) ? $GLOBALS['cfg_cmspath'].'/images/defaultpic.jpg' : $nextRow['litpic']; + $nextRow['litpic'] = (empty($nextRow['litpic'])) ? $GLOBALS['cfg_cmspath'].'/static/web/img/defaultpic.jpg' : $nextRow['litpic']; $this->PreNext['diy']['next']['id'] = $nextRow['id']; $this->PreNext['diy']['next']['arcurl'] = $mlink; $this->PreNext['diy']['next']['title'] = $nextRow['title']; diff --git a/src/system/archive/freelist.class.php b/src/system/archive/freelist.class.php index fed8af8b..07537546 100755 --- a/src/system/archive/freelist.class.php +++ b/src/system/archive/freelist.class.php @@ -550,7 +550,7 @@ class FreeList } $row['description'] = cn_substr($row['description'], $infolen); if ($row['litpic'] == '-' || $row['litpic'] == '') { - $row['litpic'] = $GLOBALS['cfg_cmspath'].'../static/web/img/defaultpic.jpg'; + $row['litpic'] = $GLOBALS['cfg_cmspath'].'/static/web/img/defaultpic.jpg'; } if (!preg_match("#^http:\/\/#i", $row['litpic']) && $GLOBALS['cfg_multi_site'] == 'Y') { $row['litpic'] = $GLOBALS['cfg_mainsite'].$row['litpic']; diff --git a/src/system/archive/listview.class.php b/src/system/archive/listview.class.php index 34c5b9f0..896f6914 100755 --- a/src/system/archive/listview.class.php +++ b/src/system/archive/listview.class.php @@ -779,7 +779,7 @@ class ListView $row['sitepath'] ); if ($row['litpic'] == '-' || $row['litpic'] == '') { - $row['litpic'] = $GLOBALS['cfg_cmspath'].'../static/web/img/defaultpic.jpg'; + $row['litpic'] = $GLOBALS['cfg_cmspath'].'/static/web/img/defaultpic.jpg'; } if (!preg_match("/^http:\/\//i", $row['litpic']) && $GLOBALS['cfg_multi_site'] == 'Y') { $row['litpic'] = $GLOBALS['cfg_mainsite'].$row['litpic']; diff --git a/src/system/archive/rssview.class.php b/src/system/archive/rssview.class.php index 4aaecdde..db302570 100755 --- a/src/system/archive/rssview.class.php +++ b/src/system/archive/rssview.class.php @@ -141,7 +141,7 @@ class RssView while ($row = $this->dsql->GetArray('al')) { //处理一些特殊字段 if ($row['litpic'] == '-' || $row['litpic'] == '') { - $row['litpic'] = $GLOBALS['cfg_cmspath'].'../static/web/img/defaultpic.jpg'; + $row['litpic'] = $GLOBALS['cfg_cmspath'].'/static/web/img/defaultpic.jpg'; } if (!preg_match("/^http:\/\//", $row['litpic']) && $GLOBALS['cfg_multi_site'] == 'Y') { $row['litpic'] = $GLOBALS['cfg_mainsite'].$row['litpic']; diff --git a/src/system/archive/searchview.class.php b/src/system/archive/searchview.class.php index a23191f8..32066f86 100755 --- a/src/system/archive/searchview.class.php +++ b/src/system/archive/searchview.class.php @@ -588,7 +588,7 @@ class SearchView $row["title"] = $this->GetRedKeyWord(cn_substr($row["title"], $titlelen)); $row["id"] = $row["id"]; if ($row['litpic'] == '-' || $row['litpic'] == '') { - $row['litpic'] = $GLOBALS['cfg_cmspath'].'../static/web/img/defaultpic.jpg'; + $row['litpic'] = $GLOBALS['cfg_cmspath'].'/static/web/img/defaultpic.jpg'; } if (!preg_match("/^http:\/\//", $row['litpic']) && $GLOBALS['cfg_multi_site'] == 'Y') { $row['litpic'] = $GLOBALS['cfg_mainsite'].$row['litpic']; diff --git a/src/system/archive/sglistview.class.php b/src/system/archive/sglistview.class.php index ea3efe78..51f72bae 100755 --- a/src/system/archive/sglistview.class.php +++ b/src/system/archive/sglistview.class.php @@ -655,7 +655,7 @@ class SgListView $row['sitepath'] ); if ($row['litpic'] == '-' || $row['litpic'] == '') { - $row['litpic'] = $GLOBALS['cfg_cmspath'].'../static/web/img/defaultpic.jpg'; + $row['litpic'] = $GLOBALS['cfg_cmspath'].'/static/web/img/defaultpic.jpg'; } if (!preg_match("/^http:\/\//", $row['litpic']) && $GLOBALS['cfg_multi_site'] == 'Y') { $row['litpic'] = $GLOBALS['cfg_mainsite'].$row['litpic']; diff --git a/src/system/archive/specview.class.php b/src/system/archive/specview.class.php index fcdbe667..9071116f 100755 --- a/src/system/archive/specview.class.php +++ b/src/system/archive/specview.class.php @@ -355,7 +355,7 @@ class SpecView $row["title"] = cn_substr($row["title"], $titlelen); $row["id"] = $row["id"]; if ($row['litpic'] == '-' || $row['litpic'] == '') { - $row['litpic'] = $GLOBALS['cfg_cmspath'].'../static/web/img/defaultpic.jpg'; + $row['litpic'] = $GLOBALS['cfg_cmspath'].'/static/web/img/defaultpic.jpg'; } if (!preg_match("/^http:\/\//", $row['litpic']) && $GLOBALS['cfg_multi_site'] == 'Y') { $row['litpic'] = $GLOBALS['cfg_mainsite'].$row['litpic']; diff --git a/src/system/archive/taglist.class.php b/src/system/archive/taglist.class.php index 1309cdf9..19b9dcbb 100755 --- a/src/system/archive/taglist.class.php +++ b/src/system/archive/taglist.class.php @@ -367,7 +367,7 @@ class TagList $row['sitepath'] ); if ($row['litpic'] == '-' || $row['litpic'] == '') { - $row['litpic'] = $GLOBALS['cfg_cmspath'].'../static/web/img/defaultpic.jpg'; + $row['litpic'] = $GLOBALS['cfg_cmspath'].'/static/web/img/defaultpic.jpg'; } if (!preg_match("/^http:\/\//", $row['litpic']) && $GLOBALS['cfg_multi_site'] == 'Y') { $row['litpic'] = $GLOBALS['cfg_mainsite'].$row['litpic']; diff --git a/src/system/taglib/arclist.lib.php b/src/system/taglib/arclist.lib.php index 7ede411b..339f41da 100755 --- a/src/system/taglib/arclist.lib.php +++ b/src/system/taglib/arclist.lib.php @@ -357,7 +357,7 @@ function lib_arclistDone (&$refObj, &$ctag, $typeid=0, $row=10, $col=1, $titlele $row['sitepath'] ); if ($row['litpic'] == '-' || $row['litpic'] == '') { - $row['litpic'] = $GLOBALS['cfg_cmspath'].'../static/web/img/defaultpic.jpg'; + $row['litpic'] = $GLOBALS['cfg_cmspath'].'/static/web/img/defaultpic.jpg'; } if (!preg_match("#^http:\/\/#i", $row['litpic']) && $GLOBALS['cfg_multi_site'] == 'Y') { $row['litpic'] = $GLOBALS['cfg_mainsite'].$row['litpic']; diff --git a/src/system/taglib/arclistsg.lib.php b/src/system/taglib/arclistsg.lib.php index 4d81d728..b6e0ee55 100755 --- a/src/system/taglib/arclistsg.lib.php +++ b/src/system/taglib/arclistsg.lib.php @@ -183,7 +183,7 @@ function lib_arclistsg(&$ctag, &$refObj) $row['sitepath'] ); if ($row['litpic'] == '-' || $row['litpic'] == '') { - $row['litpic'] = $GLOBALS['cfg_cmspath'].'../static/web/img/defaultpic.jpg'; + $row['litpic'] = $GLOBALS['cfg_cmspath'].'/static/web/img/defaultpic.jpg'; } if (!preg_match("#^http:\/\/#i", $row['litpic']) && $GLOBALS['cfg_multi_site'] == 'Y') { $row['litpic'] = $GLOBALS['cfg_mainsite'].$row['litpic']; diff --git a/src/system/taglib/feedback.lib.php b/src/system/taglib/feedback.lib.php index c701cf4a..9bbe9fcc 100755 --- a/src/system/taglib/feedback.lib.php +++ b/src/system/taglib/feedback.lib.php @@ -46,7 +46,7 @@ function lib_feedback(&$ctag, &$refObj) $ctp->LoadSource($innertext); $dsql->Execute('fb', $equery); while ($arr = $dsql->GetArray('fb')) { - $arr['face'] = empty($arr['mface']) ? $GLOBALS['cfg_cmspath'].'../static/web/img/avatar.png' : $arr['mface']; + $arr['face'] = empty($arr['mface']) ? $GLOBALS['cfg_cmspath'].'/static/web/img/avatar.png' : $arr['mface']; $arr['title'] = cn_substr($arr['arctitle'], $titlelen); $arr['msg'] = jsTrim(Html2Text($arr['msg']), $infolen); foreach ($ctp->CTags as $tagid => $ctag) { diff --git a/src/system/taglib/likearticle.lib.php b/src/system/taglib/likearticle.lib.php index a96fa4b0..b63e7993 100755 --- a/src/system/taglib/likearticle.lib.php +++ b/src/system/taglib/likearticle.lib.php @@ -129,7 +129,7 @@ function lib_likearticle(&$ctag, &$refObj) $row['sitepath'] ); if ($row['litpic'] == '-' || $row['litpic'] == '') { - $row['litpic'] = $GLOBALS['cfg_cmspath'].'../static/web/img/defaultpic.jpg'; + $row['litpic'] = $GLOBALS['cfg_cmspath'].'/static/web/img/defaultpic.jpg'; } if (!preg_match("#^http:\/\/#i", $row['litpic']) && $GLOBALS['cfg_multi_site'] == 'Y') { $row['litpic'] = $GLOBALS['cfg_mainsite'].$row['litpic']; diff --git a/src/system/typelink/typeunit.class.admin.php b/src/system/typelink/typeunit.class.admin.php index 56129603..a402653c 100755 --- a/src/system/typelink/typeunit.class.admin.php +++ b/src/system/typelink/typeunit.class.admin.php @@ -117,8 +117,8 @@ class TypeUnit //普通列表 if ($ispart == 0) { echo ""; - echo ""; - echo ""; + echo "
{$nss}".$typeName."[ID:".$id."](文档:".$this->GetTotalArc($id).")"; + echo ""; - echo ""; - echo "
{$nss}".$typeName."[ID:".$id."](文档:".$this->GetTotalArc($id).")"; echo ""; echo ""; echo ""; @@ -131,8 +131,8 @@ class TypeUnit //带封面的频道 else if ($ispart == 1) { echo "
"; + echo "
{$nss}".$typeName."[ID:".$id."] "; + echo ""; - echo ""; - echo "
{$nss}".$typeName."[ID:".$id."] "; echo ""; echo ""; echo ""; @@ -145,8 +145,8 @@ class TypeUnit //独立页面 else if ($ispart == 2) { echo "
"; + echo "
{$nss}".$typeName."[ID:".$id."]"; + echo "
{$nss}".$typeName."[ID:".$id."]"; echo ""; echo ""; echo ""; @@ -205,7 +205,7 @@ class TypeUnit echo ""; echo ""; echo ""; echo "
"; - echo "$step{$nss}".$typeName."[ID:".$id."](文档:".$this->GetTotalArc($id).")"; + echo "$step{$nss}".$typeName."[ID:".$id."](文档:".$this->GetTotalArc($id).")"; echo ""; echo ""; echo ""; @@ -219,7 +219,7 @@ class TypeUnit else if ($ispart == 1) { echo "
"; echo "
"; - echo "$step{$nss}".$typeName."[ID:".$id."]"; + echo "$step{$nss}".$typeName."[ID:".$id."]"; echo ""; echo ""; echo ""; @@ -234,7 +234,7 @@ class TypeUnit echo "
"; echo "
"; - echo "$step{$nss}".$typeName."[ID:".$id."]"; + echo "$step{$nss}".$typeName."[ID:".$id."]"; echo ""; echo ""; echo ""; diff --git a/src/system/typelink/typeunit.class.menu.php b/src/system/typelink/typeunit.class.menu.php index 5aac3bbc..af62c512 100755 --- a/src/system/typelink/typeunit.class.menu.php +++ b/src/system/typelink/typeunit.class.menu.php @@ -112,7 +112,7 @@ class TypeUnit $smenu = " oncontextmenu=\"JumpMenu(event,this,$id,'".urlencode($typeName)."')\" "; } echo "
\r\n"; - echo "
\r\n"; + echo "
\r\n"; echo "
".$typeName."
\r\n"; echo "
\r\n"; echo "
"; @@ -163,18 +163,18 @@ class TypeUnit //封面频道 else if ($ispart == 1) { $smenu = " oncontextmenu=\"CommonMenuPart(event,this,$id,'".urlencode($typeName)."')\""; - $timg = " "; + $timg = " "; } //独立页面 //else if($ispart==2) //{ - //$timg = " "; + //$timg = " "; //$smenu = " oncontextmenu=\"SingleMenu(event,this,$id,'".urlencode($typeName)."')\" "; //} //跳转网址 else { continue; - $timg = " "; + $timg = " "; $smenu = " oncontextmenu=\"JumpMenu(event,this,$id,'".urlencode($typeName)."')\" "; } echo " \r\n";