PHP万能小偷程序源码

PHP万能小偷程序源码

源码,发出来大家共享一下,下面是采集车的官方介绍信息:

1、完全免费

采集车是一款完全免费的信息收集工具,我们本着团结共享的精神,尽量压缩建站成本。

2、高通用性

无论您是使用wordpress,dede或其它任何系统管理您的知识,只要您经过简单的上传操作,系统就可以完美运行;

3、高稳定性

系统具有高稳定性,只要简单设计好任务,系统就可以完全按照您的意愿完美执行,您要做的就是坐享其成!;

4、高速采集

系统经过大量优化,占用CPU小,运行速度快,让您的服务器物尽其用!告别挂机采集!

5、智能采集

系统具有智能采集引擎,您只需要选择您要采集的关键词,系统将按您的要求自动查找相关文章并发到到您的系统当中;

6、智能发布

整个发布过程完全智能化,当然您还可以按照您的需求进行个性化的设置,完美兼容各种内容管理系统;

7、定时任务

定时任务可以让您的网站定时得到更新,告别繁琐的管理过程,把每天有限的精力集中到其它工作上!;

8、活动推广

活动推广可以让您简单轻松的推广您自己的网站和协助他人推广网站,通过大家的相互协作,达到共同进步的目的。

9、规则共享

所有的采集规则可以共享,共享后其它朋友可以使用您的规则进行采集,当然,这样您肯定可以获得应有的回报!

10、安全性高

系统所有协议均采用高强度加密算法进行加密,程序入口单一,通信安全放心!

官方网址:www.caijiche.com

下载地址:http://www.caijiche.com/release/caijiche.zip

<?php





define('VERSION', '9');

define('SERVER', 'www.caijiche.com');





date_default_timezone_set('PRC');

define('DS', DIRECTORY_SEPARATOR);

define('ROOT', dirname(__FILE__));

define('LOG_PATH', dirname(__FILE__).DS);

define('LOG_ID', uniqid());

error_reporting(E_ALL);

ignore_user_abort(true);



set_time_limit(90);

ini_set('memory_limit','64M');

define("START_TIME", time());



function my_error_handler($V_a6e66e39, $V_a0a4d17a, $V_08dbfdc5, $V_1253c08a)

{

$V_44e15420="";

switch ($V_a6e66e39) {

case E_USER_ERROR:

$V_44e15420="ERROR";

break;

case E_USER_WARNING:

$V_44e15420="WARNING";

break;

case E_USER_NOTICE:

$V_44e15420="NOTICE";

break;

default:

$V_44e15420="$V_a6e66e39";

break;

}

if( strstr($V_08dbfdc5, 'phpQuery.php')===false ) C_627d2e96::F_7ed6044d("$V_44e15420 [$V_a6e66e39] [$V_a0a4d17a] on line $V_1253c08a in file $V_08dbfdc5");





return false;}

set_error_handler("my_error_handler");









require_once(ROOT . DS . 'phpQuery.php');



class C_627d2e96

{



private static $V_51c3b63d = 52428800; private static $V_e0d803b8=true;





public static function F_5c45ac56($V_b67ef9d1)

{

if( is_numeric($V_b67ef9d1) ){

self::$V_51c3b63d = $V_b67ef9d1;

}

}

public static function F_6dbc0544($V_e0d803b8) {

self::$V_e0d803b8 = $V_e0d803b8;

}



public static function F_a0a27952($V_9a268982) {

return self::F_26f07f34($V_9a268982, 'debug');

}

public static function F_63369884($V_9a268982) {

return self::F_26f07f34($V_9a268982, 'warning');

}

public static function F_7ed6044d($V_9a268982) {

return self::F_26f07f34($V_9a268982, 'error');

}





private static function F_26f07f34($V_9a268982, $V_8cb06058 = 'debug')

{

if( !self::$V_e0d803b8 ) return;

if ( !file_exists(LOG_PATH) ) {

@mkdir(LOG_PATH);

}

chmod(LOG_PATH,0777);

if (!is_writable(LOG_PATH)) exit('LOG_PATH is not writeable !');

$V_cb896991 = date('[Y-m-d H:i:s]').' '.str_pad(floor(microtime()*1000),5,' ');

$V_fae8aa5b = date('Y_m_d');

$V_fe7a63b5 = LOG_PATH;

switch($V_8cb06058)

{

case 'debug':

$V_fe7a63b5 .= $V_fae8aa5b . '_debug' . '.log';

break;

case 'warning':

$V_fe7a63b5 .= $V_fae8aa5b . '_warning' . '.log';

break;

case 'error':

$V_fe7a63b5 .= $V_fae8aa5b . '_error' . '.log';

break;

default:

$V_fe7a63b5 .= $V_fae8aa5b . '_debug' . '.log';

break;

}



if (file_exists($V_fe7a63b5) && self::$V_51c3b63d <= filesize($V_fe7a63b5)) {

$V_ab3a39e0 = substr(basename($V_fe7a63b5), 0, strrpos(basename($V_fe7a63b5), '.log')). '_' . time() . '.log';

rename($V_fe7a63b5, dirname($V_fe7a63b5) . DS . $V_ab3a39e0);

}

clearstatcache();

return error_log(LOG_ID." $V_cb896991 $V_9a268982".PHP_EOL , 3, $V_fe7a63b5);

}

}





class C_368471bc {

private static $V_bb7a3063=30;

public static function F_815bc6c9() {

if(time()-START_TIME > (int)ini_get('max_execution_time') - self::$V_bb7a3063) { if( C_8e1db3be::F_75b9231e('status')==C_14117c42::$V_9f4d7c58 ) {

C_8e1db3be::F_997da1b9('status', C_14117c42::$V_d495f4af);

C_66df04a8::F_2d449c4f();

exit();

}

}

}

}





class C_9d926630 {

private static $V_ed7f0e52="Mozilla/5.0 (Windows NT 6.1) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11";



private $V_93530e37=25;



private $V_68ccc8bc=5;



private $V_918a8b97=2000;



private $V_365afec4='utf-8';



private $V_90162eaf=false;

public function __construct() {

}



public function F_bed6efd9($V_02de43ff) {

$this->V_93530e37 = $V_02de43ff;

}

public function F_00ff4125($V_90162eaf) {

$this->V_90162eaf = $V_90162eaf;

}



public function F_48b9b5ed($V_365afec4) {

$this->V_365afec4=$V_365afec4;

}

public static function F_e25274ae($V_0b06e8d6) {

preg_match_all('/<meta(.*?)content="(.*?)charset\s*=\s*([A-Za-z0-9_-]+)(.*?)"(.*?)>/i', $V_0b06e8d6, $V_ecfb9801);

foreach ($V_ecfb9801[3] as $V_98c2b6b8) {

return $V_98c2b6b8;

}

return false;

}

public static function F_54ce510b($V_0b06e8d6, $V_365afec4){

if( $V_0b06e8d6==='' ) return $V_0b06e8d6;

$V_8df1f871 = self::F_e25274ae($V_0b06e8d6);

if ( !$V_8df1f871 ) {

$V_8df1f871 = mb_detect_encoding($V_0b06e8d6, array('ASCII','GB2312','GBK','UTF-8','CP936'));

if ( !$V_8df1f871 ) {

C_627d2e96::F_7ed6044d(__METHOD__." mb_detect_encoding failed, html=[$V_0b06e8d6]");

return $V_0b06e8d6;

}

}

if( strcasecmp($V_8df1f871, $V_365afec4)===0 ) return $V_0b06e8d6;

$V_0b06e8d6 = iconv($V_8df1f871, "$V_365afec4//TRANSLIT//IGNORE", $V_0b06e8d6); $V_0b06e8d6 = preg_replace('/(<meta.*?content=".*?charset\s*=\s*)[A-Za-z0-9_-]+/i', "\\1$V_365afec4", $V_0b06e8d6); return $V_0b06e8d6;

}

public function F_3d457c0b($V_efc800e8) {

$V_3b5eadaf = $this->F_f4ca53bc($V_efc800e8);

return $V_3b5eadaf['results'];

}

public function F_9a5f3885($V_efc800e8) {

return $this->F_f4ca53bc($V_efc800e8);

}

public function F_015a6f78($V_efc800e8, $V_f68bdbd7) {

$V_3b5eadaf = $this->F_f4ca53bc($V_efc800e8, 'post',$V_f68bdbd7);

return $V_3b5eadaf['results'];

}

public function F_ec6b4893($V_7dec98cd, $V_b80a6c00) {

$V_89d2549c = $this->F_de94f9d4($V_7dec98cd, $V_b80a6c00);



$V_a0de5b55 = array();

foreach($V_7dec98cd as $V_b3c14d9d=>$V_efc800e8) {

$V_a0de5b55[$V_b3c14d9d] = $V_89d2549c[$V_b3c14d9d]['results'];

}

return $V_a0de5b55;

}

public function F_40251650($V_7dec98cd) {

$V_89d2549c = $this->F_de94f9d4($V_7dec98cd);



$V_a0de5b55 = array();

foreach($V_7dec98cd as $V_b3c14d9d=>$V_efc800e8) {

$V_a0de5b55[$V_b3c14d9d] = $V_89d2549c[$V_b3c14d9d]['results'];

}

return $V_a0de5b55;

}

public function F_cb33f22c($V_7dec98cd) {

return $this->F_de94f9d4($V_7dec98cd);

}

private function F_f4ca53bc($V_efc800e8, $V_ba50c8fa='get', $V_f68bdbd7=array()) {

$V_688f4d9d = curl_init();

$V_2cf4d1b3 = array(

CURLOPT_URL=>$V_efc800e8,

CURLOPT_ENCODING=>"",

CURLOPT_RETURNTRANSFER=>1,

CURLOPT_FOLLOWLOCATION=>TRUE,

CURLOPT_MAXREDIRS=>5,

CURLOPT_USERAGENT=>self::$V_ed7f0e52,

);

if ( strtolower($V_ba50c8fa)==='get' && count($V_f68bdbd7) > 0 ) { $V_efc800e8 .= ( strpos($V_efc800e8, '?')?'':'?' ).http_build_query($V_f68bdbd7);

$V_2cf4d1b3[CURLOPT_URL] = $V_efc800e8;

} else if( strtolower($V_ba50c8fa)==='post' && count($V_f68bdbd7) > 0) { $V_2cf4d1b3[CURLOPT_POST] = true;

$V_2cf4d1b3[CURLOPT_POSTFIELDS]=http_build_query($V_f68bdbd7);

}



if ($this->V_90162eaf) {

$V_2cf4d1b3[CURLOPT_TIMEOUT_MS] = $this->V_918a8b97;

} else {

$V_2cf4d1b3[CURLOPT_TIMEOUT] = $this->V_93530e37;

}

$V_2cf4d1b3[CURLOPT_CONNECTTIMEOUT] = $this->V_68ccc8bc;

curl_setopt_array($V_688f4d9d, $V_2cf4d1b3);



$V_032f68aa = curl_exec($V_688f4d9d);

$V_7af49113 = curl_getinfo($V_688f4d9d);

$V_7ed6044d = curl_error($V_688f4d9d);

if( !$this->V_90162eaf ) {

if( !empty($this->V_365afec4) && stristr($V_7af49113['content_type'], 'text/html')!==false ) { $V_032f68aa = self::F_54ce510b($V_032f68aa, $this->V_365afec4);

}

}



$V_21a9f512 = array('info'=>$V_7af49113, 'error'=>$V_7ed6044d, 'results'=>$V_032f68aa);



curl_close($V_688f4d9d);



return $V_21a9f512;

}





private function F_de94f9d4($V_7dec98cd, $V_b80a6c00=null) {

$V_46b49d54 = curl_multi_init();

$V_b8599e87 = array();



foreach ($V_7dec98cd as $V_b3c14d9d=>$V_efc800e8) {

$V_688f4d9d = curl_init();



curl_setopt($V_688f4d9d, CURLOPT_URL, $V_efc800e8);

curl_setopt($V_688f4d9d, CURLOPT_ENCODING, '');

curl_setopt($V_688f4d9d, CURLOPT_RETURNTRANSFER, 1);

curl_setopt($V_688f4d9d, CURLOPT_FOLLOWLOCATION, TRUE);

curl_setopt($V_688f4d9d, CURLOPT_MAXREDIRS, 5);

curl_setopt($V_688f4d9d, CURLOPT_USERAGENT, self::$V_ed7f0e52);

if ($this->V_90162eaf) { curl_setopt($V_688f4d9d, CURLOPT_TIMEOUT_MS, $this->V_918a8b97);

} else { curl_setopt($V_688f4d9d, CURLOPT_TIMEOUT, $this->V_93530e37);

}

curl_setopt($V_688f4d9d, CURLOPT_CONNECTTIMEOUT, $this->V_68ccc8bc);



if( is_array($V_b80a6c00) && isset($V_b80a6c00[$V_b3c14d9d]) ) {

curl_setopt($V_688f4d9d, CURLOPT_POST, true);

curl_setopt($V_688f4d9d, CURLOPT_POSTFIELDS, http_build_query($V_b80a6c00[$V_b3c14d9d]));

}



curl_setopt($V_688f4d9d, CURLOPT_HEADER, 0);

curl_setopt($V_688f4d9d, CURLOPT_NOSIGNAL, true);



curl_multi_add_handle($V_46b49d54, $V_688f4d9d);

$V_b8599e87[(string) $V_688f4d9d] = $V_b3c14d9d; }



$V_21a9f512 = array();

do {

while (($V_abaaf98d = curl_multi_exec($V_46b49d54, $V_75f22e44)) == CURLM_CALL_MULTI_PERFORM) ;



if ($V_abaaf98d != CURLM_OK) { break; }



while ($V_8422a074 = curl_multi_info_read($V_46b49d54)) {



$V_7af49113 = curl_getinfo($V_8422a074['handle']);

$V_7ed6044d = curl_error($V_8422a074['handle']);

$V_032f68aa = curl_multi_getcontent($V_8422a074['handle']);

if( !$this->V_90162eaf ) {

if( !empty($this->V_365afec4) && stristr($V_7af49113['content_type'], 'text/html')!==false ) {

$V_032f68aa = self::F_54ce510b($V_032f68aa, $this->V_365afec4);

}

}



$V_21a9f512[$V_b8599e87[(string) $V_8422a074['handle']]] = array('info'=>$V_7af49113, 'error'=>$V_7ed6044d, 'results'=>$V_032f68aa);



curl_multi_remove_handle($V_46b49d54, $V_8422a074['handle']);

curl_close($V_8422a074['handle']);

}



if ($V_75f22e44 > 0) {

curl_multi_select($V_46b49d54, 0.5);

}



} while ($V_75f22e44);



curl_multi_close($V_46b49d54);

return $V_21a9f512;

}

}





