Пример #1
0
             $editCollect['sortid'][$sname] = $sid;
         }
     }
 }
 $editCollect['urlindex'] = trim($_POST['urlindex']);
 //文章目录页面
 //分卷名称
 $editCollect['volume'] = jieqi_collectptos($_POST['volume']);
 //章节名称
 $editCollect['chapter'] = jieqi_collectptos($_POST['chapter']);
 //章节序号
 $editCollect['chapterid'] = jieqi_collectptos($_POST['chapterid']);
 $editCollect['urlchapter'] = trim($_POST['urlchapter']);
 //章节内容页面
 //章节内容
 $editCollect['content'] = jieqi_collectptos($_POST['content']);
 //章节内容1
 //$editCollect['content1']=jieqi_collectptos($_POST['content1']);
 //章节内容过滤
 $editCollect['contentfilter'] = trim($_POST['contentfilter']);
 //章节内容替换
 $editCollect['contentreplace'] = trim($_POST['contentreplace']);
 //是否采集图片
 $editCollect['collectimage'] = trim($_POST['collectimage']);
 //是否允许图片处理
 $editCollect['imagetranslate'] = trim($_POST['imagetranslate']);
 //是否加水印
 $editCollect['addimagewater'] = trim($_POST['addimagewater']);
 //图片背景色
 $editCollect['imagebgcolor'] = trim($_POST['imagebgcolor']);
 //按区域清理
Пример #2
0
    jieqi_printfail($jieqiLang['article']['rule_not_exists']);
}
include_once JIEQI_ROOT_PATH . '/configs/article/site_' . $_REQUEST['config'] . '.php';
include_once $jieqiModules['article']['path'] . '/include/collectfunction.php';
switch ($_REQUEST['action']) {
    case 'new':
        $tmpary = array();
        $tmpary['title'] = trim($_POST['title']);
        //采集规则名称
        $tmpary['urlpage'] = trim($_POST['urlpage']);
        //采集地址
        $tmpary['articleid'] = jieqi_collectptos($_POST['articleid']);
        //获取文章id规则
        $tmpary['startpageid'] = trim($_POST['startpageid']);
        //第一页变量
        $tmpary['nextpageid'] = jieqi_collectptos($_POST['nextpageid']);
        //获取下一页变量
        $_POST['maxpagenum'] = trim($_POST['maxpagenum']);
        if (is_numeric($_POST['maxpagenum'])) {
            $tmpary['maxpagenum'] = intval($_POST['maxpagenum']);
        } else {
            $tmpary['maxpagenum'] = '';
        }
        $jieqiCollect['listcollect'][] = $tmpary;
        jieqi_setconfigs('site_' . $_POST['config'], 'jieqiCollect', $jieqiCollect, JIEQI_MODULE_NAME);
        break;
    case 'del':
        if (isset($_REQUEST['cid']) && isset($jieqiCollect['listcollect'][$_REQUEST['cid']])) {
            unset($jieqiCollect['listcollect'][$_REQUEST['cid']]);
            jieqi_setconfigs('site_' . $_REQUEST['config'], 'jieqiCollect', $jieqiCollect, JIEQI_MODULE_NAME);
        }