| @@ -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'; | $cache1 = DEDEDATA.'/cache/inc_catalog_base.inc'; | ||||
| if(!file_exists($cache1)) UpDateCatCache(); | if(!file_exists($cache1)) UpDateCatCache(); | ||||
| @@ -3,6 +3,8 @@ | |||||
| <head> | <head> | ||||
| <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | ||||
| <title>类别管理</title> | <title>类别管理</title> | ||||
| <link rel="stylesheet" href="../static/css/bootstrap.min.css"> | |||||
| <link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
| <link href="css/base.css" rel='stylesheet' type="text/css" /> | <link href="css/base.css" rel='stylesheet' type="text/css" /> | ||||
| <script language="javascript" src="js/context_menu.js"></script> | <script language="javascript" src="js/context_menu.js"></script> | ||||
| <script language="javascript" src="js/ieemu.js"></script> | <script language="javascript" src="js/ieemu.js"></script> | ||||
| @@ -128,12 +130,11 @@ div,dd{ margin:0px; padding:0px } | |||||
| .topcc { margin-top:5px } | .topcc { margin-top:5px } | ||||
| .suncc { margin-bottom:3px } | .suncc { margin-bottom:3px } | ||||
| dl { clear:left; margin:0px; padding:0px } | dl { clear:left; margin:0px; padding:0px } | ||||
| .sunct{ } | |||||
| #items1 | #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 } | .sunlist { width:100%; padding-left:0px; margin:0px; clear:left } | ||||
| .tdborder { | .tdborder { | ||||
| @@ -150,8 +151,8 @@ dl { clear:left; margin:0px; padding:0px } | |||||
| border-right: 1px solid #788C47; | border-right: 1px solid #788C47; | ||||
| } | } | ||||
| .tdrl { | .tdrl { | ||||
| border-left: 1px solid #788C47; | |||||
| border-right: 1px solid #788C47; | |||||
| border-left: 1px solid #FBFCE2; | |||||
| border-right: 1px solid #FBFCE2; | |||||
| } | } | ||||
| .top { cursor: pointer; } | .top { cursor: pointer; } | ||||
| body | body | ||||
| @@ -159,7 +160,7 @@ body | |||||
| padding:3px 0px 0px 0px; | padding:3px 0px 0px 0px; | ||||
| margin:auto; | margin:auto; | ||||
| text-align:center; | text-align:center; | ||||
| background-color:#9ad075; | |||||
| background-color:#FBFCE2; | |||||
| background:url(images/leftmenu_bg.gif); | background:url(images/leftmenu_bg.gif); | ||||
| } | } | ||||
| </style> | </style> | ||||
| @@ -167,7 +168,7 @@ body | |||||
| </head> | </head> | ||||
| <body target="main" onLoad="ContextMenu.intializeContextMenu()"> | <body target="main" onLoad="ContextMenu.intializeContextMenu()"> | ||||
| <form name="formjump" method="post" target="main" action=""></form> | <form name="formjump" method="post" target="main" action=""></form> | ||||
| <table width='180' border='0' align='center' cellpadding='0' cellspacing='0'> | |||||
| <table width='98%' border='0' align='center' cellpadding='0' cellspacing='0'> | |||||
| <tr> | <tr> | ||||
| <td height='32' colspan="2" align='center' style='padding-bottom:3px'> | <td height='32' colspan="2" align='center' style='padding-bottom:3px'> | ||||
| <form name="form1" target="main" action="public_guide.php"><input type='hidden' name='action' value='edit' /></form> | <form name="form1" target="main" action="public_guide.php"><input type='hidden' name='action' value='edit' /></form> | ||||
| @@ -175,19 +176,19 @@ body | |||||
| <form name="form3" target="menu" action="index_menu.php"></form> | <form name="form3" target="menu" action="index_menu.php"></form> | ||||
| <form name="form5" target="main" action="catalog_add.php"><input type="hidden" name="dopost" value="quick" /></form> | <form name="form5" target="main" action="catalog_add.php"><input type="hidden" name="dopost" value="quick" /></form> | ||||
| <form name="form6" target="main" action="content_list.php"></form> | <form name="form6" target="main" action="content_list.php"></form> | ||||
| <input type="button" name="sb5" value="批量增加栏目" class="nbt" style="width:85px" onClick="document.form5.submit();" /> | |||||
| <input type="button" name="sb2" value="栏目管理" class="nbt" style="width:75px" onClick="document.form2.submit();" /> | |||||
| <button type="button" name="sb5" class="btn btn-secondary btn-sm" onClick="document.form5.submit();">批量增加栏目</button> | |||||
| <button type="button" name="sb2" class="btn btn-secondary btn-sm" onClick="document.form2.submit();">栏目管理</button> | |||||
| <br /> | <br /> | ||||
| <input type="button" name="sb3" value="菜单" class="nbt" style="width:36px" onClick="document.form3.submit();" /> | |||||
| <input type="button" name="sb6" value="文档列表" class="nbt" style="width:60px" onClick="document.form6.submit();" /> | |||||
| <input type="button" name="sb1" value="发布向导" class="nbt" style="width:60px" onClick="document.form1.submit();" /> | |||||
| <button type="button" name="sb3" class="btn btn-secondary btn-sm mt-1" onClick="document.form3.submit();">菜单</button> | |||||
| <button type="button" name="sb6" class="btn btn-secondary btn-sm mt-1" onClick="document.form6.submit();">文档列表</button> | |||||
| <button type="button" name="sb1" class="btn btn-secondary btn-sm mt-1" onClick="document.form1.submit();">发布向导</button> | |||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| <tr> | <tr> | ||||
| <td width="20%" align='center' background='images/mtbg1.gif' style='border-left: 1px solid #74c63f;'> | |||||
| <td width="20%" align='center' background='images/mtbg1.gif' style='border-left: 1px solid #FBFCE2;'> | |||||
| <a href="#" onClick="showHide('items1')" target="_self"><img src="images/mtimg1.gif" width="21" height="24" border="0" /></a> | <a href="#" onClick="showHide('items1')" target="_self"><img src="images/mtimg1.gif" width="21" height="24" border="0" /></a> | ||||
| </td> | </td> | ||||
| <td width="80%" background='images/mtbg1.gif' style='border-right: 1px solid #74c63f;'>站点目录树</td> | |||||
| <td width="80%" background='images/mtbg1.gif' style='border-right: 1px solid #FBFCE2;'>站点目录树</td> | |||||
| </tr> | </tr> | ||||
| <tr> | <tr> | ||||
| <td colspan='2' id='items1' align='center'> | <td colspan='2' id='items1' align='center'> | ||||
| @@ -55,14 +55,14 @@ | |||||
| <tr align="center" bgcolor="#FBFCE2" height="25"> | <tr align="center" bgcolor="#FBFCE2" height="25"> | ||||
| <td width="6%">ID</td> | <td width="6%">ID</td> | ||||
| <td width="4%">选择</td> | <td width="4%">选择</td> | ||||
| <td width="28%">文章标题</td> | |||||
| <td width="25%">文章标题</td> | |||||
| <td width="10%">更新时间</td> | <td width="10%">更新时间</td> | ||||
| <td width="10%">类目</td> | <td width="10%">类目</td> | ||||
| <td width="8%">点击</td> | <td width="8%">点击</td> | ||||
| <td width="6%">HTML</td> | <td width="6%">HTML</td> | ||||
| <td width="8%">权限</td> | <td width="8%">权限</td> | ||||
| <td width="8%">发布人</td> | <td width="8%">发布人</td> | ||||
| <td width="10%">操作</td> | |||||
| <td width="12%">操作</td> | |||||
| </tr> | </tr> | ||||
| {dede:datalist} | {dede:datalist} | ||||
| <tr align='center' bgcolor="#FFFFFF" height="26" align="center" | <tr align='center' bgcolor="#FFFFFF" height="26" align="center" | ||||
| @@ -210,7 +210,7 @@ | |||||
| <td>{dede:field.click/}</td> | <td>{dede:field.click/}</td> | ||||
| <td>{dede:field.mid function=GetMemberName(@me)/}</td> | <td>{dede:field.mid function=GetMemberName(@me)/}</td> | ||||
| <td> | <td> | ||||
| <a href="javascript:editArc({dede:field.aid/})" class="btn btn-secondary btn-sm" title="编辑"> <i class="fa fa-pencil-square-o" aria-hidden="true"></i> </a> | | |||||
| <a href="javascript:editArc({dede:field.aid/})" class="btn btn-secondary btn-sm" title="编辑"> <i class="fa fa-pencil-square-o" aria-hidden="true"></i> </a> | |||||
| <a href="javascript:viewArc({dede:field.aid/})" class="btn btn-secondary btn-sm" title="预览"> <i class="fa fa-globe" aria-hidden="true"></i></a> | <a href="javascript:viewArc({dede:field.aid/})" class="btn btn-secondary btn-sm" title="预览"> <i class="fa fa-globe" aria-hidden="true"></i></a> | ||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| @@ -17,6 +17,11 @@ echo "<script language='javascript'>var curopenItem = '$openitem';</script>\r\n" | |||||
| margin: 0px; | margin: 0px; | ||||
| } | } | ||||
| .sitemu a { | |||||
| font-size: 90%; | |||||
| color: rgba(0,0,0,.65); | |||||
| } | |||||
| body { | body { | ||||
| padding: 0px; | padding: 0px; | ||||
| margin: auto; | margin: auto; | ||||
| @@ -138,7 +138,6 @@ | |||||
| <td>{dede:field.mediatype function="MediaType(@me,$fields['url'])"/}</td> | <td>{dede:field.mediatype function="MediaType(@me,$fields['url'])"/}</td> | ||||
| <td> | <td> | ||||
| <a href='media_edit.php?aid={dede:field.aid/}&dopost=edit' class="btn btn-secondary btn-sm"><i class="fa fa-pencil-square-o" aria-hidden="true"></i> 更改</a> | <a href='media_edit.php?aid={dede:field.aid/}&dopost=edit' class="btn btn-secondary btn-sm"><i class="fa fa-pencil-square-o" aria-hidden="true"></i> 更改</a> | ||||
| | | |||||
| <a href='media_edit.php?aid={dede:field.aid/}&dopost=del' class="btn btn-secondary btn-sm"><i class="fa fa-trash" aria-hidden="true"></i> 删除</a> | <a href='media_edit.php?aid={dede:field.aid/}&dopost=del' class="btn btn-secondary btn-sm"><i class="fa fa-trash" aria-hidden="true"></i> 删除</a> | ||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| @@ -1,66 +0,0 @@ | |||||
| <?php | |||||
| if(!defined('DEDEINC')) exit('Request Error!'); | |||||
| /** | |||||
| * 动态模板ask标签 | |||||
| * | |||||
| * @version $Id: plus_ask.php 1 13:58 2010年7月5日Z tianya $ | |||||
| * @package DedeCMS.Tpllib | |||||
| * @copyright Copyright (c) 2007 - 2020, DesDev, Inc. | |||||
| * @license http://help.dedecms.com/usersguide/license.html | |||||
| * @link http://www.dedecms.com | |||||
| */ | |||||
| function plus_ask(&$atts,&$refObj,&$fields) | |||||
| { | |||||
| global $dsql,$_vars; | |||||
| $attlist = "titlelen=40,row=8,typeid=0,sort="; | |||||
| FillAtts($atts,$attlist); | |||||
| FillFields($atts,$fields,$refObj); | |||||
| extract($atts, EXTR_OVERWRITE); | |||||
| $wheresql = ' 1 '; | |||||
| if($sort=='') | |||||
| { | |||||
| $orderby = 'ORDER BY id DESC'; | |||||
| } | |||||
| else if($sort=='commend') | |||||
| { | |||||
| $wheresql .= ' And digest=1'; | |||||
| $orderby = ' ORDER BY dateline DESC'; | |||||
| } | |||||
| else if($sort=='ok') | |||||
| { | |||||
| $wheresql .= ' And status=1 '; | |||||
| $orderby = ' ORDER BY solvetime DESC'; | |||||
| } | |||||
| else if($sort=='expiredtime') | |||||
| { | |||||
| $wheresql .= ' And status=0 '; | |||||
| $orderby = ' ORDER BY expiredtime ASC, dateline DESC'; | |||||
| } | |||||
| else if($sort=='reward') | |||||
| { | |||||
| $wheresql .= ' And status=0 '; | |||||
| $orderby = ' ORDER BY reward DESC'; | |||||
| } | |||||
| else | |||||
| { | |||||
| $wheresql .= ' And status=0 '; | |||||
| $orderby = ' ORDER BY disorder DESC, dateline DESC'; | |||||
| } | |||||
| $query = "SELECT id, tid, tidname, tid2, tid2name, title FROM `#@__ask` WHERE $wheresql $orderby LIMIT $row"; | |||||
| $dsql->SetQuery($query); | |||||
| $dsql->Execute('an'); | |||||
| $rearr = array(); | |||||
| while($row = $dsql->GetArray('an')) | |||||
| { | |||||
| if($row['tid2'] != 0) | |||||
| $row['typelink'] = $row['typedata'] = " <a href='browser.php?tid2={$row['tid2']}'>{$row['tid2name']}</a>\r\n"; | |||||
| else | |||||
| $row['typelink'] = $row['typedata'] = " <a href='browser.php?tid={$row['tid']}'>{$row['tidname']}</a>\r\n"; | |||||
| $row['title'] = cn_substr($row['title'],$titlelen); | |||||
| $rearr[] = $row; | |||||
| } | |||||
| return $rearr; | |||||
| } | |||||
| @@ -1,15 +0,0 @@ | |||||
| <?php if(!defined('DEDEINC')) exit("Request Error!"); | |||||
| /** | |||||
| * 动态模板memberlist标签 | |||||
| * | |||||
| * @version $Id: plus_newvisitor.php 1 13:58 2010年7月5日Z tianya $ | |||||
| * @package DedeCMS.Tpllib | |||||
| * @copyright Copyright (c) 2007 - 2020, DesDev, Inc. | |||||
| * @license http://help.dedecms.com/usersguide/license.html | |||||
| * @link http://www.dedecms.com | |||||
| */ | |||||
| function plus_newvisitor(&$atts,&$refObj,&$fields) | |||||
| { | |||||
| return ""; | |||||
| } | |||||
| @@ -1,82 +0,0 @@ | |||||
| <?php if(!defined('DEDEINC')) exit('Request Error!'); | |||||
| /** | |||||
| * 动态模板spacenewart标签 | |||||
| * | |||||
| * @version $Id: plus_spacenewart.php 1 13:58 2010年7月5日Z tianya $ | |||||
| * @package DedeCMS.Tpllib | |||||
| * @copyright Copyright (c) 2007 - 2020, DesDev, Inc. | |||||
| * @license http://help.dedecms.com/usersguide/license.html | |||||
| * @link http://www.dedecms.com | |||||
| */ | |||||
| function plus_spacenewart(&$atts,&$refObj,&$fields) | |||||
| { | |||||
| global $dsql,$_vars; | |||||
| $attlist = "channel=1,titlelen=30,infolen=200,row=8,imgwidth=120,imgheight=90"; | |||||
| FillAtts($atts,$attlist); | |||||
| FillFields($atts,$fields,$refObj); | |||||
| extract($atts, EXTR_OVERWRITE); | |||||
| $query = "Select arc.*,mt.mtypename,tp.typedir,tp.typename,tp.isdefault,tp.defaultname,tp.namerule, | |||||
| tp.namerule2,tp.ispart,tp.moresite,tp.siteurl,tp.sitepath | |||||
| from `#@__archives` arc | |||||
| left join `#@__arctype` tp on arc.typeid=tp.id | |||||
| left join `#@__mtypes` mt on mt.mtypeid=arc.mtype | |||||
| where arc.mid='{$_vars['mid']}' and arc.channel=$channel | |||||
| order by id desc limit 0,$row"; | |||||
| $dsql->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'] = "<a href='".$row['typeurl']."'>".$row['typename']."</a>"; | |||||
| $row['image'] = "<img src='".$row['picname']."' border='0' width='$imgwidth' height='$imgheight' alt='".preg_replace("#['><]#", "", $row['title'])."'>"; | |||||
| $row['imglink'] = "<a href='".$row['filename']."'>".$row['image']."</a>"; | |||||
| $row['fulltitle'] = $row['title']; | |||||
| $row['title'] = cn_substr($row['title'],$titlelen); | |||||
| if($row['color']!='') { | |||||
| $row['title'] = "<font color='".$row['color']."'>".$row['title']."</font>"; | |||||
| } | |||||
| if(preg_match('#b#', $row['flag'])) | |||||
| { | |||||
| $row['title'] = "<strong>".$row['title']."</strong>"; | |||||
| } | |||||
| //$row['title'] = "<b>".$row['title']."</b>"; | |||||
| $row['textlink'] = "<a href='".$row['filename']."'>".$row['title']."</a>"; | |||||
| $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; | |||||
| } | |||||
| @@ -8,6 +8,7 @@ | |||||
| <link href="{dede:global.cfg_cmsurl/}/static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | <link href="{dede:global.cfg_cmsurl/}/static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | ||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/css/dede.css"> | <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/css/dede.css"> | ||||
| <link rel="shortcut icon" href="{dede:global.cfg_cmsurl/}/static/img/favicon.png"> | <link rel="shortcut icon" href="{dede:global.cfg_cmsurl/}/static/img/favicon.png"> | ||||
| <script src="{dede:global.cfg_cmsurl/}/static/js/jquery.min.js"></script> | |||||
| <title>{dede:global.cfg_webname/}</title> | <title>{dede:global.cfg_webname/}</title> | ||||
| <meta name="keywords" content="{dede:global.cfg_keywords/}"> | <meta name="keywords" content="{dede:global.cfg_keywords/}"> | ||||
| <meta name="description" content="{dede:global.cfg_description/}"> | <meta name="description" content="{dede:global.cfg_description/}"> | ||||