From 2e4df11038c5a54f017c4a4a9639aa4ba3086cfa Mon Sep 17 00:00:00 2001 From: tianya Date: Thu, 17 Sep 2020 17:36:20 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E4=B8=8D=E5=BF=85=E8=A6=81?= =?UTF-8?q?=E7=9A=84=E6=A0=87=E7=AD=BE=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/dede/config.php | 29 --------- src/dede/templets/catalog_menu2.htm | 31 +++++----- src/dede/templets/content_list.htm | 4 +- src/dede/templets/content_sg_list.htm | 2 +- src/dede/templets/index_menu2.htm | 5 ++ src/dede/templets/media_main.htm | 1 - src/include/tpllib/plus_ask.php | 66 -------------------- src/include/tpllib/plus_newvisitor.php | 15 ----- src/include/tpllib/plus_spacenewart.php | 82 ------------------------- src/templets/default/index.htm | 1 + 10 files changed, 25 insertions(+), 211 deletions(-) delete mode 100755 src/include/tpllib/plus_ask.php delete mode 100755 src/include/tpllib/plus_newvisitor.php delete mode 100755 src/include/tpllib/plus_spacenewart.php diff --git a/src/dede/config.php b/src/dede/config.php index 94a245ea..6d4a15c1 100755 --- a/src/dede/config.php +++ b/src/dede/config.php @@ -100,35 +100,6 @@ if($cfg_dede_log=='Y') } } -//启用远程站点则创建FTP类 -if($cfg_remote_site=='Y') -{ - require_once(DEDEINC.'/ftp.class.php'); - if(file_exists(DEDEDATA."/cache/inc_remote_config.php")) - { - require_once DEDEDATA."/cache/inc_remote_config.php"; - } - if(empty($remoteuploads)) $remoteuploads = 0; - if(empty($remoteupUrl)) $remoteupUrl = ''; - $config = array( - 'hostname' => $GLOBALS['cfg_ftp_host'], - 'username' => $GLOBALS['cfg_ftp_user'], - 'password' => $GLOBALS['cfg_ftp_pwd'], - 'debug' => 'TRUE' - ); - $ftp = new FTP($config); - - //初始化FTP配置 - if($remoteuploads==1){ - $ftpconfig = array( - 'hostname'=>$rmhost, - 'port'=>$rmport, - 'username'=>$rmname, - 'password'=>$rmpwd - ); - } -} - //管理缓存、管理员频道缓存 $cache1 = DEDEDATA.'/cache/inc_catalog_base.inc'; if(!file_exists($cache1)) UpDateCatCache(); diff --git a/src/dede/templets/catalog_menu2.htm b/src/dede/templets/catalog_menu2.htm index 804a15d1..8ccca236 100755 --- a/src/dede/templets/catalog_menu2.htm +++ b/src/dede/templets/catalog_menu2.htm @@ -3,6 +3,8 @@ 类别管理 + + @@ -128,12 +130,11 @@ div,dd{ margin:0px; padding:0px } .topcc { margin-top:5px } .suncc { margin-bottom:3px } dl { clear:left; margin:0px; padding:0px } -.sunct{ } #items1 { - border-bottom: 1px solid #74c63f; - border-left: 1px solid #74c63f; - border-right: 1px solid #74c63f; + border-bottom: 1px solid #FBFCE2; + border-left: 1px solid #FBFCE2; + border-right: 1px solid #FBFCE2; } .sunlist { width:100%; padding-left:0px; margin:0px; clear:left } .tdborder { @@ -150,8 +151,8 @@ dl { clear:left; margin:0px; padding:0px } border-right: 1px solid #788C47; } .tdrl { -border-left: 1px solid #788C47; -border-right: 1px solid #788C47; +border-left: 1px solid #FBFCE2; +border-right: 1px solid #FBFCE2; } .top { cursor: pointer; } body @@ -159,7 +160,7 @@ body padding:3px 0px 0px 0px; margin:auto; text-align:center; - background-color:#9ad075; + background-color:#FBFCE2; background:url(images/leftmenu_bg.gif); } @@ -167,7 +168,7 @@ body
- +
- - + - + - + {dede:datalist} {dede:field.click/} diff --git a/src/dede/templets/index_menu2.htm b/src/dede/templets/index_menu2.htm index 6bb4b5af..55ad2478 100755 --- a/src/dede/templets/index_menu2.htm +++ b/src/dede/templets/index_menu2.htm @@ -17,6 +17,11 @@ echo "\r\n" margin: 0px; } + .sitemu a { + font-size: 90%; + color: rgba(0,0,0,.65); + } + body { padding: 0px; margin: auto; diff --git a/src/dede/templets/media_main.htm b/src/dede/templets/media_main.htm index 129dfb7c..fad75a85 100755 --- a/src/dede/templets/media_main.htm +++ b/src/dede/templets/media_main.htm @@ -138,7 +138,6 @@ diff --git a/src/include/tpllib/plus_ask.php b/src/include/tpllib/plus_ask.php deleted file mode 100755 index 1dcc54e0..00000000 --- a/src/include/tpllib/plus_ask.php +++ /dev/null @@ -1,66 +0,0 @@ -SetQuery($query); - $dsql->Execute('an'); - $rearr = array(); - while($row = $dsql->GetArray('an')) - { - if($row['tid2'] != 0) - $row['typelink'] = $row['typedata'] = " {$row['tid2name']}\r\n"; - else - $row['typelink'] = $row['typedata'] = " {$row['tidname']}\r\n"; - $row['title'] = cn_substr($row['title'],$titlelen); - $rearr[] = $row; - } - return $rearr; -} \ No newline at end of file diff --git a/src/include/tpllib/plus_newvisitor.php b/src/include/tpllib/plus_newvisitor.php deleted file mode 100755 index b8b7415b..00000000 --- a/src/include/tpllib/plus_newvisitor.php +++ /dev/null @@ -1,15 +0,0 @@ -SetQuery($query); - $dsql->Execute("al"); - $artlist = ''; - $rearr = array(); - while($row = $dsql->GetArray("al")) - { - //处理一些特殊字段 - $row['infos'] = cn_substr($row['description'],$infolen); - $row['id'] = $row['id']; - - $row['arcurl'] = GetFileUrl($row['id'],$row['typeid'],$row['senddate'],$row['title'],$row['ismake'], - $row['arcrank'],$row['namerule'],$row['typedir'],$row['money'],$row['filename'],$row['moresite'],$row['siteurl'],$row['sitepath']); - - $row['typeurl'] = GetTypeUrl($row['typeid'],$row['typedir'],$row['isdefault'],$row['defaultname'],$row['ispart'], - $row['namerule2'],$row['moresite'],$row['siteurl'],$row['sitepath']); - - if($row['litpic']=='') - { - $row['litpic'] = '/static/defaultpic.gif'; - } - if(!preg_match("#^http:\/\/#i", $row['litpic'])) - { - $row['picname'] = $row['litpic'] = $GLOBALS['cfg_cmsurl'].$row['litpic']; - } - else - { - $row['picname'] = $row['litpic'] = $row['litpic']; - } - $row['stime'] = GetDateMK($row['pubdate']); - $row['typelink'] = "".$row['typename'].""; - $row['image'] = "".preg_replace("#[<]#", "", $row['title'])."'>"; - $row['imglink'] = "".$row['image'].""; - $row['fulltitle'] = $row['title']; - $row['title'] = cn_substr($row['title'],$titlelen); - if($row['color']!='') { - $row['title'] = "".$row['title'].""; - } - if(preg_match('#b#', $row['flag'])) - { - $row['title'] = "".$row['title'].""; - } - //$row['title'] = "".$row['title'].""; - - $row['textlink'] = "".$row['title'].""; - - $row['plusurl'] = $row['phpurl'] = $GLOBALS['cfg_phpurl']; - $row['memberurl'] = $GLOBALS['cfg_memberurl']; - $row['templeturl'] = $GLOBALS['cfg_templeturl']; - - $rearr[] = $row; - }//loop line - $dsql->FreeResult("al"); - return $rearr; -} \ No newline at end of file diff --git a/src/templets/default/index.htm b/src/templets/default/index.htm index 8e6d3056..97638d79 100755 --- a/src/templets/default/index.htm +++ b/src/templets/default/index.htm @@ -8,6 +8,7 @@ + {dede:global.cfg_webname/}
@@ -175,19 +176,19 @@ body
- - + +
- - - + + +
+ 站点目录树站点目录树
diff --git a/src/dede/templets/content_list.htm b/src/dede/templets/content_list.htm index accfb398..80dfd68d 100755 --- a/src/dede/templets/content_list.htm +++ b/src/dede/templets/content_list.htm @@ -55,14 +55,14 @@
ID 选择文章标题文章标题 更新时间 类目 点击 HTML 权限 发布人操作操作
{dede:field.mid function=GetMemberName(@me)/} - | +
{dede:field.mediatype function="MediaType(@me,$fields['url'])"/} 更改 - | 删除