if ($sourcetype == 'rss' && ($refurl = '')) { $refurl = $rssurl; } $refurl = stripslashes($refurl); $errmsg = ''; //测试规则 if ($sourcetype == 'rss') { $links = GetRssLinks(stripslashes($rssurl)); $demopage = $rssurl; } else { $links = array(); $lists = GetUrlFromListRule($regxurl, stripslashes($addurls), $startid, $endid, $addv, $usemore, stripslashes($batchrule)); if (isset($lists[0][0])) { $demopage = $lists[0][0]; $dc = new DedeCollection(); $dc->LoadListConfig($tmplistconfig); $listurl = ''; $links = $dc->Testlists($listurl); $errmsg = $dc->errString; } else { $demopage = '没有匹配到适合的列表页!'; } } require_once DEDEADMIN . "/templets/co_add_step1_test.htm"; exit; } else { $row = $dsql->GetOne("Select nid,channelid From `#@__co_note` where isok=0 And notename like '{$notename}' "); if (!is_array($row)) { $uptime = time(); $listconfig = urldecode($listconfig); $inquery = " INSERT INTO `#@__co_note`(`channelid`,`notename`,`sourcelang`,`uptime`,`cotime`,`pnum`,`isok`,`usemore`,`listconfig`,`itemconfig`)\r\n VALUES ('{$channelid}','{$notename}','{$sourcelang}','{$uptime}','0','0','0','{$usemore}','{$listconfig}',''); ";