@@ -10,10 +10,11 @@ | |||
*/ | |||
require_once(dirname(__FILE__)."/config.php"); | |||
CheckPurview('sys_MakeHtml'); | |||
require_once(DEDEDATA."/cache/inc_catalog_base.inc"); | |||
require_once(DEDEINC."/channelunit.func.php"); | |||
if (!isset($upnext)) $upnext = 1; | |||
if (empty($gotype)) $gotype = ''; | |||
if (empty($gotype)) UpDateCatCache(); | |||
require_once(DEDEDATA."/cache/inc_catalog_base.inc"); | |||
if (empty($pageno)) $pageno = 0; | |||
if (empty($mkpage)) $mkpage = 1; | |||
if (empty($typeid)) $typeid = 0; | |||
@@ -34,6 +35,7 @@ if ($gotype == '' || $gotype == 'mkallct') { | |||
$idArray[] = $typeid; | |||
} | |||
} | |||
//一键更新带缓存的情况 | |||
else if ($gotype == 'mkall') { | |||
$uppage = 1; | |||
@@ -41,6 +43,10 @@ else if ($gotype == 'mkall') { | |||
$idArray = array(); | |||
if (file_exists($mkcachefile)) require_once($mkcachefile); | |||
} | |||
if (!$idArray) { | |||
ShowMsg("尚未添加栏目,请先添加栏目再进行更新", "javascript:;"); | |||
exit; | |||
} | |||
//当前更新栏目id | |||
$totalpage = count($idArray); | |||
if (isset($idArray[$pageno])) { | |||
@@ -271,6 +271,8 @@ CREATE TABLE `#@__arctype` ( | |||
`crossid` text, | |||
`content` text, | |||
`smalltypes` text, | |||
`apienabled` tinyint unsigned DEFAULT '0', | |||
`apikey` varchar(64) DEFAULT NULL, | |||
PRIMARY KEY (`id`), | |||
KEY `reid` (`reid`,`isdefault`,`channeltype`,`ispart`,`corank`,`topid`,`ishidden`), | |||
KEY `sortrank` (`sortrank`) | |||
@@ -67,17 +67,7 @@ | |||
</div> | |||
</div> | |||
<div class="col-md-3"> | |||
<div class="pb-3"> | |||
<div class="item-hot bg-white shadow-sm rounded p-3"> | |||
<form class="search" name="formsearch" action="{dede:global.cfg_cmsurl/}/apps/search.php"> | |||
<input type="hidden" name="kwtype" value="0"> | |||
<div class="input-group"> | |||
<input name="q" type="text" class="form-control" placeholder="请输入..."> | |||
<button type="submit" id="validateimg" class="btn btn-success"><i class="fa fa-search"></i></button> | |||
</div> | |||
</form> | |||
</div> | |||
</div> | |||
<div class="pb-3">{dede:include comment='搜索' filename='widget_search.htm'/}</div> | |||
<div class="py-3">{dede:include comment='推荐栏目' filename='widget_menu.htm'/}</div> | |||
<div class="pt-3">{dede:include comment='热门文档' filename='widget_hot.htm'/}</div> | |||
</div> | |||
@@ -80,17 +80,7 @@ | |||
</div> | |||
</div> | |||
<div class="col-md-3"> | |||
<div class="pb-3"> | |||
<div class="item-hot bg-white shadow-sm rounded p-3"> | |||
<form class="search" name="formsearch" action="{dede:global.cfg_cmsurl/}/apps/search.php"> | |||
<input type="hidden" name="kwtype" value="0"> | |||
<div class="input-group"> | |||
<input name="q" type="text" class="form-control" placeholder="请输入..."> | |||
<button type="submit" id="validateimg" class="btn btn-success"><i class="fa fa-search"></i></button> | |||
</div> | |||
</form> | |||
</div> | |||
</div> | |||
<div class="pb-3">{dede:include comment='搜索' filename='widget_search.htm'/}</div> | |||
<div class="py-3">{dede:include comment='推荐栏目' filename='widget_menu.htm'/}</div> | |||
<div class="pt-3">{dede:include comment='热门文档' filename='widget_hot.htm'/}</div> | |||
</div> | |||
@@ -81,17 +81,7 @@ | |||
</div> | |||
</div> | |||
<div class="col-md-3"> | |||
<div class="pb-3"> | |||
<div class="item-hot bg-white shadow-sm rounded p-3"> | |||
<form class="search" name="formsearch" action="{dede:global.cfg_cmsurl/}/apps/search.php"> | |||
<input type="hidden" name="kwtype" value="0"> | |||
<div class="input-group"> | |||
<input name="q" type="text" class="form-control" placeholder="请输入..."> | |||
<button type="submit" id="validateimg" class="btn btn-success"><i class="fa fa-search"></i></button> | |||
</div> | |||
</form> | |||
</div> | |||
</div> | |||
<div class="pb-3">{dede:include comment='搜索' filename='widget_search.htm'/}</div> | |||
<div class="py-3">{dede:include comment='推荐栏目' filename='widget_menu.htm'/}</div> | |||
<div class="pt-3">{dede:include comment='热门文档' filename='widget_hot.htm'/}</div> | |||
</div> | |||
@@ -95,17 +95,7 @@ | |||
</div> | |||
</div> | |||
<div class="col-md-3"> | |||
<div class="pb-3"> | |||
<div class="item-hot bg-white shadow-sm rounded p-3"> | |||
<form class="search" name="formsearch" action="{dede:global.cfg_cmsurl/}/apps/search.php"> | |||
<input type="hidden" name="kwtype" value="0"> | |||
<div class="input-group"> | |||
<input name="q" type="text" class="form-control" placeholder="请输入..."> | |||
<button type="submit" id="validateimg" class="btn btn-success"><i class="fa fa-search"></i></button> | |||
</div> | |||
</form> | |||
</div> | |||
</div> | |||
<div class="pb-3">{dede:include comment='搜索' filename='widget_search.htm'/}</div> | |||
<div class="py-3">{dede:include comment='推荐栏目' filename='widget_menu.htm'/}</div> | |||
<div class="pt-3">{dede:include comment='热门文档' filename='widget_hot.htm'/}</div> | |||
</div> | |||
@@ -74,17 +74,7 @@ | |||
</div> | |||
</div> | |||
<div class="col-md-3"> | |||
<div class="pb-3"> | |||
<div class="item-hot bg-white shadow-sm rounded p-3"> | |||
<form class="search" name="formsearch" action="{dede:global.cfg_cmsurl/}/apps/search.php"> | |||
<input type="hidden" name="kwtype" value="0"> | |||
<div class="input-group"> | |||
<input name="q" type="text" class="form-control" placeholder="请输入..."> | |||
<button type="submit" id="validateimg" class="btn btn-success"><i class="fa fa-search"></i></button> | |||
</div> | |||
</form> | |||
</div> | |||
</div> | |||
<div class="pb-3">{dede:include comment='搜索' filename='widget_search.htm'/}</div> | |||
<div class="py-3">{dede:include comment='推荐栏目' filename='widget_menu.htm'/}</div> | |||
<div class="pt-3">{dede:include comment='热门文档' filename='widget_hot.htm'/}</div> | |||
</div> | |||
@@ -82,17 +82,7 @@ | |||
</div> | |||
</div> | |||
<div class="col-md-3"> | |||
<div class="pb-3"> | |||
<div class="item-hot bg-white shadow-sm rounded p-3"> | |||
<form class="search" name="formsearch" action="{dede:global.cfg_cmsurl/}/apps/search.php"> | |||
<input type="hidden" name="kwtype" value="0"> | |||
<div class="input-group"> | |||
<input name="q" type="text" class="form-control" placeholder="请输入..."> | |||
<button type="submit" id="validateimg" class="btn btn-success"><i class="fa fa-search"></i></button> | |||
</div> | |||
</form> | |||
</div> | |||
</div> | |||
<div class="pb-3">{dede:include comment='搜索' filename='widget_search.htm'/}</div> | |||
<div class="py-3">{dede:include comment='推荐栏目' filename='widget_menu.htm'/}</div> | |||
<div class="pt-3">{dede:include comment='热门文档' filename='widget_hot.htm'/}</div> | |||
</div> | |||
@@ -47,17 +47,7 @@ | |||
</div> | |||
</div> | |||
<div class="col-md-3"> | |||
<div class="pb-3"> | |||
<div class="item-hot bg-white shadow-sm rounded p-3"> | |||
<form class="search" name="formsearch" action="{dede:global.cfg_cmsurl/}/apps/search.php"> | |||
<input type="hidden" name="kwtype" value="0"> | |||
<div class="input-group"> | |||
<input name="q" type="text" class="form-control" placeholder="请输入..."> | |||
<button type="submit" id="validateimg" class="btn btn-success"><i class="fa fa-search"></i></button> | |||
</div> | |||
</form> | |||
</div> | |||
</div> | |||
<div class="pb-3">{dede:include comment='搜索' filename='widget_search.htm'/}</div> | |||
<div class="py-3">{dede:include comment='推荐栏目' filename='widget_menu.htm'/}</div> | |||
<div class="pt-3">{dede:include comment='热门文档' filename='widget_hot.htm'/}</div> | |||
</div> | |||
@@ -43,17 +43,7 @@ | |||
</div> | |||
</div> | |||
<div class="col-md-3"> | |||
<div class="pb-3"> | |||
<div class="item-hot bg-white shadow-sm rounded p-3"> | |||
<form class="search" name="formsearch" action="{dede:global.cfg_cmsurl/}/apps/search.php"> | |||
<input type="hidden" name="kwtype" value="0"> | |||
<div class="input-group"> | |||
<input name="q" type="text" class="form-control" placeholder="请输入..."> | |||
<button type="submit" id="validateimg" class="btn btn-success"><i class="fa fa-search"></i></button> | |||
</div> | |||
</form> | |||
</div> | |||
</div> | |||
<div class="pb-3">{dede:include comment='搜索' filename='widget_search.htm'/}</div> | |||
<div class="py-3">{dede:include comment='推荐栏目' filename='widget_menu.htm'/}</div> | |||
<div class="pt-3">{dede:include comment='热门文档' filename='widget_hot.htm'/}</div> | |||
</div> | |||
@@ -43,17 +43,7 @@ | |||
</div> | |||
</div> | |||
<div class="col-md-3"> | |||
<div class="pb-3"> | |||
<div class="item-hot bg-white shadow-sm rounded p-3"> | |||
<form class="search" name="formsearch" action="{dede:global.cfg_cmsurl/}/apps/search.php"> | |||
<input type="hidden" name="kwtype" value="0"> | |||
<div class="input-group"> | |||
<input name="q" type="text" class="form-control" placeholder="请输入..."> | |||
<button type="submit" id="validateimg" class="btn btn-success"><i class="fa fa-search"></i></button> | |||
</div> | |||
</form> | |||
</div> | |||
</div> | |||
<div class="pb-3">{dede:include comment='搜索' filename='widget_search.htm'/}</div> | |||
<div class="py-3">{dede:include comment='推荐栏目' filename='widget_menu.htm'/}</div> | |||
<div class="pt-3">{dede:include comment='热门文档' filename='widget_hot.htm'/}</div> | |||
</div> | |||
@@ -43,17 +43,7 @@ | |||
</div> | |||
</div> | |||
<div class="col-md-3"> | |||
<div class="pb-3"> | |||
<div class="item-hot bg-white shadow-sm rounded p-3"> | |||
<form class="search" name="formsearch" action="{dede:global.cfg_cmsurl/}/apps/search.php"> | |||
<input type="hidden" name="kwtype" value="0"> | |||
<div class="input-group"> | |||
<input name="q" type="text" class="form-control" placeholder="请输入..."> | |||
<button type="submit" id="validateimg" class="btn btn-success"><i class="fa fa-search"></i></button> | |||
</div> | |||
</form> | |||
</div> | |||
</div> | |||
<div class="pb-3">{dede:include comment='搜索' filename='widget_search.htm'/}</div> | |||
<div class="py-3">{dede:include comment='推荐栏目' filename='widget_menu.htm'/}</div> | |||
<div class="pt-3">{dede:include comment='热门文档' filename='widget_hot.htm'/}</div> | |||
</div> | |||
@@ -43,17 +43,7 @@ | |||
</div> | |||
</div> | |||
<div class="col-md-3"> | |||
<div class="pb-3"> | |||
<div class="item-hot bg-white shadow-sm rounded p-3"> | |||
<form class="search" name="formsearch" action="{dede:global.cfg_cmsurl/}/apps/search.php"> | |||
<input type="hidden" name="kwtype" value="0"> | |||
<div class="input-group"> | |||
<input name="q" type="text" class="form-control" placeholder="请输入..."> | |||
<button type="submit" id="validateimg" class="btn btn-success"><i class="fa fa-search"></i></button> | |||
</div> | |||
</form> | |||
</div> | |||
</div> | |||
<div class="pb-3">{dede:include comment='搜索' filename='widget_search.htm'/}</div> | |||
<div class="py-3">{dede:include comment='推荐栏目' filename='widget_menu.htm'/}</div> | |||
<div class="pt-3">{dede:include comment='热门文档' filename='widget_hot.htm'/}</div> | |||
</div> | |||
@@ -47,17 +47,7 @@ | |||
<ul class="pagination">{dede:pagelist listitem='info,index,end,pre,next,pageno' listsize='1'/}</ul> | |||
</div> | |||
<div class="col-md-3"> | |||
<div class="pb-3"> | |||
<div class="item-hot bg-white shadow-sm rounded p-3"> | |||
<form class="search" name="formsearch" action="{dede:global.cfg_cmsurl/}/apps/search.php"> | |||
<input type="hidden" name="kwtype" value="0"> | |||
<div class="input-group"> | |||
<input name="q" type="text" class="form-control" placeholder="请输入..."> | |||
<button type="submit" id="validateimg" class="btn btn-success"><i class="fa fa-search"></i></button> | |||
</div> | |||
</form> | |||
</div> | |||
</div> | |||
<div class="pb-3">{dede:include comment='搜索' filename='widget_search.htm'/}</div> | |||
<div class="py-3">{dede:include comment='推荐栏目' filename='widget_menu.htm'/}</div> | |||
<div class="pt-3">{dede:include comment='热门文档' filename='widget_hot.htm'/}</div> | |||
</div> | |||
@@ -47,17 +47,7 @@ | |||
<ul class="pagination">{dede:pagelist listitem='info,index,end,pre,next,pageno' listsize='1'/}</ul> | |||
</div> | |||
<div class="col-md-3"> | |||
<div class="pb-3"> | |||
<div class="item-hot bg-white shadow-sm rounded p-3"> | |||
<form class="search" name="formsearch" action="{dede:global.cfg_cmsurl/}/apps/search.php"> | |||
<input type="hidden" name="kwtype" value="0"> | |||
<div class="input-group"> | |||
<input name="q" type="text" class="form-control" placeholder="请输入..."> | |||
<button type="submit" id="validateimg" class="btn btn-success"><i class="fa fa-search"></i></button> | |||
</div> | |||
</form> | |||
</div> | |||
</div> | |||
<div class="pb-3">{dede:include comment='搜索' filename='widget_search.htm'/}</div> | |||
<div class="py-3">{dede:include comment='推荐栏目' filename='widget_menu.htm'/}</div> | |||
<div class="pt-3">{dede:include comment='热门文档' filename='widget_hot.htm'/}</div> | |||
</div> | |||
@@ -47,17 +47,7 @@ | |||
<ul class="pagination">{dede:pagelist listitem='info,index,end,pre,next,pageno' listsize='1'/}</ul> | |||
</div> | |||
<div class="col-md-3"> | |||
<div class="pb-3"> | |||
<div class="item-hot bg-white shadow-sm rounded p-3"> | |||
<form class="search" name="formsearch" action="{dede:global.cfg_cmsurl/}/apps/search.php"> | |||
<input type="hidden" name="kwtype" value="0"> | |||
<div class="input-group"> | |||
<input name="q" type="text" class="form-control" placeholder="请输入..."> | |||
<button type="submit" id="validateimg" class="btn btn-success"><i class="fa fa-search"></i></button> | |||
</div> | |||
</form> | |||
</div> | |||
</div> | |||
<div class="pb-3">{dede:include comment='搜索' filename='widget_search.htm'/}</div> | |||
<div class="py-3">{dede:include comment='推荐栏目' filename='widget_menu.htm'/}</div> | |||
<div class="pt-3">{dede:include comment='热门文档' filename='widget_hot.htm'/}</div> | |||
</div> | |||
@@ -38,17 +38,7 @@ | |||
<ul class="pagination">{dede:pagelist listitem='info,index,end,pre,next,pageno' listsize='1'/}</ul> | |||
</div> | |||
<div class="col-md-3"> | |||
<div class="pb-3"> | |||
<div class="item-hot bg-white shadow-sm rounded p-3"> | |||
<form class="search" name="formsearch" action="{dede:global.cfg_cmsurl/}/apps/search.php"> | |||
<input type="hidden" name="kwtype" value="0"> | |||
<div class="input-group"> | |||
<input name="q" type="text" class="form-control" placeholder="请输入..."> | |||
<button type="submit" class="btn"><i class="fa fa-search"></i></button> | |||
</div> | |||
</form> | |||
</div> | |||
</div> | |||
<div class="pb-3">{dede:include comment='搜索' filename='widget_search.htm'/}</div> | |||
<div class="py-3">{dede:include comment='推荐栏目' filename='widget_menu.htm'/}</div> | |||
<div class="pt-3">{dede:include comment='热门文档' filename='widget_hot.htm'/}</div> | |||
</div> | |||
@@ -48,17 +48,7 @@ | |||
<ul class="pagination">{dede:pagelist listitem='info,index,end,pre,next,pageno' listsize='1'/}</ul> | |||
</div> | |||
<div class="col-md-3"> | |||
<div class="pb-3"> | |||
<div class="item-hot bg-white shadow-sm rounded p-3"> | |||
<form class="search" name="formsearch" action="{dede:global.cfg_cmsurl/}/apps/search.php"> | |||
<input type="hidden" name="kwtype" value="0"> | |||
<div class="input-group"> | |||
<input name="q" type="text" class="form-control" placeholder="请输入..."> | |||
<button type="submit" id="validateimg" class="btn btn-success"><i class="fa fa-search"></i></button> | |||
</div> | |||
</form> | |||
</div> | |||
</div> | |||
<div class="pb-3">{dede:include comment='搜索' filename='widget_search.htm'/}</div> | |||
<div class="py-3">{dede:include comment='推荐栏目' filename='widget_menu.htm'/}</div> | |||
<div class="pt-3">{dede:include comment='热门文档' filename='widget_hot.htm'/}</div> | |||
</div> | |||
@@ -58,17 +58,7 @@ | |||
<ul class="pagination">{dede:pagelist listitem='info,index,end,pre,next,pageno' listsize='1'/}</ul> | |||
</div> | |||
<div class="col-md-3"> | |||
<div class="pb-3"> | |||
<div class="item-hot bg-white shadow-sm rounded p-3"> | |||
<form class="search" name="formsearch" action="{dede:global.cfg_cmsurl/}/apps/search.php"> | |||
<input type="hidden" name="kwtype" value="0"> | |||
<div class="input-group"> | |||
<input name="q" type="text" class="form-control" placeholder="请输入..."> | |||
<button type="submit" id="validateimg" class="btn btn-success"><i class="fa fa-search"></i></button> | |||
</div> | |||
</form> | |||
</div> | |||
</div> | |||
<div class="pb-3">{dede:include comment='搜索' filename='widget_search.htm'/}</div> | |||
<div class="py-3"> | |||
<div class="list-info-search bg-white shadow-sm rounded p-3"> | |||
<h2 class="mb-3">信息搜索</h2> | |||
@@ -51,17 +51,7 @@ | |||
<ul class="pagination">{dede:pagelist listitem='info,index,end,pre,next,pageno' listsize='1'/}</ul> | |||
</div> | |||
<div class="col-md-3"> | |||
<div class="pb-3"> | |||
<div class="item-hot bg-white shadow-sm rounded p-3"> | |||
<form class="search" name="formsearch" action="{dede:global.cfg_cmsurl/}/apps/search.php"> | |||
<input type="hidden" name="kwtype" value="0"> | |||
<div class="input-group"> | |||
<input name="q" type="text" class="form-control" placeholder="请输入..."> | |||
<button type="submit" id="validateimg" class="btn btn-success"><i class="fa fa-search"></i></button> | |||
</div> | |||
</form> | |||
</div> | |||
</div> | |||
<div class="pb-3">{dede:include comment='搜索' filename='widget_search.htm'/}</div> | |||
<div class="py-3">{dede:include comment='推荐栏目' filename='widget_menu.htm'/}</div> | |||
<div class="pt-3">{dede:include comment='热门文档' filename='widget_hot.htm'/}</div> | |||
</div> | |||
@@ -47,17 +47,7 @@ | |||
<ul class="pagination">{dede:pagelist listitem='info,index,end,pre,next,pageno' listsize='1'/}</ul> | |||
</div> | |||
<div class="col-md-3"> | |||
<div class="pb-3"> | |||
<div class="item-hot bg-white shadow-sm rounded p-3"> | |||
<form class="search" name="formsearch" action="{dede:global.cfg_cmsurl/}/apps/search.php"> | |||
<input type="hidden" name="kwtype" value="0"> | |||
<div class="input-group"> | |||
<input name="q" type="text" class="form-control" placeholder="请输入..."> | |||
<button type="submit" id="validateimg" class="btn btn-success"><i class="fa fa-search"></i></button> | |||
</div> | |||
</form> | |||
</div> | |||
</div> | |||
<div class="pb-3">{dede:include comment='搜索' filename='widget_search.htm'/}</div> | |||
<div class="py-3">{dede:include comment='推荐栏目' filename='widget_menu.htm'/}</div> | |||
<div class="pt-3">{dede:include comment='热门文档' filename='widget_hot.htm'/}</div> | |||
</div> | |||
@@ -49,15 +49,7 @@ | |||
</div> | |||
<div class="col-md-3"> | |||
<div class="pb-3"> | |||
<div class="item-hot bg-white shadow-sm rounded p-3"> | |||
<form class="search" name="formsearch" action="{dede:global.cfg_cmsurl/}/apps/search.php"> | |||
<input type="hidden" name="kwtype" value="0"> | |||
<div class="input-group"> | |||
<input name="q" type="text" class="form-control" placeholder="请输入..."> | |||
<button type="submit" id="validateimg" class="btn btn-success"><i class="fa fa-search"></i></button> | |||
</div> | |||
</form> | |||
</div> | |||
<div class="pb-3">{dede:include comment='搜索' filename='widget_search.htm'/}</div> | |||
</div> | |||
</div> | |||
</div> | |||
@@ -0,0 +1,9 @@ | |||
<div class="item-hot bg-white shadow-sm rounded p-3"> | |||
<form class="search" name="formsearch" action="{dede:global.cfg_cmsurl/}/apps/search.php"> | |||
<input type="hidden" name="kwtype" value="0"> | |||
<div class="input-group"> | |||
<input name="q" type="text" class="form-control" placeholder="请输入..."> | |||
<button type="submit" id="validateimg" class="btn btn-success"><i class="fa fa-search"></i></button> | |||
</div> | |||
</form> | |||
</div> |