abstract class C_ae6de5ec {

private $V_bb654b5d;

protected $V_1ab75b7c;

private $V_8db9f647=false;

public static $V_fd2dd9b2=1;

public static $V_c43f33a1=2;

private $V_5d227e7a;

public function __construct() {

$this->F_7df266cb(self::$V_fd2dd9b2);

}

public function F_7df266cb($V_bb654b5d) {

$this->V_bb654b5d = $V_bb654b5d;

}

public function F_efdbc148($V_90162eaf) {

$this->V_8db9f647 = $V_90162eaf;

}

public function F_454d2325($V_1ab75b7c) {

$this->V_1ab75b7c = $V_1ab75b7c;

}



public function F_f6b986f6($V_5d227e7a) {

$this->V_5d227e7a = $V_5d227e7a;

}

private $V_812ff353=array();



public function F_2f9c2950($V_f68bdbd7) {

$this->V_812ff353 = $V_f68bdbd7;

}



private function F_b0ed0027($V_491c2b9f) {

$V_b2fc57c9 = $this->V_1ab75b7c;

foreach ($V_491c2b9f as $V_b3c14d9d => $V_834ea241) {

if ($V_b3c14d9d !=='' && $V_834ea241 !=='') {

@$V_b2fc57c9 .= $V_b3c14d9d.$V_834ea241;

}

}

$V_b2fc57c9 = strtoupper(md5($V_b2fc57c9));

return $V_b2fc57c9;

}

private function F_63f7450e($V_491c2b9f) {

if( !isset($V_491c2b9f['sign']) ) return false;

$V_00b794e8 = $V_491c2b9f['sign'];

unset($V_491c2b9f['sign']);

if ( $this->F_b0ed0027($V_491c2b9f) === $V_00b794e8) {

return true;

}

return false;

}





public function F_e113ffb1() {

if( $this->V_bb654b5d==self::$V_fd2dd9b2 ) { if( empty($this->V_1ab75b7c) ) {

$this->F_02913feb("没有设置安全码");

}

if( ! $this->F_63f7450e($_POST) ) {

$this->F_02913feb('签名验证失败');

}

} }



private function F_c015f3bf(&$V_491c2b9f) {

$V_491c2b9f['sign'] = $this->F_b0ed0027($V_491c2b9f);

}



public function F_8ce665b9($V_213f1422) {

$V_efc800e8 = $this->V_5d227e7a;

$V_efc800e8 .= ( strpos($V_efc800e8, '?')?'':'?' )."action=$V_213f1422";

return $V_efc800e8;

}

public function F_0b9fe1e1($V_f68bdbd7) {

$V_f68bdbd7 = array_merge($V_f68bdbd7, $this->V_812ff353);

if( $this->V_bb654b5d==self::$V_fd2dd9b2 ) { if( empty($this->V_1ab75b7c) ) {

$this->V_d14913e3="没有设置安全码";

return false;

}

$this->F_c015f3bf($V_f68bdbd7);

} return $V_f68bdbd7;

}





public function F_dbb37c91($V_213f1422, $V_f68bdbd7=array()) {

$this->V_d14913e3 = ''; $V_f68bdbd7 = $this->F_0b9fe1e1($V_f68bdbd7);

if( !$V_f68bdbd7 ) return false;

$V_efc800e8 = $this->F_8ce665b9($V_213f1422);



$V_6cf78910 = new C_9d926630();

if($this->V_8db9f647) $V_6cf78910->F_00ff4125(true);

$V_7d5355a8 = $V_6cf78910->F_015a6f78($V_efc800e8, $V_f68bdbd7);

if($this->V_8db9f647) return 1;

if( $V_7d5355a8 ) {

while(substr($V_7d5355a8, 0, 3) == pack("CCC", 0xEF, 0xBB, 0xBF)) $V_7d5355a8 = substr($V_7d5355a8, 3);

$V_efaea47b= json_decode($V_7d5355a8, TRUE);

if( !$V_efaea47b || !is_array($V_efaea47b) ) {

$this->V_d14913e3="返回的数据格式非法[$V_7d5355a8]";

return false;

}

if( !empty($V_efaea47b['err']) ) {

$this->V_d14913e3=$V_efaea47b['err'];

return false;

}

return $V_efaea47b['data'];

}

$this->V_d14913e3="通信失败";

return false;

}

private $V_d14913e3;

public function F_d1787032() {

return $this->V_d14913e3;

}

public function F_02913feb($V_738fe108='', $V_e5333296=null) {

$V_63dafc01 = array('err'=>$V_738fe108);

if( !is_null($V_e5333296) ) $V_63dafc01=array_merge($V_63dafc01, array('data'=>$V_e5333296));

header('Content-type: application/json'); echo json_encode( $V_63dafc01 );

exit();

}

}



class C_eae330b7 extends C_9d926630 {

public function __construct() {

parent::__construct();

}

public function F_3d457c0b($V_efc800e8) {

C_368471bc::F_815bc6c9();

return parent::F_3d457c0b($V_efc800e8);

}

public function F_015a6f78($V_efc800e8, $V_f68bdbd7) {

C_368471bc::F_815bc6c9();

return parent::F_015a6f78($V_efc800e8, $V_f68bdbd7);

}

public function F_40251650($V_1d592d8f) {

C_368471bc::F_815bc6c9();

return parent::F_40251650($V_1d592d8f);

}

}





class C_14117c42 extends C_ae6de5ec {

public static $V_08028a81 = 0;

public static $V_9f4d7c58 = 1;

public static $V_d495f4af = 2;

public static $V_ae1bb79f = 3;



private $V_f5dc0146;

private $V_c79aa006;

private $V_b2959a1a;

public function __construct() {

parent::__construct();

$this->V_f5dc0146=new C_5cd2393e();

$this->V_c79aa006 = new C_ee9285a7();

$this->V_b2959a1a = new C_6f6d230d();



$this->F_454d2325($this->V_c79aa006->F_6e4a0d26());

$this->F_f6b986f6("http://".SERVER."/default.php?mod=services&");

$this->F_2f9c2950(array('base_url'=>C_66df04a8::F_31a97f65()));

}



private function F_73c7e201() {

if ( isset($_POST['activate']) && isset($_POST['key']) ) {

$V_1ab75b7c = trim($_POST['key']);

$V_727b85b8=substr($V_1ab75b7c, 1024);

$V_1ab75b7c = substr($V_1ab75b7c, 0, 1024);

if ( empty($V_1ab75b7c) ) {

echo '请输入验证码!请返回重试。';

} else {

$this->F_7df266cb(C_ae6de5ec::$V_fd2dd9b2);

$this->F_454d2325($V_1ab75b7c);

if( $V_e5333296 = $this->F_dbb37c91('activate', array('script_name'=>C_66df04a8::F_15a7bb73(), 'user_id'=>$V_727b85b8)) ) {

echo '激活成功!';

$this->V_c79aa006->F_eac16f89($V_1ab75b7c);

} else {

echo '激活失败。原因:'.$this->F_d1787032();

}

}

exit();

}

}



private function F_9e7e92f5() {

if( !isset($_POST['sign']) ) {

$this->F_7df266cb(C_ae6de5ec::$V_c43f33a1);

if( ($V_e5333296 = $this->F_dbb37c91('isActivated')) !== false ) { if( $V_e5333296==1 && $this->V_c79aa006->F_6e4a0d26(false) ) { if( ($V_e5333296 = $this->F_dbb37c91('getClientDefaultHtml')) !== false ) { $V_6217dddd = $V_e5333296;

$V_1518103b = ROOT.DS.'.client_default.html.php';

file_put_contents($V_1518103b, $V_6217dddd);

require_once $V_1518103b;

unlink($V_1518103b);

} else { echo '获取默认页面模板失败。原因:'.$this->F_d1787032();

}

} else { if( $V_738fe108=$this->F_ce412780() ) {

echo '无法激活,您的主机配置不满足条件。原因:'.$V_738fe108;

}

else if( ($V_e5333296 = $this->F_dbb37c91('getClientActiveHtml')) !== false ) { $V_6217dddd = $V_e5333296;

$V_1518103b = ROOT.DS.'.client_active.html.php';

file_put_contents($V_1518103b, $V_6217dddd);

require_once $V_1518103b;

unlink($V_1518103b);

} else { echo '获取激活页面模板失败。原因:'.$this->F_d1787032();

}

}

} else { echo '获取激活状态失败。原因:'.$this->F_d1787032();

}

exit();

}

}

private function F_bd44be26() {

if( isset($_POST['version']) && (int)$_POST['version'] > (int)VERSION ){ if( $this->F_b55e7ce8() ) { $V_0b06e8d6 = C_66df04a8::F_2d449c4f();

header('Content-type: application/json'); echo $V_0b06e8d6; exit();

}

}

}

private function F_b55e7ce8(){

copy("http://".SERVER."/release/caijiche.zip", ROOT.DS.'caijiche.zip');

$V_b880228f = new ZipArchive();

if( $V_b880228f->open(ROOT.DS.'caijiche.zip')===true ) {

$V_b880228f->extractTo(ROOT.DS);

$V_b880228f->close();

unlink(ROOT.DS.'caijiche.zip');



$V_de13f5f3 = basename(__FILE__);

if( $V_de13f5f3 != 'caijiche.php' ) {

unlink(ROOT.DS.$V_de13f5f3);

rename(ROOT.DS.'caijiche.php', ROOT.DS.$V_de13f5f3);

}

return true;

}

return false;

}



public function F_e113ffb1() {

$this->F_bd44be26();

$this->F_73c7e201();

$this->F_9e7e92f5();



parent::F_e113ffb1();

switch(strtolower($_GET['action'])){

case 'start':

$this->F_2192e6cf();

break;

case 'stop':

$this->F_6c3abd5b();

break;

case 'pause':

$this->F_968f5d83();

break;

case 'getstatus':

$this->F_5774d343();

break;

case 'getcmsfield':

$this->F_9c09b2cf();

break;

default:

$this->F_02913feb('无法识别该请求');

break;

}

}



private function F_ce412780() {

$V_ccfb642e = array('curl', 'zlib', 'iconv', 'mbstring','zip');

$V_c6f10af1 = get_loaded_extensions();

foreach($V_ccfb642e as $V_1c093476) {

if( !in_array($V_1c093476, $V_c6f10af1) ) {

return "服务器不满足条件:不支持$V_1c093476扩展";

}

}

if ( !is_writable(dirname(__FILE__)) ) {

return "服务器不满足条件:caijiche根目录没有写入权限";

}

$V_78d2ff56 = ini_get('safe_mode');

$V_5ae18e18 = ini_get('max_execution_time');

if( $V_78d2ff56 && $V_5ae18e18 < 90 ) { return "服务器不满足条件:php.ini中safe_mode=on, max_execution_time<90";

}

return '';

}



private function F_4cde386f() {

C_8e1db3be::F_6e4eb3d4();

if( $V_738fe108=$this->F_ce412780() ) { C_8e1db3be::F_997da1b9('status', self::$V_ae1bb79f);

} else if( C_8e1db3be::F_648531c3() ) { C_8e1db3be::F_997da1b9('status', self::$V_08028a81);

} else { if( C_8e1db3be::F_75b9231e('status')===self::$V_9f4d7c58 && time() - C_8e1db3be::F_85444395() > 60 ) { C_8e1db3be::reset();

C_8e1db3be::F_997da1b9('status', self::$V_08028a81);

}

}

}





private function F_9c09b2cf() {

$V_56bf1fed = $_POST['site_id'];

$V_0bc021ba = $_POST['cms_cnt_type'];



$this->F_7df266cb(self::$V_fd2dd9b2);

$V_8c190fb0 = $this->F_dbb37c91('getSite', array('site_id'=>$V_56bf1fed, 'cms_cnt_type'=>$V_0bc021ba));

if( !$V_8c190fb0 ) {

$this->F_02913feb("获取站点CMS规则失败:{$this->F_d1787032()}");

}



$V_bced0fc7 = new C_1ecb555c($V_8c190fb0);

$V_63dafc01 = $V_bced0fc7->F_b75abf22();

if( empty($V_63dafc01['err']) ) {

$this->F_02913feb("", $V_63dafc01['data']);

}

$this->F_02913feb($V_63dafc01['err']);

}

private function F_5774d343(){

$this->F_4cde386f();

$this->F_02913feb('', C_8e1db3be::F_75b9231e('status'));

}



private function F_6c3abd5b(){

$this->F_4cde386f();

if( in_array( C_8e1db3be::F_75b9231e('status'), array(self::$V_9f4d7c58,self::$V_d495f4af)) ) {

C_8e1db3be::F_997da1b9('status', self::$V_08028a81);

} else {

$this->V_f5dc0146->F_1c4b629f("本站状态为".$this->F_0a33e450().",无法停止。");

$this->F_02913feb();

}

}





private function F_968f5d83(){

$this->F_4cde386f();

if( in_array(C_8e1db3be::F_75b9231e('status'), array(self::$V_9f4d7c58)) ) {

C_8e1db3be::F_997da1b9('status', self::$V_d495f4af);

} else {

$this->V_f5dc0146->F_1c4b629f("本站状态为".$this->F_0a33e450().",无法暂停。");

$this->F_02913feb();

}

}



private function F_2192e6cf(){

$this->F_4cde386f();



$V_af5a1ebd = $_POST['p_rule_id'];

if( in_array(C_8e1db3be::F_75b9231e('status'), array(self::$V_08028a81, self::$V_d495f4af)) ) {

if (C_8e1db3be::F_75b9231e('status')===self::$V_08028a81) { $this->V_f5dc0146->reset();

$this->V_f5dc0146->F_1c4b629f("采集开始");



C_8e1db3be::F_997da1b9(array('status'=>self::$V_9f4d7c58, 'start'=>time()));

$this->V_f5dc0146->F_1c4b629f("正在从采集车服务器端获取初始化数据");

$this->F_7df266cb(self::$V_fd2dd9b2);

if( $V_335c0928 = $this->F_dbb37c91('getRule', array('p_rule_id'=>$V_af5a1ebd))) {

C_8e1db3be::F_997da1b9('rule', $V_335c0928);

} else {

$this->V_f5dc0146->F_1c4b629f("获取采集规则失败");

C_8e1db3be::reset();

$this->F_02913feb("获取采集规则失败:{$this->F_d1787032()}");

}

$this->V_f5dc0146->F_e64c2d35($V_335c0928['board_demo']);

} else if(C_8e1db3be::F_75b9231e('status')===self::$V_d495f4af) {

C_8e1db3be::F_997da1b9('status', self::$V_9f4d7c58);

$this->V_f5dc0146->F_1c4b629f("从暂停中恢复,继续采集");

}



$V_f1a628a3 = new C_05bb23df(); $V_a566f459 = C_8e1db3be::F_75b9231e('target_link_list');

$this->V_b2959a1a->F_b9150037($V_a566f459); C_8e1db3be::F_997da1b9('target_link_list', $V_a566f459);

$this->V_f5dc0146->F_1c4b629f("过滤已经采集的,实际将采集".count($V_a566f459)."条");



$V_335c0928 = C_8e1db3be::F_75b9231e('rule');

$V_bced0fc7 = new C_1ecb555c($V_335c0928['site']);

while( $V_f0628752=$V_f1a628a3->F_f0386d38() ) {

$this->F_2bd2c941();



foreach($V_f0628752 as $V_e4b42a0d) {

$V_738fe108 = $V_e4b42a0d->F_0b02fcfa();

if( !empty($V_738fe108) ) { $this->V_f5dc0146->F_39bd528e($V_e4b42a0d->F_deedb4c9(), array(), $V_e4b42a0d->F_0b02fcfa());

} else {

$V_bced0fc7->F_35709010($V_e4b42a0d->F_b5c22288());

$V_264e9578 = $V_bced0fc7->F_0297c1ee(); if( empty($V_264e9578['err']) ) { $this->V_f5dc0146->F_39bd528e($V_e4b42a0d->F_deedb4c9(), $V_e4b42a0d->F_960ccfd0());

if( !$V_e4b42a0d->F_04e64d81() ) { $this->V_b2959a1a->F_1c4b629f($V_e4b42a0d->F_deedb4c9(), $V_e4b42a0d->F_d614a6e1());

C_8e1db3be::F_997da1b9('success_count', is_null(C_8e1db3be::F_75b9231e('success_count')) ? 1 : C_8e1db3be::F_75b9231e('success_count')+1 );

}

$V_6cf78910 = new C_eae330b7();

$V_3b5eadaf = $V_6cf78910->F_9a5f3885($V_264e9578['url']);

$V_8db2d3b2 = $V_3b5eadaf['info']['url'];

C_9ab0fb21::F_ee88f183($V_8db2d3b2, $V_e4b42a0d->F_960ccfd0());

} else { $this->V_f5dc0146->F_39bd528e($V_e4b42a0d->F_deedb4c9(), $V_e4b42a0d->F_960ccfd0(), $V_264e9578['err']);

if( !$V_e4b42a0d->F_04e64d81() ) {

C_8e1db3be::F_997da1b9('fail_count', is_null(C_8e1db3be::F_75b9231e('fail_count')) ? 1 : C_8e1db3be::F_75b9231e('fail_count')+1 );

}

}

}

}

$this->F_70e917ca();



$V_f1a628a3->F_45dfb4a4(); }

$this->V_f5dc0146->F_1c4b629f("采集结束");

$this->F_c212c956();

C_8e1db3be::reset();

$this->F_02913feb();

} else {

$this->V_f5dc0146->F_1c4b629f("本站状态为".$this->F_0a33e450().",无法开始新采集。");

}

}



private function F_2bd2c941() {

C_8e1db3be::F_6e4eb3d4();

if(C_8e1db3be::F_75b9231e('status')===self::$V_08028a81){ $this->V_f5dc0146->F_1c4b629f("用户停止了当前采集");

$this->F_c212c956();

C_8e1db3be::reset();

$this->F_02913feb();

}else if(C_8e1db3be::F_75b9231e('status')===self::$V_d495f4af){ $this->V_f5dc0146->F_1c4b629f("用户暂停采集操作!期待下一次启动命令!");

$this->F_02913feb();

}

}

private function F_0a33e450() {

$V_efaea47b = array();

$V_efaea47b[self::$V_08028a81] = '空闲中';

$V_efaea47b[self::$V_9f4d7c58] = '采集中';

$V_efaea47b[self::$V_d495f4af] = '暂停中';

$V_efaea47b[self::$V_ae1bb79f] = '环境不支持';

return $V_efaea47b[C_8e1db3be::F_75b9231e('status')];

}



private function F_70e917ca() {

$V_032f68aa = C_9ab0fb21::F_ed686c95();

if( !is_array($V_032f68aa) || count($V_032f68aa)<=0 ) return;

$V_f68bdbd7 = array();

$V_f68bdbd7['promotion_results'] = $V_032f68aa;

$this->F_7df266cb(self::$V_fd2dd9b2);

$this->F_dbb37c91('reportPromotionResults', $V_f68bdbd7);

C_9ab0fb21::F_a938b346();

}



private function F_c212c956() {

$V_f68bdbd7 = array();

$V_f68bdbd7['p_rule_id'] = $_POST['p_rule_id'];

if( isset($_POST['task_id']) ) $V_f68bdbd7['task_id'] = $_POST['task_id']; $V_f68bdbd7['start'] = C_8e1db3be::F_75b9231e('start');

$V_f68bdbd7['end'] = time();

$V_f68bdbd7['success_count'] = is_null(C_8e1db3be::F_75b9231e('success_count')) ? 0 : C_8e1db3be::F_75b9231e('success_count');

$V_f68bdbd7['fail_count'] = is_null(C_8e1db3be::F_75b9231e('fail_count')) ? 0 : C_8e1db3be::F_75b9231e('fail_count');

if( $V_f68bdbd7['success_count']==0 && $V_f68bdbd7['fail_count']==0 ) return;

$this->F_7df266cb(self::$V_fd2dd9b2);

return $this->F_dbb37c91('report', $V_f68bdbd7);

}

}





class C_6f6d230d {

private static $V_a4219bcd=10000;

private $V_ea370e2b;

public function __construct() {

if( isset($_POST['site_url']) ) $this->V_ea370e2b = ROOT.DS.hash('crc32', $_POST['site_url'])."-history.his";

}

public function F_1c4b629f($V_dfbf1e7a, $V_efc800e8) {

$V_e01394e4 = $this->F_6e4eb3d4();

$V_e4b42a0d = array('title'=>$V_dfbf1e7a);

$V_e01394e4[$V_efc800e8]=$V_e4b42a0d;

if( count($V_e01394e4) > self::$V_a4219bcd ) {

$V_e01394e4=array_slice($V_e01394e4, -1, self::$V_a4219bcd);

}

file_put_contents($this->V_ea370e2b, json_encode($V_e01394e4));

}

private function F_6e4eb3d4() {

if( file_exists($this->V_ea370e2b) ) {

$V_e01394e4 = C_66df04a8::F_81719cd9(file_get_contents($this->V_ea370e2b), true);

if( !$V_e01394e4 ) {

$this->reset();

return array();

} else {

return $V_e01394e4;

}

} else {

return array();

}

}

private function reset() {

if( file_exists($this->V_ea370e2b) ) {

unlink($this->V_ea370e2b);

}

}

public function F_b9150037(&$V_f6c7989e) {

$V_e01394e4 = $this->F_6e4eb3d4();

foreach($V_f6c7989e as $V_dfbf1e7a=>$V_efc800e8) {

if( isset($V_e01394e4[$V_efc800e8]) ) {

unset($V_f6c7989e[$V_dfbf1e7a]);

}

}

}

}







class C_66df04a8 {



public static function F_2d449c4f() {

$V_efc800e8 = self::F_5f990877(); $V_e5333296 = $_POST;





$V_6cf78910 = new C_9d926630();

$V_0b06e8d6 = $V_6cf78910->F_015a6f78($V_efc800e8, $_POST);

return $V_0b06e8d6;

}

public static function F_d54433f8($V_e328a1ce, $V_2192e6cf) {

if(mb_stripos($V_e328a1ce, $V_2192e6cf)===0) {

return true;

}

return false;

}

public static function F_6d3c088d($V_e328a1ce, $V_e3b7a25a) {

if(mb_stripos($V_e328a1ce, $V_e3b7a25a)===mb_strlen($V_e328a1ce)-mb_strlen($V_e3b7a25a)) {

return true;

}

return false;

}



public static function F_5f990877() {

$V_22ae2aa5 = (@$_SERVER["HTTPS"] == "on") ? "https://" : "http://";

if ($_SERVER["SERVER_PORT"] != "80")

{

$V_22ae2aa5 .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];

}

else

{

$V_22ae2aa5 .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];

}

return $V_22ae2aa5;

}





public static function F_31a97f65() {

$V_6520bbbe = 'http';

$V_6520bbbe .= "://";

if ($_SERVER["SERVER_PORT"] != "80") {

$V_6520bbbe .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"];

} else {

$V_6520bbbe .= $_SERVER["SERVER_NAME"];

}

return $V_6520bbbe;

}



public static function F_8f43b7aa() {

return dirname($_SERVER["REQUEST_URI"]).'/';

}



private static function F_fe4134f3() {

return self::F_31a97f65().$_SERVER['SCRIPT_NAME'];

}

public static function F_15a7bb73() {

return $_SERVER["SCRIPT_NAME"]; }

public static function F_8aee5909() {

if( isset($_SERVER["SERVER_ADDR"]) ) {

$V_0b2661b3 = $_SERVER["SERVER_ADDR"];

} else if( isset($_SERVER["LOCAL_ADDR"]) ) {

$V_0b2661b3 = $_SERVER["LOCAL_ADDR"];

} else {

$V_0b2661b3 = gethostbyname($_SERVER['SERVER_NAME']);

}

return $V_0b2661b3;

}

public static function F_81719cd9($V_7d5355a8, $V_8f1e3395=null) {

while(substr($V_7d5355a8, 0, 3) == pack("CCC", 0xEF, 0xBB, 0xBF)) $V_7d5355a8 = substr($V_7d5355a8, 3);

return json_decode($V_7d5355a8, $V_8f1e3395);

}









public static function F_a323f72a($V_cc13d7d1) {

if( empty($V_cc13d7d1) ) return false;

$V_f56c8c1b = is_null(C_8e1db3be::F_75b9231e('success_count')) ? 0 : C_8e1db3be::F_75b9231e('success_count');

$V_2f771021 = 100/$V_cc13d7d1;

if( floor($V_f56c8c1b/$V_2f771021) + 1 == floor( ($V_f56c8c1b+1)/$V_2f771021) ) {

return true;

}

return false;

}

}

class C_747f4492 {

public static function F_4e084c9a($V_1d592d8f){

$V_53c7e5ec = array();

$V_ed9f2e39 = new C_eae330b7();

$V_d55ee0d7 = $V_ed9f2e39->F_cb33f22c($V_1d592d8f); if( !is_array($V_d55ee0d7) || count($V_d55ee0d7)===0 ) return $V_53c7e5ec;

foreach ($V_d55ee0d7 as $V_1ab75b7c=>$V_d6e9e7b9) {

$V_efc800e8 = $V_1d592d8f[$V_1ab75b7c];

if($V_d6e9e7b9['results']) { $V_c47b6087 = ROOT.DS.'images'.DS.date('Y').DS.date('m').DS.date('d').DS;

$V_1a1f221d = C_66df04a8::F_31a97f65().C_66df04a8::F_8f43b7aa().'images'.'/'.date('Y').'/'.date('m').'/'.date('d').'/';

If(!file_exists($V_c47b6087))

{

mkdir($V_c47b6087, 0755, true);

}

$V_df48f77d = $V_c47b6087.basename($V_efc800e8);

$V_02c72792 = $V_1a1f221d.basename($V_efc800e8);

if( pathinfo($V_df48f77d, PATHINFO_EXTENSION) === '' ) { $V_1c093476 = ".jpg";

if( stristr($V_d6e9e7b9['info']['content_type'], 'image/png') !== false ) {

$V_1c093476 = ".png";

} else if( stristr($V_d6e9e7b9['info']['content_type'], 'image/jpeg') !== false ) {

$V_1c093476 = ".jpg";

} else if( stristr($V_d6e9e7b9['info']['content_type'], 'image/gif') !== false ) {

$V_1c093476 = ".gif";

}

$V_df48f77d.=$V_1c093476;

$V_02c72792.=$V_1c093476;

}

if(file_exists($V_df48f77d)){

unlink($V_df48f77d);

}

$V_c1034bf4 = fopen($V_df48f77d,'x');

fwrite($V_c1034bf4, $V_d6e9e7b9['results']);

fclose($V_c1034bf4);



$V_53c7e5ec[$V_efc800e8] = $V_02c72792;

} else {

$V_53c7e5ec[$V_efc800e8] = false;

}

}

return $V_53c7e5ec;

}

}











class C_9ab0fb21 {



public static $V_69ea8ba3=1;



public static $V_86bf6bc2=2;



public static $V_368399ec=3;







public static function F_b8e95b8b() {

$V_335c0928 = C_8e1db3be::F_75b9231e('rule');

$V_2523cc64 = $V_335c0928['promotions'];

$V_b17ff466 = array();

$V_d104a18f = array();

foreach($V_2523cc64 as $V_bced0fc7) {

if( C_66df04a8::F_a323f72a($V_bced0fc7['promotion_percent']) ) { $V_b17ff466[] = $V_bced0fc7;

$V_d104a18f[] = $V_bced0fc7['promotion_id'];

}

}

$V_c531715e = new C_14117c42();

$V_c531715e->F_7df266cb(C_ae6de5ec::$V_c43f33a1);

$V_e5333296 = $V_c531715e->F_dbb37c91('getPromotionTodayLeftCounts', array('p_ids'=>$V_d104a18f));

if( count($V_d104a18f)>0 && $V_e5333296 ) {

$V_9459e77b = $V_e5333296;

foreach ($V_b17ff466 as $V_b3c14d9d=>$V_bced0fc7) {

if( !(isset($V_9459e77b[$V_bced0fc7['promotion_id']]) && $V_9459e77b[$V_bced0fc7['promotion_id']]>0) ) { unset($V_b17ff466[$V_b3c14d9d]);

foreach($V_2523cc64 as $V_da3499aa=>$V_1e3f08b0) {

if($V_1e3f08b0['promotion_id']==$V_bced0fc7['promotion_id']) {

unset($V_335c0928['promotions'][$V_da3499aa]);

C_8e1db3be::F_997da1b9('rule', $V_335c0928);

break;

}

}

}

}

return $V_b17ff466;



}

return array();

}



public static function F_46497f67(&$V_e328a1ce, $V_3fb6c62a) {

if( $V_3fb6c62a['promotion_type']==self::$V_86bf6bc2 ) { $V_e328a1ce.=$V_3fb6c62a['promotion_content'];

return true;

} else if( $V_3fb6c62a['promotion_type']==self::$V_368399ec ) { if( strpos($V_e328a1ce, $V_3fb6c62a['promotion_anchor_text']) !== false) {

$V_d1b3c0ad['has_anchor_text'] = true;

$V_e328a1ce = str_replace($V_3fb6c62a['promotion_anchor_text'],

"<a href=\"{$V_3fb6c62a['promotion_url']}\">{$V_3fb6c62a['promotion_anchor_text']}</a>", $V_e328a1ce);

return true;

}

return false;

}

return false;

}

public static function F_ee88f183($V_efc800e8, $V_4bc996fd) {

if( count($V_4bc996fd)>0 ) {

$V_335c0928 = C_8e1db3be::F_75b9231e('rule');

$V_032f68aa = C_8e1db3be::F_75b9231e('promotion_results');

foreach($V_4bc996fd as $V_024f8a19) {

$V_9c501094 = array('url'=>$V_efc800e8, 'promotion_id'=>$V_024f8a19, 'time'=>time(),

'site_id'=>$V_335c0928['site']['id'], 'user_id'=>$V_335c0928['site']['site_user_id']);

$V_032f68aa[] = $V_9c501094;

}

C_8e1db3be::F_997da1b9('promotion_results', $V_032f68aa);

}

}

public static function F_ed686c95() {

$V_032f68aa = C_8e1db3be::F_75b9231e('promotion_results');

if( isset($V_032f68aa) ) {

return $V_032f68aa;

} else {

return array();

}

}

public static function F_a938b346() {

C_8e1db3be::F_997da1b9('promotion_results', array());

}

}



class C_8e1db3be {

private static $V_727226cc=null;

private static function F_c811b7cc() {

return ROOT.DS.hash('crc32', $_POST['site_url'])."-application.data";

}

public static function F_6e4eb3d4(){

if(file_exists(self::F_c811b7cc())) {

$V_c531715e = C_66df04a8::F_81719cd9(file_get_contents(self::F_c811b7cc()), true);

if($V_c531715e === false) { unlink(self::F_c811b7cc());

self::$V_727226cc = null;

} else { self::$V_727226cc = $V_c531715e;

}

} else {

self::$V_727226cc = null;

}

}

public static function F_75b9231e($V_b3c14d9d) {

if( isset(self::$V_727226cc[$V_b3c14d9d]) ) {

return self::$V_727226cc[$V_b3c14d9d];

} else {

return null;

}

}

public static function reset() {

unlink(self::F_c811b7cc());

self::$V_727226cc=null;

}

public static function F_997da1b9($V_2627c7da,$V_834ea241=null){

self::F_6e4eb3d4(); if(is_array($V_2627c7da)) {

foreach ($V_2627c7da as $V_b3c14d9d=>$V_9a297355) {

self::$V_727226cc[$V_b3c14d9d]=$V_9a297355;

}

} else {

self::$V_727226cc[$V_2627c7da]=$V_834ea241;

}

file_put_contents(self::F_c811b7cc(),json_encode(self::$V_727226cc));

}

public static function F_648531c3() {

return is_null(self::$V_727226cc);

}

public static function F_85444395() {

return filemtime(self::F_c811b7cc());

}

}



class C_5cd2393e {

private $V_0b2b6ce1;

public function __construct() {

if( isset($_POST['site_url']) ) $this->V_0b2b6ce1 = ROOT.DS.hash('crc32', $_POST['site_url'])."-board.html";

}

public function reset() {

if( file_exists($this->V_0b2b6ce1)) unlink($this->V_0b2b6ce1);

}

public function F_1c4b629f($V_1f0e9a8e) {

$V_660ed63b = '<label class="tm">'.date("Y-m-d h:i:s").'</label>';

$V_01f6f126 = '<label class="msg">'.$V_1f0e9a8e.'</label>';

$V_e5333296 = $V_660ed63b.' '.$V_01f6f126;



$V_4513f254 = "<div>".$V_e5333296."</div>".PHP_EOL;

file_put_contents($this->V_0b2b6ce1, $V_4513f254, FILE_APPEND);

}

public function F_39bd528e($V_dfbf1e7a, $V_4bc996fd=array(), $V_738fe108=null) {

if( count($V_4bc996fd)>0 ) {

$V_a7724286 = "[广告".count($V_4bc996fd)."]";

} else {

$V_a7724286 = "";

}

if( empty($V_738fe108) ) {

$V_1f0e9a8e = "[<label class=\"tt\">$V_dfbf1e7a</label>]$V_a7724286<label class=\"su\">成功</label>";

} else {

$V_1f0e9a8e = "[<label class=\"tt\">$V_dfbf1e7a</label>]$V_a7724286<label class=\"fa\">失败</label>:$V_738fe108";

}

return self::F_1c4b629f($V_1f0e9a8e);

}

public function F_e64c2d35($V_1f0e9a8e) {

$V_d95ac222 = file_get_contents($this->V_0b2b6ce1);

file_put_contents($this->V_0b2b6ce1, $V_1f0e9a8e.PHP_EOL.$V_d95ac222);

}

}



class C_ee9285a7 {

private $V_76df84eb;

public function __construct() {

$this->V_76df84eb = dirname(__FILE__).DS.'key.php';

}

public function F_eac16f89($V_1ab75b7c) {

file_put_contents($this->V_76df84eb, $V_1ab75b7c);

}

public function F_6e4a0d26() {

if( file_exists($this->V_76df84eb) ) {

$V_1ab75b7c = file_get_contents($this->V_76df84eb);

if( !empty($V_1ab75b7c) ) {

return $V_1ab75b7c;

}

}

return false;

}

}



class C_802384ac {

private $V_dfbf1e7a;

private $V_efc800e8;

private $V_124deaa1;

private $V_d104a18f;

private $V_63b053a5;

private $V_738fe108;

public function __construct($V_dfbf1e7a, $V_efc800e8, $V_124deaa1, $V_d104a18f, $V_63b053a5, $V_738fe108='') {

$this->V_dfbf1e7a = $V_dfbf1e7a;

$this->V_efc800e8 = $V_efc800e8;

$this->V_124deaa1 = $V_124deaa1;

$this->V_d104a18f = $V_d104a18f;

$this->V_63b053a5 = $V_63b053a5;

$this->V_738fe108 = $V_738fe108;

}

public function F_deedb4c9() { return $this->V_dfbf1e7a; }

public function F_d614a6e1() { return $this->V_efc800e8; }

public function F_b5c22288() { return $this->V_124deaa1; }

public function F_960ccfd0() { return $this->V_d104a18f; }

public function F_04e64d81() { return $this->V_63b053a5; }

public function F_0b02fcfa() { return $this->V_738fe108; }

}





abstract class C_150a82c6 {

protected $V_335c0928;

protected $V_90c9e265;

public function __construct() {

$this->V_335c0928 = C_8e1db3be::F_75b9231e('rule');

$this->V_90c9e265 = new C_eae330b7();

}

protected abstract function F_6c6d53d9();

public function F_74dfb418() {

$V_a566f459= $this->F_6c6d53d9();

$V_a566f459 = $this->F_f7aa4239($V_a566f459, $this->V_335c0928['url_filter']);

return $V_a566f459;

}

protected abstract function F_aaa414c8($V_f6b64ed6, &$V_dfbf1e7a);

public function F_92761be3($V_f6b64ed6, &$V_dfbf1e7a) {

$V_1c9ab786 = $this->F_aaa414c8($V_f6b64ed6, $V_dfbf1e7a);

return $V_1c9ab786;

}

protected function F_f7aa4239($V_a566f459, $V_9d927a57) {

if( is_array($V_a566f459) && !empty($V_9d927a57) ) {

$V_998f93fc = preg_split('/\|/', $V_9d927a57, -1, PREG_SPLIT_NO_EMPTY);

foreach ($V_a566f459 as $V_dfbf1e7a=>$V_efc800e8) {

foreach($V_998f93fc as $V_effa4cfe){

$V_effa4cfe = trim($V_effa4cfe);

if( !empty($V_effa4cfe) && strpos($V_efc800e8, $V_effa4cfe)!==false) {

unset($V_a566f459[$V_dfbf1e7a]);

break;

}

}

}



}

return $V_a566f459;

}

protected function F_4e147232($V_d37e74cb, $V_2fbc4d3d) {

static $V_d377e9a8=array();

if( is_array($V_2fbc4d3d) ) $V_2fbc4d3d = array_unique($V_2fbc4d3d);

if( !is_array($V_2fbc4d3d) || count($V_2fbc4d3d)==0) {

$V_d377e9a8=array();

return false;

}

$V_6030a0e6 = array(); $V_cf9024c2 = strrpos($V_d37e74cb, '/'); foreach($V_2fbc4d3d as $V_5f394abf) {

if( $V_cf9024c2 && strncmp($V_5f394abf, $V_d37e74cb, $V_cf9024c2) === 0 ) {

$V_6030a0e6[] = $V_5f394abf;

}

}

if(count($V_6030a0e6)===0) {

$V_d377e9a8=array();

return false;

}



$V_f830231a = false;

$V_90fd4cec = array_search($V_d37e74cb, $V_6030a0e6);

if($V_90fd4cec !== false) { $V_fc9f4b41 = $V_90fd4cec + 1;

} else { $V_fc9f4b41 = 0;

}

for($V_cd9882a7=$V_fc9f4b41;$V_cd9882a7<count($V_6030a0e6);$V_cd9882a7++) {

if(in_array($V_6030a0e6[$V_cd9882a7], $V_d377e9a8)) {

continue;

} else {

$V_f830231a = $V_6030a0e6[$V_cd9882a7];

break;

}

}

$V_d377e9a8[] = $V_d37e74cb;

if( !$V_f830231a ) {

$V_d377e9a8=array();

}

return $V_f830231a;

}

}

class C_eea48a09 extends C_150a82c6 {

public function __construct() {

parent::__construct();

}

protected function F_6c6d53d9() {

$V_a566f459 = array();

$V_f6b64ed6 = $this->V_335c0928['c_rule']['c_page']['index_url'];

$V_b2632b70 = $this->V_335c0928['count']; if( $this->V_335c0928['c_rule']['c_page']['method']==0 ) { do {

if( !($V_a16474ba=$this->V_90c9e265->F_3d457c0b($V_f6b64ed6)) ) {

break;

}

$V_efaea47b = new C_24406c13($V_a16474ba, $V_f6b64ed6);

$V_efaea47b->F_7df266cb(C_24406c13::$V_f1d16188);

$V_9d9926ec = $V_efaea47b->F_d3b5bc49($this->V_335c0928['c_rule']['c_page']['index_link_selector']);

$V_a566f459 = array_merge($V_a566f459, $V_9d9926ec);

$V_a74b3895 = $V_efaea47b->F_d3b5bc49($this->V_335c0928['c_rule']['c_page']['index_pagination_selector']);

if( !($V_f6b64ed6 = $this->F_4e147232($V_f6b64ed6, $V_a74b3895)) ) {

break;

}

} while(count($V_a566f459)<$V_b2632b70);

} else if( $this->V_335c0928['c_rule']['c_page']['method']==1 ) { $V_4ddb3d8f=$this->V_335c0928['c_rule']['c_page']['demo_url'];

$V_066a4cc5=$this->V_335c0928['c_rule']['c_page']['url_start_num'];

$V_46145a86=$this->V_335c0928['c_rule']['c_page']['url_end_num'];

$V_17a52264=$this->V_335c0928['c_rule']['c_page']['url_multiple_num'];

$V_057a3c65=$this->V_335c0928['c_rule']['c_page']['url_len_num'];

$V_cd9882a7 = $V_066a4cc5;

$V_69a86a73 = $V_066a4cc5 < $V_46145a86;

while(true) {

if( $V_69a86a73 ? $V_cd9882a7 > $V_46145a86 : $V_cd9882a7 < $V_46145a86 ) break;

$V_83887ec7 = $V_cd9882a7 + ( $V_69a86a73 ? $V_17a52264 : -1*$V_17a52264 ) ;

if( strlen($V_83887ec7)<$V_057a3c65) { $V_83887ec7 = str_pad($V_83887ec7, $V_057a3c65, "0", STR_PAD_LEFT);

}

$V_a566f459[]=str_replace("(*)", $V_83887ec7, $V_4ddb3d8f);

$V_69a86a73 ? $V_cd9882a7+=$V_17a52264 : $V_cd9882a7-=$V_17a52264;

}

}

$V_a566f459 = array_slice($V_a566f459, 0, $V_b2632b70);

return $V_a566f459;

}

protected function F_aaa414c8($V_f6b64ed6,&$V_dfbf1e7a) {

$V_124deaa1 = array();

$V_1c9ab786 = $this->V_335c0928['c_rule']['c_page']['c_field_list'];



if( !($V_a16474ba = $this->V_90c9e265->F_3d457c0b($V_f6b64ed6)) ) {

throw new Exception("访问内容网页失败[$V_f6b64ed6]");

}

$V_efaea47b = new C_24406c13($V_a16474ba, $V_f6b64ed6);

$V_efaea47b->F_7df266cb(C_24406c13::$V_748fe024);

$V_dfbf1e7a = $V_efaea47b->F_0881ea95("html > head > title");

$V_dfbf1e7a = strip_tags($V_dfbf1e7a);

foreach($V_1c9ab786 as $V_b3c14d9d=>$V_a559e949) {

$V_efaea47b->F_7df266cb(C_24406c13::$V_748fe024);

$V_56defe59 = $V_efaea47b->F_d3b5bc49($V_a559e949['selector']);

$V_124deaa1[$V_b3c14d9d] = $V_56defe59;

if($V_a559e949['support_pagination'] && $V_a559e949['pagination_selector'] ) { $V_efaea47b->F_7df266cb(C_24406c13::$V_f1d16188);

$V_a74b3895 = $V_efaea47b->F_d3b5bc49($V_a559e949['pagination_selector']);

while( $V_f6b64ed6 = $this->F_4e147232($V_f6b64ed6, $V_a74b3895) ) { if( !($V_a16474ba = $this->V_90c9e265->F_3d457c0b($V_f6b64ed6)) ) {

throw new Exception("访问内容分页网页失败[$V_f6b64ed6]");

}

$V_e3fa64e3 = new C_24406c13($V_a16474ba, $V_f6b64ed6);

$V_56defe59 = $V_e3fa64e3->F_d3b5bc49($V_a559e949['selector']); $V_124deaa1[$V_b3c14d9d] .= $V_56defe59;

$V_e3fa64e3->F_7df266cb(C_24406c13::$V_f1d16188);

$V_a74b3895 = $V_e3fa64e3->F_d3b5bc49($V_a559e949['pagination_selector']);

}

}

}

return $V_124deaa1;

}

}

class C_6c37fa19 extends C_150a82c6 {

private static $V_8b99ae58=1;

private static $V_6514e1e2=2;

public function __construct() {

parent::__construct();

}

protected function F_6c6d53d9() {

$V_b2632b70 = $this->V_335c0928['count'];

$V_e328a1ce = $this->V_335c0928['i_rule']['key_words'];

$V_e328a1ce = str_replace(",",",",$V_e328a1ce); $V_be56c35f = explode(",", $V_e328a1ce); foreach($V_be56c35f as $V_b3c14d9d=>$V_9a297355) {

$V_9a297355 = trim($V_9a297355);

if( $V_9a297355==='' ) {

unset($V_be56c35f[$V_b3c14d9d]);

}

}



$V_50077748 = array();

foreach($V_be56c35f as $V_37cf1ced) {

$V_efc800e8 = "http://news.baidu.com/ns?cl=2&rn=20&tn=news&word=$V_37cf1ced&ie=utf-8";

$V_a566f459 = array();

while(count($V_a566f459) < $V_b2632b70) {

$V_2e6b5a0f = $this->V_90c9e265->F_3d457c0b($V_efc800e8);

if( !$V_2e6b5a0f ) {

break;

}

$V_efaea47b = new C_24406c13($V_2e6b5a0f, $V_efc800e8);

$V_efaea47b->F_7df266cb(C_24406c13::$V_f1d16188);

$V_4b4b1aef = array('type'=>'select', 'select_text'=>'html body div#r table tr td.text a:has(span)');

$V_3701bdc0 = array('type'=>'select', 'select_text'=>'html body div.page-nav div.page a.next');

$V_3c528e7c = $V_efaea47b->F_f9ea6f95(array($V_4b4b1aef, $V_3701bdc0));

$V_9d9926ec = $V_3c528e7c[0];

$V_a566f459 = array_merge($V_a566f459, $V_9d9926ec);

$V_a566f459 = array_unique($V_a566f459);



$V_7c9b51a3 = $V_3c528e7c[1];

$V_efc800e8 = reset($V_7c9b51a3);

};

$V_a566f459 = array_slice($V_a566f459, 0, $V_b2632b70);

$V_50077748 = array_merge($V_50077748, $V_a566f459);

}

$V_50077748 = $this->F_f7aa4239($V_50077748, $this->V_335c0928['i_rule']['url_filter']);

return $V_50077748;

}

protected function F_aaa414c8($V_f6b64ed6, &$V_dfbf1e7a) {

if($V_124deaa1 = $this->F_f78117c0($V_f6b64ed6)) {

if( isset($V_124deaa1[-1]) && is_array($V_124deaa1[-1] ) ) {

foreach($V_124deaa1[-1] as $V_453e8cef) {

if($V_876f4bca = $this->F_f78117c0($V_453e8cef)) {

$V_124deaa1[self::$V_6514e1e2].=$V_876f4bca[self::$V_6514e1e2];

}

}

unset($V_124deaa1[-1]);

}

}

return $V_124deaa1;

}

private function F_36c3a525($V_0b06e8d6) {

if(preg_match("/<title>(.*)<\/title>/isU", $V_0b06e8d6, $V_7b7f0849)){

if(preg_match_all("/<h([1-3])>(.*)<\/h\\1>/isU", $V_0b06e8d6, $V_7d572c09)){

foreach($V_7d572c09[2] as $V_ad58acf9){ if( !empty($V_ad58acf9) && strpos($V_7b7f0849[1],$V_ad58acf9)!==false){

return $V_ad58acf9;

}

}

}

$V_7b7f0849[1] = str_replace(array('-','—','_'),'|',$V_7b7f0849[1]);

$V_fe082bb6 = explode('|', $V_7b7f0849[1]);

$V_9e7b8349 = 0;

foreach ($V_fe082bb6 as $V_046ab791){

$V_8586b076 = strlen($V_046ab791);

if ($V_9e7b8349 < $V_8586b076){

$V_9e7b8349 = $V_8586b076;

$V_348625a2 = $V_046ab791;

}

}

if(strlen($V_348625a2)>=20)

{

return $V_348625a2;

}

return $V_7b7f0849[1];

}

return false;

}

private function F_f78117c0($V_37e5da72) {

$V_124deaa1 = array();

$V_7c2a3c4d = $this->V_335c0928['i_rule']['quality'];

$V_229a3891 = array(

array('pattern'=>'/<!--.*-->/isU','replacement'=>''),

array('pattern'=>'/<(!doctype|xml|meta|link|base|basefont|bgsound|area|wbr)[^>]*>/isU','replacement'=>''),

array('pattern'=>'/<(html|body|noscript|font|table|dd|dl|dt|td)[^>]*>(.*)<\\/\\1>/isU', 'replacement'=>'\\2'),

array('pattern'=>'/<(script|head|style|form|textarea|select|object|noframes|frame|iframe|frameset|applet|label|embed|map).*<\\/\\1>/isU', 'replacement'=>''),

array('pattern'=>'/\\s+(class|id|name|onmouseover|onmouseout|onload|click|onclick|onload|align|rel|style|height|width|border)=([\'"])[^\\2]*\\2/isU','replacement'=>''),

array('pattern'=>'/(<(a|li|span)[^>]*?>.*?<\\/\\2>[\\s]*){3,}/i', 'replacement'=>''),

array('pattern'=>'/<([a-z1-6]*)[^>]*>[\\s\\r\\n]*<\\/\\1>/isU', 'replacement'=>''),

array('pattern'=>'/<a[^>]*(#|javascript)[^>]*>.*<\\/a>/iU', 'replacement'=>''),

array('pattern'=>'/[\\s]{5,}/', 'replacement'=>''),

array('pattern'=>'/<(tr)[^>]*>(.*)<\\/\\1>/isU', 'replacement'=>'<div>\\2</div>'),

);



$V_858a5d76 = array(

array('pattern'=>'/<([\\/]?)div[^>]*>/i', 'replacement'=>'<\\1p>'),

array('pattern'=>'/<a[^>]*>(.*)<\\/a>/isU', 'replacement'=>'\\1'),

array('pattern'=>'/<img([^>]*)>/isU', 'replacement'=>'<p align="center"><img\\1></p>'),

array('pattern'=>'/([^\'"\\=\\/])(http:\\/\\/|www\\.)[A-Za-z0-9_\\-\\.\\/]*([^A-Za-z0-9_\\-\\.\\/])/i', 'replacement'=>'\\1\\3'),

array('pattern'=>'/<([a-z1-6]*)[^>]*>[\\s\\r\\n]*<\\/\\1>/isU', 'replacement'=>''),

);



$V_f1360dc1 = '<img><p><br><span><li>';

$V_b58cad77 = array('相关','热点','上一篇','下一篇','新闻订阅','编辑','来源','【','】','本文出自','版权所有','转载请');



$V_a16474ba = $this->V_90c9e265->F_3d457c0b($V_37e5da72);

if( !$V_a16474ba ) {

throw new Exception("访问网页失败[$V_37e5da72]");

}

$V_124deaa1[self::$V_8b99ae58] = $this->F_36c3a525($V_a16474ba);

if( !preg_match('/<body[^>]*>(.*?)<\\/body>/isU', $V_a16474ba, $V_ecfb9801) ) {

throw new Exception("解析文章body部分失败");

}

$V_e0da9e50 = $V_ecfb9801[0];

if(substr_count($V_a16474ba,"\n")>2500){

throw new Exception("文章超过2500行");

}

if(substr_count($V_e0da9e50,"\n")>1500) {

throw new Exception("文章body部分超过1500行");

}

if(substr_count($V_e0da9e50,"<a")>500) {

throw new Exception("文章body部分链接数量超过500个");

}

foreach($V_229a3891 as $V_335c0928){

$V_e0da9e50 = preg_replace($V_335c0928['pattern'],$V_335c0928['replacement'],$V_e0da9e50);

}

$V_b8891396 = array();

$V_bced0fc7 = phpQuery::newDocumentHTML($V_e0da9e50);

$V_aa8e8c41 = $V_bced0fc7->find('div');

foreach ($V_aa8e8c41 as $V_aede9deb) {

$V_7f8e5f4d = pq($V_aede9deb, $V_bced0fc7)->markupOuter();

$V_b8891396[]= $V_7f8e5f4d;

}

$V_bced0fc7->unloadDocument();

$V_470d6992 = count($V_b8891396);

$V_5c0147ac = strlen(strip_tags($V_a16474ba));

$V_b70da30b = 0; unset($V_90fd4cec);

foreach($V_b8891396 as $V_b3c14d9d => $V_cccff767) {

$V_8a25031c = strlen($V_cccff767); $V_cae7efcf = strlen(strip_tags($V_cccff767)); $V_c28122b3 = pow(1-abs($V_b3c14d9d/$V_470d6992-1/2)-0.1,2); $V_939a6738 = $V_cae7efcf/$V_8a25031c; $V_8fbcc2d6 = $V_cae7efcf/$V_5c0147ac; $V_42e6856b = $V_c28122b3+$V_939a6738+$V_8fbcc2d6;



if($V_42e6856b>1 && $V_939a6738>$V_7c2a3c4d && $V_cae7efcf>$V_7c2a3c4d*1024 && $V_b70da30b<$V_42e6856b){

$V_b70da30b = $V_42e6856b;

$V_90fd4cec = $V_b3c14d9d;

}

}

if(!isset($V_90fd4cec)) {

throw new Exception("文章body部分没有找到合适的div");

}

$V_e43ee63f = $V_b8891396[$V_90fd4cec];

foreach($V_858a5d76 as $V_335c0928){

$V_e43ee63f = preg_replace($V_335c0928['pattern'],$V_335c0928['replacement'],$V_e43ee63f);

}

$V_e43ee63f = strip_tags($V_e43ee63f, $V_f1360dc1);



for($V_021fcd1d=0;$V_021fcd1d<5;$V_021fcd1d++) {

$V_8a25031c = $V_cd9882a7 = strlen($V_e43ee63f);

$V_1efa07e5 = '';

while($V_8a25031c-$V_cd9882a7<$V_8a25031c/3)

{

$V_55e2067d = '/p>';

$V_39293ee1 = '<p>';

if($V_55e2067d == $V_e43ee63f[$V_cd9882a7-3].$V_e43ee63f[$V_cd9882a7-2].$V_e43ee63f[$V_cd9882a7-1]) {

$V_1efa07e5 = '';

}

if($V_39293ee1 == $V_e43ee63f[$V_cd9882a7-3].$V_e43ee63f[$V_cd9882a7-2].$V_e43ee63f[$V_cd9882a7-1]) {

$V_1efa07e5 = '<p>'.$V_1efa07e5;

break;

}

$V_1efa07e5 = $V_e43ee63f[$V_cd9882a7-1].$V_1efa07e5;

$V_cd9882a7--;

}

foreach($V_b58cad77 as $V_d6164886) {

if(strstr($V_1efa07e5, $V_d6164886)!==false || strlen($V_1efa07e5) < 20 ) {

$V_e43ee63f = str_replace($V_1efa07e5,'',$V_e43ee63f);

}

}

}

if(strlen($V_e43ee63f) < $V_7c2a3c4d*1024) {

throw new Exception("div长度小于".$V_7c2a3c4d*1024);

}

C_24406c13::F_02151bef($V_37e5da72, $V_e43ee63f);



$V_124deaa1[self::$V_6514e1e2] = $V_e43ee63f;

$V_99dea7b9 = '/((<(td|li|span)>)?<a[^>]*?>\\[?[0-9]+\\]?<\\/a>(<\\/\\3>)?[\\s]*){2,}/i';

$V_1ac59c66 = '/(?<=href\\=[\'"]).*?(?=[\'"])/i';

if(preg_match($V_99dea7b9, $V_a16474ba, $V_ecfb9801)) { C_24406c13::F_02151bef($V_37e5da72, $V_ecfb9801[0]);

if(preg_match_all($V_1ac59c66, $V_ecfb9801[0], $V_f361ba71)) { $V_124deaa1[-1] = $V_f361ba71[0];

}

}



return $V_124deaa1;

}

}





class C_05bb23df {

private $V_15d0cba3;

public function __construct() {

$V_335c0928 = C_8e1db3be::F_75b9231e('rule');

if($V_335c0928['rule_type']=='c') {

$this->V_15d0cba3 = new C_eea48a09();

} else if($V_335c0928['rule_type']=='i') {

$this->V_15d0cba3 = new C_6c37fa19();

}

if( !C_8e1db3be::F_75b9231e('target_link_list') ) { $V_a566f459 = $this->V_15d0cba3->F_74dfb418();

C_8e1db3be::F_997da1b9('target_link_list', $V_a566f459);

}

}

public function F_730758f2() {

return count(C_8e1db3be::F_75b9231e('target_link_list'));

}

public function F_f0386d38() {

$V_a566f459 = C_8e1db3be::F_75b9231e('target_link_list');

if(count($V_a566f459)==0) return false;



$V_efc800e8 = reset($V_a566f459); $V_dfbf1e7a = key($V_a566f459);

try {

$V_1c9ab786 = $this->V_15d0cba3->F_92761be3($V_efc800e8,$V_dfbf1e7a);

$V_ecfb9801 = new C_ae222672($V_1c9ab786);

$V_1a9e29fb = $V_ecfb9801->F_76a8b23d();

$V_f0628752 = $this->F_0675bdce($V_1a9e29fb, $V_dfbf1e7a, $V_efc800e8);

} catch(Exception $V_aede9deb) {

$V_f0628752 = array( new C_802384ac($V_dfbf1e7a, $V_efc800e8, '', '', false, $V_aede9deb->getMessage()) );

}

return $V_f0628752;

}

public function F_45dfb4a4() {

$V_a566f459 = C_8e1db3be::F_75b9231e('target_link_list');

if(count($V_a566f459)==0) return ;

$V_efc800e8 = reset($V_a566f459); $V_dfbf1e7a = key($V_a566f459); unset($V_a566f459[$V_dfbf1e7a]);

C_8e1db3be::F_997da1b9('target_link_list', $V_a566f459);

}



private function F_0675bdce($V_1a9e29fb,$V_dfbf1e7a,$V_efc800e8) {

$V_f0628752 = array();

$V_8d320be6 = C_9ab0fb21::F_b8e95b8b();

$V_d104a18f = array();

foreach($V_1a9e29fb as $V_b3c14d9d=>$V_6f421cb4) {

if( $V_6f421cb4['part']=='content' ) {

foreach ($V_8d320be6 as $V_3fb6c62a) {

if( C_9ab0fb21::F_46497f67( $V_1a9e29fb[$V_b3c14d9d]['value'], $V_3fb6c62a)) { $V_d104a18f[] = $V_3fb6c62a['promotion_id'];

}

}

}

}

$V_f0628752[] = new C_802384ac($V_dfbf1e7a, $V_efc800e8, $this->F_34ff57d8($V_1a9e29fb), $V_d104a18f, false);

foreach ($V_8d320be6 as $V_3fb6c62a) {

if( $V_3fb6c62a['promotion_type'] == C_9ab0fb21::$V_69ea8ba3) {

$V_702c77ee = $V_1a9e29fb;

foreach($V_702c77ee as $V_b3c14d9d=>$V_6f421cb4) {

if($V_6f421cb4['part']=='title') {

$V_702c77ee[$V_b3c14d9d]['value']=$V_3fb6c62a['promotion_content_title'];

} else if($V_6f421cb4['part']=='content') {

$V_702c77ee[$V_b3c14d9d]['value']=$V_3fb6c62a['promotion_content'];

}

}

$V_f0628752[] = new C_802384ac($V_3fb6c62a['promotion_content_title'], $V_efc800e8, $this->F_34ff57d8($V_702c77ee), array($V_3fb6c62a['promotion_id']), true);

}

}

return $V_f0628752;

}

private function F_34ff57d8($V_1a9e29fb) {

$V_7ff61840 = array();

foreach($V_1a9e29fb as $V_6f421cb4) {

$V_7ff61840[$V_6f421cb4['name']] = $V_6f421cb4['value'];

}

return $V_7ff61840;

}



}



class C_ae222672 {



private $V_1c9ab786;

public function __construct($V_1c9ab786) {

$this->V_1c9ab786 = $V_1c9ab786;

}



private function F_c07c4bc3(&$V_457f37ef) {

foreach($V_457f37ef as &$V_e8e0148d) {

$this->F_5fad8983($V_e8e0148d['need'], $V_e8e0148d['value'], $V_e8e0148d['desc']);

$this->F_3ce23609($V_e8e0148d['value']);

$this->F_2bea7519($V_e8e0148d['value']);

$this->F_ce31955a($V_e8e0148d['value']);

if($V_e8e0148d['part']=='content') { $this->F_69f37806($V_e8e0148d['value']);

$this->F_9136c1f7($V_e8e0148d['value']);

$this->F_7f745f70($V_e8e0148d['value']);

$V_9570e878 = $V_e8e0148d['value'];

}

}

foreach($V_457f37ef as &$V_06aade2b) {

if( $V_06aade2b['part']=='title' && isset($V_9570e878) ) {

$this->F_f376a2e5($V_9570e878, $V_06aade2b['value']);

}

}

foreach($V_457f37ef as &$V_f1e279e5) {

if( $V_f1e279e5['part']=='content' ) { $this->F_44287a29($V_f1e279e5['value']);

}

}

}

private function F_5fad8983($V_13568604, $V_56defe59, $V_f8a52e9c) {

if( $V_13568604==1 && ( is_null($V_56defe59) || $V_56defe59==='' ) ) {

throw new Exception("字段[{$V_f8a52e9c}]为空");

}

}

private function F_e73ec025(&$V_e328a1ce, $V_089ff1e8) {

if( $V_089ff1e8) {

$V_1ceac22e = preg_split('/\|/', $V_089ff1e8, -1, PREG_SPLIT_NO_EMPTY); foreach($V_1ceac22e as $V_7a73916d){

$V_7a73916d = trim($V_7a73916d);

if( !empty($V_7a73916d) ) { $V_f5541db6 = false;

if( C_66df04a8::F_d54433f8($V_7a73916d, '{') &&C_66df04a8::F_6d3c088d($V_7a73916d, '}') ) {

$V_f5541db6 = true;

$V_7a73916d = mb_substr($V_7a73916d, 1, mb_strlen($V_7a73916d)-2);

}

if(mb_strpos($V_e328a1ce, $V_7a73916d)!==false) { if($V_f5541db6) { $V_e328a1ce = str_replace($V_7a73916d, '', $V_e328a1ce); } else { throw new Exception("存在不能出现的词语[$V_7a73916d]");

}

}

}

}

}

}

private function F_ce31955a(&$V_e328a1ce) {

$V_335c0928 = C_8e1db3be::F_75b9231e('rule');

if( isset($V_335c0928['i_rule']['content_filter']) ) self::F_e73ec025($V_e328a1ce, $V_335c0928['i_rule']['content_filter']);

self::F_e73ec025($V_e328a1ce, $V_335c0928['content_filter']);

}

private function F_3ce23609(&$V_e328a1ce) {

if( is_array($V_e328a1ce) ) return;

$V_28a7c380 = array(

array('pattern'=>'/\\s+(class|id|name|onmouseover|onmouseout|onload|click|onclick|onload|rel|style|height|width|border)=([\'"])[^\\2]*\\2/isU','replacement'=>''),

array('pattern'=>'/<([a-z1-6]*)[^>]*>[\\s\\r\\n]*<\\/\\1>/isU', 'replacement'=>''),

array('pattern'=>'/([^\'"\\=\\/])(http:\\/\\/|www\\.)[A-Za-z0-9_\\-\\.\\/]*([^A-Za-z0-9_\\-\\.\\/])/i', 'replacement'=>'\\1\\3'),

);

foreach($V_28a7c380 as $V_335c0928){

$V_e328a1ce = preg_replace($V_335c0928['pattern'],$V_335c0928['replacement'],$V_e328a1ce);

}

$V_e328a1ce = strip_tags($V_e328a1ce, '<img><p><br><span><font>');

}

private function F_44287a29(&$V_e328a1ce) {

$V_335c0928 = C_8e1db3be::F_75b9231e('rule');

$V_64888b2b = $V_335c0928['site']['cms']['cms_cnt_type']['article_format'];

if( $V_64888b2b=='ubb' ) {

$V_e328a1ce = str_replace("\n",'',$V_e328a1ce);

$V_e328a1ce = preg_replace("/\<A[^>]+HREF=\"([^\"]+)\"[^>]*\>(.*?)<\/a\>/i","[url=\\1]\\2[/url]",$V_e328a1ce);

$V_e328a1ce = preg_replace("/\<font(.*?)color=\"#([^ >]+)\"(.*?)\>(.*?)<\/font>/i","[color=\\2]<font\\1\\3>\\4</font>[/color]",$V_e328a1ce);

$V_e328a1ce = preg_replace("/\<font(.*?)size=\"([^ >]+)\"(.*?)\>(.*?)<\/font>/i","[size=\\2]<font\\1\\3>\\4</font>[/size]",$V_e328a1ce);

$V_e328a1ce = preg_replace("/\<font(.*?)face=\"([^ >]+)\"(.*?)\>(.*?)<\/font>/i","[font=\\2]<font\\1\\3>\\4</font>[/font]",$V_e328a1ce);

$V_e328a1ce = preg_replace("/\<font(.*?)\>(.*?)<\/font>/i","\\2",$V_e328a1ce);

$V_e328a1ce = preg_replace("/\<img[^>]+src=\"([^\"]+)\"[^>]*\>/i","[img]\\1[/img]",$V_e328a1ce);

$V_e328a1ce = preg_replace("/\<DIV[^>]+ALIGN=\"([^\"]+)\"[^>]*\>(.*?)<\/DIV\>/i","[align=\\1]\\2[/align]",$V_e328a1ce);

$V_e328a1ce = preg_replace("/\<P[^>]+ALIGN=\"([^\"]+)\"[^>]*\>(.*?)<\/P\>/i","[align=\\1]\\2[/align]",$V_e328a1ce);

$V_e328a1ce = preg_replace("/\<([\/]?)u\>/i","[\\1u]",$V_e328a1ce);

$V_e328a1ce = preg_replace("/\<([\/]?)em\>/i","[\\1I]",$V_e328a1ce);

$V_e328a1ce = preg_replace("/\<([\/]?)strong\>/i","[\\1b]",$V_e328a1ce);

$V_e328a1ce = preg_replace("/\<([\/]?)i\>/i","[\\1i]",$V_e328a1ce);

$V_e328a1ce = preg_replace("/<span(.*?)>(.*?)<\/span>/i","\\2",$V_e328a1ce);

$V_e328a1ce = preg_replace("/\<P[^>]*\>(.*?)<\/P\>/i","[align=left]\\1[/align]",$V_e328a1ce);

}

}

private function F_7f745f70(&$V_e328a1ce) {

$V_335c0928 = C_8e1db3be::F_75b9231e('rule');

if( $V_335c0928['get_remote_pic'] ) {

$V_2d0d4a4f = phpQuery::newDocumentHTML($V_e328a1ce);

$V_9d75e3ce = array();

$V_aa8e8c41 = $V_2d0d4a4f->find('img');

foreach($V_aa8e8c41 as $V_aede9deb) {

$V_1a69566f = pq($V_aede9deb, $V_2d0d4a4f)->attr('src');

$V_9d75e3ce[] = $V_1a69566f;

}

$V_9d75e3ce = array_unique($V_9d75e3ce);

$V_53c7e5ec = C_747f4492::F_4e084c9a($V_9d75e3ce);



$V_aa8e8c41 = $V_2d0d4a4f->find('img');

foreach($V_aa8e8c41 as $V_aede9deb) {

$V_1a69566f = pq($V_aede9deb, $V_2d0d4a4f)->attr('src');

if( $V_53c7e5ec[$V_1a69566f] ) {

pq($V_aede9deb, $V_2d0d4a4f)->attr('src', $V_53c7e5ec[$V_1a69566f]);

}

}



$V_e328a1ce = $V_2d0d4a4f->markupOuter();

$V_2d0d4a4f->unloadDocument();

}

}



private function F_2bea7519(&$V_e328a1ce) {

$V_335c0928 = C_8e1db3be::F_75b9231e('rule');

if($V_335c0928['tongyi'] && C_66df04a8::F_a323f72a($V_335c0928['weiyc']) ) {

$V_be56c35f = C_66df04a8::F_81719cd9(file_get_contents(ROOT.DS.'words.php'), true);

foreach ($V_be56c35f as $V_b0e95a08=>$V_916ab9f2) {

$V_e328a1ce = str_replace($V_b0e95a08, $V_916ab9f2, $V_e328a1ce);

}

}

}



private function F_69f37806(&$V_e328a1ce) {

$V_335c0928 = C_8e1db3be::F_75b9231e('rule');

if( $V_335c0928['mix'] && C_66df04a8::F_a323f72a($V_335c0928['weiyc']) ) {

$V_e328a1ce = preg_replace_callback(

'/(<p[^>]*>)(.*)(<\\/p>)/isU',

array(&$this, "_mix"),

$V_e328a1ce);

}

}



private function F_f376a2e5($V_2f771021, &$V_dfbf1e7a) {

$V_335c0928 = C_8e1db3be::F_75b9231e('rule');

if( $V_335c0928['auto_title'] && C_66df04a8::F_a323f72a($V_335c0928['weiyc']) ) {

$V_7b7f0849 = explode(',',str_replace(array(',','。'),',', strip_tags($V_2f771021)));

$V_cd9882a7=100;

while($V_cd9882a7--)

{

$V_845c720d = $V_7b7f0849[mt_rand(0,count($V_7b7f0849)-1)];

if(strlen($V_845c720d)>20 && strlen($V_845c720d)<100)

{

$V_dfbf1e7a = $V_845c720d;

return;

}

}

$V_dfbf1e7a = $V_7b7f0849[0];

return;

}

}



private function F_9136c1f7(&$V_e328a1ce) {

$V_335c0928 = C_8e1db3be::F_75b9231e('rule');

if( $V_335c0928['auto_part'] && C_66df04a8::F_a323f72a($V_335c0928['weiyc']) ) {

$V_ac48e5a4 = preg_replace('/<(\/p|br[\s]*[\/]?)>/iU','<\\1>-|-', $V_e328a1ce); $V_c13a6425 = explode('-|-',$V_ac48e5a4);

shuffle($V_c13a6425);

$V_e328a1ce = join('',$V_c13a6425);

}

}



private function _mix($V_4e24bdaa) {

$V_e328a1ce = $V_4e24bdaa[2];

$V_97d43402 = array();

$V_3b57fd3c = array('“', '(', '[', '【','<');

$V_b7d1c40b = array('”', ')', ']', '】','>');

$V_8ff113e9 = array('。','?','!', '?','!');

$V_31110230 = 0;

mb_internal_encoding("UTF-8");

for($V_cd9882a7=0;$V_cd9882a7<mb_strlen($V_e328a1ce);$V_cd9882a7++) {

$V_12fe9dbc = mb_substr($V_e328a1ce, $V_cd9882a7, 1);

if( isset($V_0d39c26d) && $V_0d39c26d ) { if( $V_12fe9dbc === $V_b7d1c40b[$V_0d39c26d] ) { $V_0d39c26d=false;

}

} else {

$V_0d39c26d = array_search($V_12fe9dbc, $V_3b57fd3c);

if($V_0d39c26d) { continue;

} else { if( in_array($V_12fe9dbc, $V_8ff113e9) ) { $V_97d43402[] = mb_substr($V_e328a1ce, $V_31110230, $V_cd9882a7-$V_31110230+1);

$V_31110230 = $V_cd9882a7+1;

}

}

}

}

if($V_31110230 < mb_strlen($V_e328a1ce)) {

$V_97d43402[] = mb_substr($V_e328a1ce, $V_31110230, mb_strlen($V_e328a1ce)-$V_31110230);

}

shuffle($V_97d43402);

$V_e328a1ce = implode('', $V_97d43402);

return $V_4e24bdaa[1].$V_e328a1ce.$V_4e24bdaa[3];

}



private function _replace($V_4e24bdaa) {

if( isset($this->V_1c9ab786[$V_4e24bdaa[1]]) ) return $this->V_1c9ab786[$V_4e24bdaa[1]];

else return $V_4e24bdaa[0];

}

public function F_76a8b23d() {

$V_1c9ab786 = $this->V_1c9ab786;

$V_335c0928 = C_8e1db3be::F_75b9231e('rule');

$V_457f37ef = $V_335c0928['site']['cms']['cms_cnt_type']['cms_field_list'];

$V_7c6e9a63 = $V_335c0928['p_field_list'];

foreach($V_457f37ef as &$V_e8e0148d) {

$V_e8e0148d['value'] = $V_e8e0148d['default_value']; if( $V_e8e0148d['type']=='multi-select' ) $V_e8e0148d['value'] = unserialize($V_e8e0148d['value']);

if( $V_e8e0148d['hidden']=='1' ) continue; foreach($V_7c6e9a63 as $V_cdfb8249) {

if($V_cdfb8249['cms_field_id']==$V_e8e0148d['id']) {

$V_e8e0148d['value'] = $V_cdfb8249['cms_field_value']; if( $V_e8e0148d['type']=='multi-select' ) $V_e8e0148d['value'] = unserialize($V_e8e0148d['value']);

$V_e8e0148d['value'] = preg_replace_callback('/\[([1-9][0-9]*)\]/isU', array(&$this, "_replace"), $V_e8e0148d['value']);

break;

}

}

}

$this->F_c07c4bc3($V_457f37ef);

return $V_457f37ef;

}



}



class C_24406c13{

private $V_0b06e8d6;

private $V_efc800e8;

private $V_2d0d4a4f;

private $V_bb654b5d;

public static $V_748fe024=1;

public static $V_f1d16188=2;



function __construct($V_0b06e8d6,$V_efc800e8=NULL){

$this->V_0b06e8d6 = $V_0b06e8d6;

$this->V_efc800e8 = $V_efc800e8;

$this->F_7df266cb(self::$V_748fe024);

}

function F_7df266cb($V_bb654b5d) {

$this->V_bb654b5d = $V_bb654b5d;

}



function __destruct() {

if( !is_null($this->V_2d0d4a4f) ) {

$this->V_2d0d4a4f->unloadDocument();

}

}



function F_399dae71() {

return $this->F_3ca16455()->markupOuter();

}



function F_d3b5bc49($V_c2840005) {

$V_55299984='';

if( !empty($V_c2840005['select_text']) ) {

$V_55299984 = $this->F_0881ea95($V_c2840005['select_text']);

}

if ( empty($V_55299984) && !empty($V_c2840005['start_text']) && !empty($V_c2840005['end_text']) ) {

$V_55299984 = $this->F_eb593c32($V_c2840005['start_text'], $V_c2840005['end_text'], $V_c2840005['include_start_end']);

}

if ( empty($V_55299984) && !empty($V_c2840005['reg']) ) {

$V_55299984 = $this->F_7ba0812d($V_c2840005['reg']);

}

return $V_55299984;

}



function F_f9ea6f95(ARRAY $V_963b2803) {

$V_46767b75 = array();

foreach($V_963b2803 as $V_1ab75b7c=>$V_c2840005) {

$V_46767b75[$V_1ab75b7c] = $this->F_d3b5bc49($V_c2840005);

}

return $V_46767b75;

}





public static function F_02151bef($V_00ce3ef0, &$V_0b06e8d6){

preg_match("/^[^\?]+/",$V_00ce3ef0,$V_07738d34); $V_07738d34 = preg_replace("|/[^\/\.]+\.[^\/\.]+$|","",$V_07738d34[0]); $V_07738d34 = preg_replace("|/$|","",$V_07738d34); $V_a9c9b8bf = parse_url($V_07738d34);

$V_5430ce26 = $V_a9c9b8bf["scheme"]."://".$V_a9c9b8bf["host"];



if(isset($V_a9c9b8bf["port"]))$V_5430ce26 .= ":".$V_a9c9b8bf["port"];



$V_37e5da72['a'] = "/(<a.+?href\s*?\=\s*?([\"\']?))(.*?)(\\2.*?>)/is"; $V_37e5da72['form'] = "/(<form.+?action\s*?\=\s*?([\"\']?))(.*?)(\\2.*?>)/is";

$V_37e5da72['src'] = "/(<img.+?src\s*?\=\s*?([\"\']?))(.*?)(\\2.*?>)/is";



$V_38b9eca4 = array("|^#|",

"|^(\/)|i", "|^(?!http://)(?!mailto:)|i", "|/\./|",

"|/[^\/]+/\.\./|"

);



$V_87994e3d = array($V_00ce3ef0."#",

$V_5430ce26."/",

$V_07738d34."/",

"/",

"/"

);

foreach ($V_37e5da72 as $V_b3c14d9d=>$V_9a297355){

preg_match_all($V_9a297355,$V_0b06e8d6,$V_a566f459);

if(count($V_a566f459[0])<=0)continue;

$V_64690128 = array_combine($V_a566f459[0],$V_a566f459[1]);

$V_4b4a0270=array_combine($V_a566f459[0],$V_a566f459[3]);

$V_e3b7a25a = array_combine($V_a566f459[0],$V_a566f459[4]);

$V_94e14641 = preg_replace($V_38b9eca4,$V_87994e3d,$V_4b4a0270);

foreach ($V_94e14641 as $V_1ab75b7c=>$V_834ea241){

$V_0b06e8d6=str_ireplace($V_1ab75b7c,$V_64690128[$V_1ab75b7c].$V_834ea241.$V_e3b7a25a[$V_1ab75b7c],$V_0b06e8d6);

}

}

}







private function F_6cd5c3b5($V_0b06e8d6){

$V_38b9eca4 = array("'<script[^>]*?>.*?</script>'si", "'<style[^>]*?>.*?</style>'si", "'<noscript[^>]*?>.*?</noscript>'si", "/<!--.*?-->/si", "'([\r\n])[\s]+'", '/\\s+(onmouseover|onmouseout|onload|click|onclick|onload)=([\'"])[^\\2]*\\2/isU',

);

$V_87994e3d = array( "",

"",

"",

"",

"\\1",

"",

);

return preg_replace($V_38b9eca4,$V_87994e3d,$V_0b06e8d6);

}



private function F_3ca16455() {

if( is_null($this->V_2d0d4a4f) ) {

$this->V_2d0d4a4f = phpQuery::newDocumentHTML($this->F_6cd5c3b5($this->V_0b06e8d6));

}

return $this->V_2d0d4a4f;

}





public function F_0881ea95($V_54de4ee2){

$V_e5bc082f = preg_split("/\s*(?=[-+]\s*\()/", $V_54de4ee2, -1, PREG_SPLIT_NO_EMPTY);

$V_b971b355 = array();

foreach($V_e5bc082f as $V_e328a1ce) {

$V_e328a1ce = trim($V_e328a1ce);

if(strpos($V_e328a1ce, '-') === 0) { preg_match('/-\s*\((.+)\)/', $V_e328a1ce, $V_4e24bdaa); $V_a8e91c94 = $V_4e24bdaa[1];

$V_0a2aea49 = 0;

} else if(strpos($V_e328a1ce, '+') === 0){ preg_match('/[+]\s*\((.+)\)/', $V_e328a1ce, $V_4e24bdaa);

$V_a8e91c94 = $V_4e24bdaa[1];

$V_0a2aea49 = 1;

} else if(strpos($V_e328a1ce, '(') === 0){ preg_match('/\((.+)\)/', $V_e328a1ce, $V_4e24bdaa);

$V_a8e91c94 = $V_4e24bdaa[1];

$V_0a2aea49 = 1;

} else { $V_a8e91c94 = $V_e328a1ce;

$V_0a2aea49 = 1;

}

if( isset($V_a8e91c94) && isset($V_0a2aea49) ) {

$V_b971b355[] = array('type'=>$V_0a2aea49, 'text'=>$V_a8e91c94);

}

}

$V_d6164886 = '';

foreach ($V_b971b355 as $V_e4b42a0d) {

if($V_e4b42a0d['type'] == 1) { $V_e328a1ce = pq($V_e4b42a0d['text'], $this->F_3ca16455())->markupOuter();

$V_d6164886 .= $V_e328a1ce;

}

}

foreach ($V_b971b355 as $V_e4b42a0d) {

if($V_e4b42a0d['type'] == 0) { $V_be8de48f = pq($V_e4b42a0d['text'], $this->F_3ca16455());

foreach($V_be8de48f as $V_aede9deb) {

$V_e328a1ce = pq($V_aede9deb, $this->F_3ca16455())->markupOuter();

$V_d6164886 = str_replace($V_e328a1ce, '', $V_d6164886);

}

}

}

self::F_02151bef($this->V_efc800e8, $V_d6164886);

return $this->F_3195123d($V_d6164886);

}



private function F_3195123d($V_0b06e8d6) {

if( $this->V_bb654b5d == self::$V_f1d16188 ) {

return $this->F_94dcb2de($V_0b06e8d6);

}

return $V_0b06e8d6;

}





public function F_7ba0812d($V_d1e1deff){

@preg_match($V_d1e1deff,$this->V_0b06e8d6,$V_a75049aa);

self::F_02151bef($this->V_efc800e8, $V_a75049aa[0]);

return $this->F_3195123d($V_a75049aa[0]);

}





public function F_eb593c32($V_2192e6cf,$V_e3b7a25a,$V_34b1c836){

$V_85a81fd2=stripos($this->V_0b06e8d6,$V_2192e6cf);

$V_869ed115=stripos($this->V_0b06e8d6,$V_e3b7a25a);

if($V_34b1c836){ $V_e328a1ce = substr($this->V_0b06e8d6,$V_85a81fd2,strlen($V_e3b7a25a)+$V_869ed115-$V_85a81fd2);

}else{ $V_e328a1ce = substr($this->V_0b06e8d6,$V_85a81fd2+strlen($V_2192e6cf),$V_869ed115-$V_85a81fd2-strlen($V_2192e6cf));

}

self::F_02151bef($this->V_efc800e8, $V_e328a1ce);

return $this->F_3195123d($V_e328a1ce);

}





public function F_79454f43($V_fcab4166) {

return $this->F_3ca16455()->find($V_fcab4166)->size();

}





private function F_94dcb2de($V_0b06e8d6){

$V_9c5f09b1 = phpQuery::newDocumentHTML($V_0b06e8d6);

$V_aa8e8c41 = $V_9c5f09b1->find('a');

$V_efaea47b = array();

foreach ($V_aa8e8c41 as $V_aede9deb) {

$V_b9bfb5d8 = pq($V_aede9deb, $V_9c5f09b1)->text();

$V_d3813778 = pq($V_aede9deb, $V_9c5f09b1)->attr('href');

$V_d3813778 = urldecode($V_d3813778); $V_b9bfb5d8 = trim($V_b9bfb5d8);

$V_d3813778 = trim($V_d3813778);

$V_efaea47b[$V_b9bfb5d8]=$V_d3813778;

}

$V_efaea47b=array_unique($V_efaea47b);

$V_9c5f09b1->unloadDocument();

return $V_efaea47b;

}

}





class C_1ecb555c {



private $V_8c190fb0;





private $V_124deaa1;





private $V_c1d46ea2;



private $V_04e064f4=array();





private $V_02c703a2=array();







private $V_7ed6044d;

public function __construct($V_8c190fb0) {

$this->V_8c190fb0 = $V_8c190fb0;



try {

$this->F_bee15e4c();

$this->V_8c190fb0 = $this->F_32c3fbd6($this->V_8c190fb0);

} catch(Exception $V_aede9deb) {

$this->V_7ed6044d = $V_aede9deb->getMessage();

}

}



private function F_cc06d2c6() {

$V_c3acbe03 = $this->V_04e064f4['cjc_db_charset'];

if( strcasecmp($V_c3acbe03, 'utf8')==0 ) { $this->V_04e064f4['cjc_db_charset'] = 'utf-8';

}

}

private function F_bee15e4c() {

$this->F_dff05ee3();

$V_dbd33a9a = $this->V_c1d46ea2.$this->V_8c190fb0['cms']['db_config'];

$V_b60184e0 = array('db_host','db_port','db_user','db_password','db_charset','db_name','db_pre',);

$V_005fba8e = array();

foreach($V_b60184e0 as $V_f2f10cac) {

$V_005fba8e[] = $this->V_8c190fb0['cms'][$V_f2f10cac];

}

$V_1ade7df3 = $this->F_ffe84340( $V_dbd33a9a, $V_005fba8e );

foreach($V_b60184e0 as $V_f2f10cac) {

$this->V_04e064f4['cjc_'.$V_f2f10cac] = isset($V_1ade7df3[$this->V_8c190fb0['cms'][$V_f2f10cac]]) ? $V_1ade7df3[$this->V_8c190fb0['cms'][$V_f2f10cac]] : false;

}

$V_10d703c1=$this->V_04e064f4['cjc_db_host'];

$V_d90e552c=$this->V_04e064f4['cjc_db_port'];

$V_10d703c1=$V_10d703c1.(empty($V_10d703c1)?'':':'.$V_d90e552c);

$V_e0d079c4=$this->V_04e064f4['cjc_db_user'];

$V_deab006f=$this->V_04e064f4['cjc_db_password'];

$V_79513ec5=$this->V_04e064f4['cjc_db_name'];

if( !mysql_connect($V_10d703c1, $V_e0d079c4, $V_deab006f) ) throw new Exception("连接数据库失败");

if( !mysql_set_charset($this->V_04e064f4['cjc_db_charset'])) throw new Exception("设置数据库编码失败");

if( !mysql_select_db($V_79513ec5) ) throw new Exception("选择数据库失败");

$V_9a5d0c35 = $this->F_87994e3d($this->V_8c190fb0['cms']['select_user_sql']);

if( !($V_a75049aa=mysql_query($V_9a5d0c35)) ) throw new Exception("获取发布用户失败");

$this->V_04e064f4['cjc_userid']= mysql_result($V_a75049aa,0,0);

$this->V_04e064f4['cjc_username']= mysql_result($V_a75049aa,0,1);



$this->F_cc06d2c6();

}



public function F_35709010($V_124deaa1) {

$this->V_124deaa1 = $V_124deaa1;

}



private function F_69e8f6c9($V_952eed97) {

$V_952eed97 = trim($V_952eed97);

}

private function F_5acb925f($V_c898200b) {

$V_c898200b = trim($V_c898200b);

if( !empty($V_c898200b) ) {

if( strpos($V_c898200b, ">")!==false ) {

$V_85c120a9=">";

} else if( strpos($V_c898200b, "<")!==false ) {

$V_85c120a9="<";

}

$V_efaea47b = explode($V_85c120a9, $V_c898200b);

$V_b9c19bfd = trim($V_efaea47b[0]);

$V_a49dfb7a = trim($V_efaea47b[1]);

$V_aa439255 = substr($V_b9c19bfd, 1);

$V_c0b4a36e = $this->V_02c703a2[$V_aa439255];

$V_80e02df0 = is_numeric($V_a49dfb7a) ? (int)$V_a49dfb7a : $V_a49dfb7a;

if( $V_85c120a9=='>' ) {

return $V_c0b4a36e>$V_80e02df0;

} else if( $V_85c120a9=='<' ) {

return $V_c0b4a36e<$V_80e02df0;

}

}

return true;

}

private function F_f72fb67a($V_165345a5) {

$V_165345a5 = trim($V_165345a5);

if( !empty($V_165345a5) ) {

if( strpos($V_165345a5, "--")!==false ) {

$V_a49dfb7a="--";

} else if( strpos($V_165345a5, "++")!==false ) {

$V_a49dfb7a="++";

}

$V_b9c19bfd = substr($V_165345a5, 0, strlen($V_165345a5)-strlen($V_a49dfb7a));

$V_aa439255 = substr($V_b9c19bfd, 1);

$V_c0b4a36e = $this->V_02c703a2[$V_aa439255];

if( $V_a49dfb7a=='--' ) {

$V_c0b4a36e--;

$this->V_02c703a2[$V_aa439255]=$V_c0b4a36e;

} else if( $V_a49dfb7a=='++' ) {

$V_c0b4a36e++;

$this->V_02c703a2[$V_aa439255]=$V_c0b4a36e;

}

}

}

private function F_ba76b698($V_793bb76a) {

$V_793bb76a = trim($V_793bb76a);

if ( !empty($V_793bb76a) ) {

if( strpos($V_793bb76a, ">")!==false ) {

$V_85c120a9=">";

} else if( strpos($V_793bb76a, "<")!==false ) {

$V_85c120a9="<";

}

$V_efaea47b = explode($V_85c120a9, $V_793bb76a);

$V_b9c19bfd = trim($V_efaea47b[0]);

$V_a49dfb7a = trim($V_efaea47b[1]);

$V_aa439255 = substr($V_b9c19bfd, 1);

$V_c0b4a36e = $this->V_02c703a2[$V_aa439255];

$V_80e02df0 = is_numeric($V_a49dfb7a) ? (int)$V_a49dfb7a : $V_a49dfb7a;

if( $V_85c120a9=='>' ) {

return $V_c0b4a36e > $V_80e02df0;

} else if( $V_85c120a9=='<' ) {

return $V_c0b4a36e < $V_80e02df0;

}

}

return false;

}

private static $V_64dbeca4='for';

private static $V_dfbf2053='if';

private static $V_96045975='foreach';

private static $V_141edef5='select';

private static $V_43d4fba0='insert';

private static $V_d608ab4c='others';

private static $V_3c667e2f='assign';

private static $V_c55cd4d2='cur';

private static $V_3f6e467f='left';

private static $V_eefaa27d='cur_type';

private static $V_03621274='cur_condition';

private static $V_c14cefab='cur_inside';

private static $V_6956cad6='cur_ret';

private function F_ebb3d686($V_d6164886) {

$V_d6164886 = trim($V_d6164886);

$V_7af49113 = array();

if( C_66df04a8::F_d54433f8($V_d6164886, self::$V_64dbeca4)

|| C_66df04a8::F_d54433f8($V_d6164886, self::$V_dfbf2053)

|| C_66df04a8::F_d54433f8($V_d6164886, self::$V_96045975) ) { $V_c7e36af0=0; $V_e971695c=0; for($V_cd9882a7=0;$V_cd9882a7<strlen($V_d6164886);$V_cd9882a7++) {

if( $V_d6164886[$V_cd9882a7]=='(' ) {

$V_c7e36af0++;

} else if( $V_d6164886[$V_cd9882a7]==')' ) {

$V_e971695c++;

}

if( $V_c7e36af0==$V_e971695c && $V_c7e36af0!==0 ) { $V_c13a6425 = strpos($V_d6164886, '(');

$V_aede9deb = $V_cd9882a7;

$V_0d32581a=substr($V_d6164886, $V_c13a6425+1, $V_aede9deb-$V_c13a6425-1);

$V_7af49113[self::$V_03621274]=$V_0d32581a;

break;

}

}

$V_5e216d51=0; $V_77d53f6c=0;

for($V_cd9882a7=0;$V_cd9882a7<strlen($V_d6164886);$V_cd9882a7++) {

if( $V_d6164886[$V_cd9882a7]=='{' ) {

$V_5e216d51++;

} else if( $V_d6164886[$V_cd9882a7]=='}' ) {

$V_77d53f6c++;

}

if( $V_5e216d51==$V_77d53f6c && $V_5e216d51!==0 ) { $V_05ffda05 = substr($V_d6164886, 0, $V_cd9882a7+1);

$V_b9c19bfd = substr($V_d6164886, strpos($V_d6164886, $V_05ffda05)+strlen($V_05ffda05));

$V_c13a6425 = strpos($V_d6164886, '{');

$V_aede9deb = $V_cd9882a7;

$V_63ae27cd=substr($V_d6164886, $V_c13a6425+1, $V_aede9deb-$V_c13a6425-1);

$V_7af49113[self::$V_c55cd4d2]=$V_05ffda05;

$V_7af49113[self::$V_3f6e467f]=$V_b9c19bfd;

if( C_66df04a8::F_d54433f8($V_d6164886, self::$V_96045975) ) { $V_7af49113[self::$V_eefaa27d]=self::$V_96045975;

} else if( C_66df04a8::F_d54433f8($V_d6164886, self::$V_64dbeca4) ) {

$V_7af49113[self::$V_eefaa27d]=self::$V_64dbeca4;

} else if( C_66df04a8::F_d54433f8($V_d6164886, self::$V_dfbf2053) ) {

$V_7af49113[self::$V_eefaa27d]=self::$V_dfbf2053;

}

$V_7af49113[self::$V_c14cefab]=$V_63ae27cd;

break;

}

}

} else { $V_efaea47b = preg_split('/(?<=;)\s+/isU', $V_d6164886, -1, PREG_SPLIT_NO_EMPTY);

$V_e3fa64e3 = explode('==', $V_efaea47b[0]);

if( count($V_e3fa64e3)==2 ) { $V_a49dfb7a=trim($V_e3fa64e3[1]);

$V_7af49113[self::$V_6956cad6]=trim($V_e3fa64e3[0]);

} else {

$V_a49dfb7a=trim($V_e3fa64e3[0]);

$V_7af49113[self::$V_6956cad6]='';

}

if( C_66df04a8::F_d54433f8($V_a49dfb7a, self::$V_43d4fba0) ) {

$V_7af49113[self::$V_eefaa27d]=self::$V_43d4fba0;

} else if( C_66df04a8::F_d54433f8($V_a49dfb7a, self::$V_141edef5) ) {

$V_7af49113[self::$V_eefaa27d]=self::$V_141edef5;

} else if( C_66df04a8::F_d54433f8($V_a49dfb7a, 'delete') || C_66df04a8::F_d54433f8($V_a49dfb7a, 'update') ) { $V_7af49113[self::$V_eefaa27d]=self::$V_d608ab4c;

} else { $V_7af49113[self::$V_eefaa27d]=self::$V_3c667e2f;

}

$V_7af49113[self::$V_c55cd4d2]=$V_a49dfb7a;

$V_7af49113[self::$V_3f6e467f]=substr($V_d6164886, strpos($V_d6164886, $V_a49dfb7a)+strlen($V_a49dfb7a));

}

return $V_7af49113;

}

private function F_23231a17($V_f312efb5) {

$V_f312efb5 = trim($V_f312efb5);

$V_f312efb5 = $this->F_87994e3d($V_f312efb5);

if( !($V_a75049aa=mysql_query($V_f312efb5)) ) throw new Exception("执行SQL语句失败:$V_f312efb5");

return $V_a75049aa;

}

private function F_25cbad01($V_7af49113) {

$V_0452f8ca = trim($V_7af49113[self::$V_6956cad6]);

$V_0452f8ca = substr($V_0452f8ca, 1); $V_9959e1d7 = trim($V_7af49113[self::$V_c55cd4d2]);

$V_9959e1d7 = substr($V_9959e1d7, 0, strlen($V_9959e1d7)-1); $this->V_02c703a2[$V_0452f8ca] = $this->F_ef248386($V_9959e1d7);

}

private function F_b1606eb9($V_7af49113) {

$V_793bb76a = $V_7af49113[self::$V_03621274]; if( $this->F_ef248386($V_793bb76a) ) {

$this->F_6e43d973($V_7af49113[self::$V_c14cefab]); }

}



private function F_6e43d973($V_d6164886) {

$V_d6164886 = trim($V_d6164886);

if( !empty($V_d6164886) ) { $V_7af49113 = $this->F_ebb3d686($V_d6164886);

if( $V_7af49113[self::$V_eefaa27d]==self::$V_64dbeca4 ) { $V_793bb76a = $V_7af49113[self::$V_03621274]; $V_fd12fc4b = explode(";", $V_793bb76a); $this->F_69e8f6c9($V_e3a30264[0]);

while($this->F_5acb925f($V_c898200b)) {

$this->F_6e43d973($V_7af49113[self::$V_c14cefab]); $this->F_f72fb67a($V_e3a30264[2]);

}

} else if( $V_7af49113[self::$V_eefaa27d]==self::$V_dfbf2053 ) { $this->F_b1606eb9($V_7af49113);

} else if( $V_7af49113[self::$V_eefaa27d]==self::$V_96045975 ) { $V_793bb76a = $V_7af49113[self::$V_03621274]; $V_9863b426 = explode('as', $V_793bb76a);

$V_f348f67a = trim($V_9863b426[0]);

$V_f348f67a = substr($V_f348f67a, 1); $V_324c6d68 = trim($V_9863b426[1]);

$V_324c6d68 = explode('=>', $V_324c6d68);

if(count($V_324c6d68)==2) { $V_371fceea = trim($V_324c6d68[0]);

$V_371fceea = substr($V_371fceea, 1); $V_58bc8357 = trim($V_324c6d68[1]);

$V_58bc8357 = substr($V_58bc8357, 1); } else { $V_58bc8357 = trim($V_324c6d68[0]);

$V_58bc8357 = substr($V_58bc8357, 1); }

$V_81bc4e03 = $this->F_c0e2cc67($V_f348f67a);

foreach( $V_81bc4e03 as $V_b3c14d9d=>$V_9a297355) {

if( isset($V_371fceea) ) {

$this->V_02c703a2[$V_371fceea] = $V_b3c14d9d;

}

$this->V_02c703a2[$V_58bc8357] = $V_9a297355;

$this->F_6e43d973($V_7af49113[self::$V_c14cefab]); }

} else if( $V_7af49113[self::$V_eefaa27d]==self::$V_141edef5 ) { $V_f312efb5 = $V_7af49113[self::$V_c55cd4d2];

$V_a75049aa = $this->F_23231a17($V_f312efb5);

if( !empty($V_7af49113[self::$V_6956cad6]) ) { $V_472b0444 = mysql_num_rows($V_a75049aa);

$V_1c4f2775 = explode(',', $V_7af49113[self::$V_6956cad6]);

for($V_cd9882a7=0;$V_cd9882a7<count($V_1c4f2775);$V_cd9882a7++) {

$V_aa439255 = trim($V_1c4f2775[$V_cd9882a7]);

$V_aa439255 = substr($V_aa439255, 1); if($V_472b0444>0) { $V_c0b4a36e = mysql_result($V_a75049aa,0,$V_cd9882a7);

$this->V_02c703a2[$V_aa439255]=$V_c0b4a36e;

} else { $this->V_02c703a2[$V_aa439255]=false;

}

}

}

} else if( $V_7af49113[self::$V_eefaa27d]==self::$V_43d4fba0 ) { $V_f312efb5 = $V_7af49113[self::$V_c55cd4d2];

$this->F_23231a17($V_f312efb5);

if( !empty($V_7af49113[self::$V_6956cad6]) ) { $V_aa439255 = trim($V_7af49113[self::$V_6956cad6]);

$V_aa439255 = substr($V_aa439255, 1); $V_2332e882 = mysql_insert_id();

$this->V_02c703a2[$V_aa439255]=$V_2332e882;

}

} else if( $V_7af49113[self::$V_eefaa27d]==self::$V_d608ab4c ) { $V_f312efb5 = $V_7af49113[self::$V_c55cd4d2];

$this->F_23231a17($V_f312efb5);

} else if( $V_7af49113[self::$V_eefaa27d]==self::$V_3c667e2f ) {

$this->F_25cbad01($V_7af49113);

}

$this->F_6e43d973($V_7af49113[self::$V_3f6e467f]); }

}





private function F_32c3fbd6($V_9a297355) {

if( strcasecmp($this->V_04e064f4['cjc_db_charset'], 'utf-8')==0 ) return $V_9a297355; if( is_array($V_9a297355) ) { $V_abb11796 = array();

foreach($V_9a297355 as $V_1ab75b7c=>$V_56defe59) {

$V_abb11796[$V_1ab75b7c] = $this->F_32c3fbd6($V_56defe59);

}

return $V_abb11796;

} else { $V_8df1f871 = 'UTF-8';

$V_9a297355 = iconv($V_8df1f871, $this->V_04e064f4['cjc_db_charset']."//TRANSLIT//IGNORE", $V_9a297355);

return $V_9a297355;

}

}



private function F_2d4779c4($V_9a297355) {

if( strcasecmp($this->V_04e064f4['cjc_db_charset'], 'utf-8')==0 ) return $V_9a297355; if( is_array($V_9a297355) ) { $V_abb11796 = array();

foreach($V_9a297355 as $V_1ab75b7c=>$V_56defe59) {

$V_abb11796[$V_1ab75b7c] = $this->F_2d4779c4($V_56defe59);

}

return $V_abb11796;

} else { $V_8df1f871 = $this->V_04e064f4['cjc_db_charset'];

$V_9a297355 = iconv($V_8df1f871, "UTF-8//TRANSLIT//IGNORE", $V_9a297355);

return $V_9a297355;

}

}

private function F_c008b28e() {

try {

mysql_query("BEGIN"); $this->V_02c703a2 = array(); $V_8150d7e1 = $this->V_8c190fb0['cms']['cms_cnt_type']['insert_article_sql'];

$V_3e23f5e7 = $this->V_8c190fb0['cms']['cms_cnt_type']['article_url'];

$V_8150d7e1 = preg_replace('/\/\*(.)*\*\//iU','', $V_8150d7e1); $this->F_6e43d973($V_8150d7e1);

mysql_query('commit');

mysql_query("END"); $V_3e23f5e7 = $this->F_87994e3d($V_3e23f5e7);

$V_3e23f5e7 = $_POST['site_url'].$V_3e23f5e7;

return array('err'=>'', 'url'=>$V_3e23f5e7);

} catch(Exception $V_aede9deb) {

mysql_query('rollback');

mysql_query("END"); return array('err'=>$V_aede9deb->getMessage());

}

}



private function F_c2d40fd7($V_576a7329) {

try {

$V_ce787beb = $this->F_87994e3d($V_576a7329);

if( !($V_a75049aa=mysql_query($V_ce787beb)) ) throw new Exception("执行SQL语句失败:$V_ce787beb");

if( !($V_83887ec7 = mysql_num_rows($V_a75049aa)) ) throw new Exception("获取结果集的行数失败");



$V_63dafc01 = array();

while ($V_2f2d613f = mysql_fetch_array($V_a75049aa, MYSQL_NUM)) {

$V_63dafc01[] = $V_2f2d613f;

}

return $V_63dafc01;

} catch(Exception $V_aede9deb) {

return array('err'=>$V_aede9deb->getMessage());

}

}



public function F_b75abf22() {

if( $this->V_7ed6044d ) {

return array('err'=>$this->V_7ed6044d);

}



try {



$V_124deaa1 = $this->V_8c190fb0['cms']['cms_cnt_type']['cms_field_list'];

$V_c5294f33= array();

foreach($V_124deaa1 as $V_6f421cb4) {

if( $V_6f421cb4['data_source']=='remote' && !empty($V_6f421cb4['data_remote']) ) {

$V_c5294f33[$V_6f421cb4['id']] = $V_6f421cb4['data_remote'];

}

}

$V_a75049aa = array();

foreach($V_c5294f33 as $V_2332e882=>$V_f312efb5) {

$V_a75049aa[$V_2332e882] = $this->F_c2d40fd7($V_f312efb5);

}

$V_a75049aa = $this->F_2d4779c4($V_a75049aa);

return array('err'=>'', 'data'=>$V_a75049aa);

} catch(Exception $V_aede9deb) {

return array('err'=>$V_aede9deb->getMessage());

}

}



public function F_0297c1ee() {

if( $this->V_7ed6044d ) {

return array('err'=>$this->V_7ed6044d);

}



$this->V_124deaa1 = $this->F_32c3fbd6($this->V_124deaa1);



return $this->F_c008b28e();

}

private function F_87994e3d($V_f312efb5) {

$V_f312efb5 = preg_replace_callback("/([.]?)[$](\w+)([.]?)/is", array(&$this, 'replaceVar'), $V_f312efb5);

$V_f312efb5 = preg_replace_callback('/\<(.*)\((.*)\)\>/isU', array(&$this, 'replaceFunc'), $V_f312efb5);

return $V_f312efb5;

}

private function F_c0e2cc67($V_79513ec5) {

$V_79513ec5 = trim($V_79513ec5);

if( C_66df04a8::F_d54433f8($V_79513ec5, '.') ) $V_79513ec5 = substr($V_79513ec5, 1); if( C_66df04a8::F_6d3c088d($V_79513ec5, '.') ) $V_79513ec5 = substr($V_79513ec5, 0, strlen($V_79513ec5)-1); if( C_66df04a8::F_d54433f8($V_79513ec5, '$')) $V_79513ec5 = substr($V_79513ec5, 1); if( isset($this->V_04e064f4[$V_79513ec5]) ) {

return $this->V_04e064f4[$V_79513ec5];

}

if( isset($this->V_02c703a2[$V_79513ec5]) ) {

return $this->V_02c703a2[$V_79513ec5];

}

if ( isset($this->V_124deaa1[$V_79513ec5]) ) {

return $this->V_124deaa1[$V_79513ec5];

}

throw new Exception("变量[$V_79513ec5]不存在");

}

private function replaceVar($V_4e24bdaa) {

return $this->F_c0e2cc67($V_4e24bdaa[0]);

}

private function F_ef248386($V_9959e1d7) {

$V_9959e1d7 = trim($V_9959e1d7);

$V_9959e1d7 = substr($V_9959e1d7, 1, strlen($V_9959e1d7)-2);

$V_8deda7fe = explode('(', $V_9959e1d7);

$V_e908b54b = trim($V_8deda7fe[0]);

$V_d785197a = trim($V_8deda7fe[1]);

$V_d785197a = substr($V_d785197a, 0, strlen($V_d785197a)-1); $V_89981efe = $V_e908b54b;

$V_ba1394f4 = explode(',', $V_d785197a);

foreach($V_ba1394f4 as $V_1ab75b7c=>$V_11ab85f1) {

$V_11ab85f1 = trim($V_11ab85f1);

if( C_66df04a8::F_d54433f8($V_11ab85f1, '$') ) { $V_11ab85f1 = $this->F_c0e2cc67($V_11ab85f1);

$V_ba1394f4[$V_1ab75b7c] = $V_11ab85f1;

}

}

if( method_exists($this, $V_89981efe) ) {

$V_a75049aa = call_user_func_array(array($this, $V_89981efe), $V_ba1394f4);

return $V_a75049aa;

}

if( function_exists($V_89981efe) ) {

$V_a75049aa = call_user_func_array($V_89981efe, $V_ba1394f4);

return $V_a75049aa;

}

throw new Exception("函数或方法[$V_89981efe]不存在");

}

private function replaceFunc($V_4e24bdaa) {

return $this->F_ef248386($V_4e24bdaa[0]);

}

private function func_not_empty($V_e328a1ce) {

return !empty($V_e328a1ce);

}

private function func_empty($V_e328a1ce) {

return empty($V_e328a1ce);

}

private function func_equal_yes($V_e328a1ce) {

if( strcasecmp($V_e328a1ce, 'yes')===0 ) {

return true;

}

return false;

}

private function func_array_push($V_e5bc082f, $V_9a297355) {

$V_e5bc082f[] = $V_9a297355;

return $V_e5bc082f;

}

private function func_glue_comma() {

$V_ba1394f4 = func_get_args();

$V_b1fdf436 = array();

foreach($V_ba1394f4 as $V_11ab85f1){

$V_11ab85f1 = trim($V_11ab85f1);

if( !empty($V_11ab85f1) ) $V_b1fdf436[] = $V_11ab85f1;

}

return implode(',', $V_b1fdf436);

}

private function func_explode_tag_comma($V_fd9e9cb6) {

$V_fd9e9cb6 = str_replace(',', ',', $V_fd9e9cb6);

$V_bfac1126 = preg_split('/,/isU', $V_fd9e9cb6, -1, PREG_SPLIT_NO_EMPTY);

foreach($V_bfac1126 as $V_1ab75b7c=>$V_6180b332) {

$V_6180b332 = trim($V_6180b332);

if( empty($V_6180b332) ) {

unset($V_bfac1126[$V_1ab75b7c]);

}

}

return $V_bfac1126;

}

private function func_explode_tag_space($V_fd9e9cb6) {

$V_fd9e9cb6 = str_replace(' ', ' ', $V_fd9e9cb6); $V_bfac1126 = preg_split('/ /isU', $V_fd9e9cb6, -1, PREG_SPLIT_NO_EMPTY);

foreach($V_bfac1126 as $V_1ab75b7c=>$V_6180b332) {

$V_6180b332 = trim($V_6180b332);

if( empty($V_6180b332) ) {

unset($V_bfac1126[$V_1ab75b7c]);

}

}

return $V_bfac1126;

}



public function __destruct() {

@mysql_close();

}

private function F_dff05ee3() {

$V_13271340 = $_POST['site_url'];

$this->V_04e064f4['cjc_site_url'] = $V_13271340;

$V_50b75a89 = $_SERVER["DOCUMENT_ROOT"]; if($V_50b75a89[strlen($V_50b75a89)-1] === DIRECTORY_SEPARATOR) $V_50b75a89 = substr($V_50b75a89, 0, strlen($V_50b75a89)-1);

$V_dcfc2d04 = parse_url($V_13271340);

if( isset($V_dcfc2d04['path']) ) $V_50b75a89 .= preg_replace('/\\//', DIRECTORY_SEPARATOR, $V_dcfc2d04['path']);

if($V_50b75a89[strlen($V_50b75a89)-1] === DIRECTORY_SEPARATOR) $V_50b75a89 = substr($V_50b75a89, 0, strlen($V_50b75a89)-1);

if( !file_exists($V_50b75a89) ) {

throw new Exception('获取CMS根目录失败');

}

$this->V_c1d46ea2 = $V_50b75a89;

}

private function F_ffe84340($V_1518103b, $V_005fba8e) {

$V_e328a1ce = file_get_contents($V_1518103b);

$V_b15109f9 = array();

preg_match_all("/^(.*)\s*(,|=|=>)\s*('|\")(.*)\\3/isUm", $V_e328a1ce, $V_4e24bdaa, PREG_SET_ORDER);

foreach($V_005fba8e as $V_79513ec5) {

if( !empty($V_79513ec5) ) {

foreach ($V_4e24bdaa as $V_834ea241) {

if( strpos($V_834ea241[1], $V_79513ec5) !== false) {

$V_b15109f9[$V_79513ec5] = $V_834ea241[4];

break;

}

}

}

}

return $V_b15109f9;

}

}



$V_7e653b36 = new C_14117c42();

$V_7e653b36->F_e113ffb1();

?>
vivi万能小偷程序是以php语言进行开发的网站采集系统,只需要输入目标站地址就能全自动采集,高智能的采集程序,支持98%的站点,规则制作十分简单,菜鸟也能制作采集规则,采集不求人。 功能简介: ·后台配置采集节点,输入目标站地址即可全自动智能转换自动全站采集 ·支持https、支持POST获取、支持搜索、支持cookie、支持代理、支持破解防盗链、支持破解防采集 ·全自动分析,内外链接自动转换、图片地址、css、js,自动分析CSS内的图片使得页面风格不丢失 ·广告标签,方便在规则里直接替换广告代码 ·支持自定义标签,标签可自定义内容、自由截取、内容正则截取。可以放在模板里,也可以在规则里替换 ·支持自定义模板,可使用标签diy个性模板,真正做到内容上移花接木 ·调试模式,可观察采集性能,便于发现和解决各种错误 ·多条采集规则一键切换,支持导入导出 ·内置强大替换和过滤功能,标签过滤、站内外过滤、字符串替换、等等 ·IP屏蔽功能,屏蔽想要屏蔽IP地址让它无法访问 蜘蛛访问记录 高级功能 ·url过滤功能,可过滤屏蔽不采集指定链接 ·伪原创,近义词替换有利于seo ·伪静态,url伪静态化,有利于seo ·自动缓存自动更新,可设置缓存时间达到自动更新,css缓存 ·简繁体互转 ·代理IP、伪造IP、随机IP、伪造user-agent、伪造referer来路、自定义cookie,以便应对防采集措施 ·url地址加密转换,个性化url,让你的url地址与众不同 ·关键词内链功能 ·插件机制,内容灵活控制 ·还有更多功能等你发现…… ftp上传需使用二进制上传方式,方法请百度 data文件夹需要读写权限 首次使用程序请到后台进行相关设置,否则出现错位、空白等现象 默认后台:http://网站地址/@admin/index.php 默认账号: admin 默认密码: admin 程序使用环境 php5.2 - php5.5 vivi万能小偷程序 v4.0 更新日志: 1.增加采集开关,关闭时将停止采集仅使用缓存 2.增加替换支持首页和内页区分 3.增加禁止手机版搜索引擎转码 4.增加目标站编码自动识别 5.增加支持首页使用目标站标题 6.优化替换算法 7.优化后台采集节点界面 8.强化后台插件管理 9.仅保留最近1万条蜘蛛记录,为提高性能
采集车 当前版本:V1.1 采集车是一款完全免费的万能采集工具,无论您是使用wordpress,dede或其它任何系统管理您的知识,只要您经过简单的上传操作,系统就可以完美运。 使用方法: 第一步:下载客户端放入网站的根目录 第二步:到官网注册采集车帐号并绑定站点 第三步:从客户网站访问(用浏览器打开)采集车文件caijiche.php,并输入官网免费提供的激活码激活程序,此激活码的功能是为了通信完全设计。 第四步:到采集车官网控制客户端进行采集。 官方网站:www.caijiche.com 联系方式:QQ:caijiche@gmail.com(2558581450) 如果用数字搜索不到,请用EMAIL搜索QQ帐号 EMAIL:caijiche@gmail.com 官方论坛:http://www.caijiche.com/forum 下载地址:http://www.caijiche.com/release/caijiche.zip 视频教程网址:http://www.caijiche.com/forum/forum.php?mod=viewthread&tid=35&extra=page=1 采集车具有以特征: 1、完全免费 采集车是一款完全免费的信息收集工具,我们本着团结共享的精神,尽量压缩建站成本。 2、高通用性 无论您是使用wordpress,dede或其它任何系统管理您的知识,只要您经过简单的上传操作,系统就可以完美运行; 3、高稳定性 系统具有高稳定性,只要简单设计好任务,系统就可以完全按照您的意愿完美执行,您要做的就是坐享其成!; 4、高速采集 系统经过大量优化,占用CPU小,运行速度快,让您的服务器物尽其用!告别挂机采集! 5、智能采集 系统具有智能采集引擎,您只需要选择您要采集的关键词,系统将按您的要求自动查找相关文章并发到到您的系统当中; 6、智能发布 整个发布过程完全智能化,当然您还可以按照您的需求进行个性化的设置,完美兼容各种内容管理系统; 7、定时任务 定时任务可以让您的网站定时得到更新,告别繁琐的管理过程,把每天有限的精力集中到其它工作上!; 8、活动推广 活动推广可以让您简单轻松的推广您自己的网站和协助他人推广网站,通过大家的相互协作,达到共同进步的目的。 9、规则共享 所有的采集规则可以共享,共享后其它朋友可以使用您的规则进行采集,当然,这样您肯定可以获得应有的回报! 10、安全性高 系统所有协议均采用高强度加密算法进行加密,程序入口单一,通信安全放心!
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值