📄 collect.inc.php
字号:
<?php
defined('IN_PHPCMS') or exit('Access Denied');
require PHPCMS_ROOT.'/include/tree.class.php';
$submenu = array
(
array($LANG['add_job'],"?mod=".$mod."&file=jobmgr&action=add"),
array($LANG['load_job'], "?mod=".$mod."&file=jobmgr&action=jobin"),
array($LANG['site_manage'], "?mod=".$mod."&file=sitemgr&action=manage"),
array($LANG['job_manage'], "?mod=".$mod."&file=jobmgr&action=manage")
);
$menu = adminmenu($LANG['spider_operation_manage'],$submenu);
$tree=new tree;
$action = $action ? $action : 'manage';
switch($action)
{
case 'collecturl':
include(PHPCMS_ROOT."/include/htmlframe.inc.php");
loadMtir();
if(empty($jobid)) showmessage($LANG['illegal_parameters']);
require MOD_ROOT."/admin/mainspider.inc.php";
$ms=new MainSpider();
$ms->JobId=$jobid;
$ms->mod=$mod;
$ms->Init();
if(!isset($auto)&&$auto!=true) $auto=false;
else if($auto==1) $auto=true;
if(!isset($totalurlcount)) $totalurlcount=0;
if(isset($singleurl))
{
$totalurlnorepeatcount = isset($totalurlnorepeatcount) ? $totalurlnorepeatcount : 0;
$currenturl=$ms->SpiderAllUrlById($currenturlid,$auto,$totalurlcount,$totalurlnorepeatcount);
include admintpl('single_url');
}
else
include admintpl('collect_url');
break;
case 'outcontent':
$CATEGORY = cache_read('categorys_'.$channelid.'.php');
$CHA = cache_read('channel_'.$channelid.'.php');
if(empty($jobid)) showmessage($LANG['illegal_parameters']);
include (PHPCMS_ROOT."/".$mod."/rules/".$jobid.".php");
include (PHPCMS_ROOT."/".$mod."/admin/job_parse.class.php");
$CJob =new Job_Parse();
$CJob->mod = $mod;
$CJob->GetJobInfo($jobid);
if($step==1)
{
$js="onchange='window.location=\"?mod=$mod&file=collect&action=outcontent&jobid=$jobid&step=1&channelid=\"+this.value'";
$channel_select = channel_select('article','channelid',$LANG['select_channel'],$channelid,$js);
$cat_select = category_select('catid',$LANG['select_category'],0,'');
include admintpl('content_out_step1');
break;
}
else if($step==2)
{
if(isset($resetdefault) && $resetdefault==1) //鐢ㄦ埛瀵煎嚭璁剧疆 鎭㈠
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -