elseif($tracker == 'pornolab') { $snoopy = new Snoopy; $snoopy->proxy_host = '46.4.90.38'; $snoopy->proxy_port = '3128'; $snoopy->host = "pornolab.net"; $snoopy->agent = "opera"; $snoopy->rawheaders["Pragma"] = "no-cache"; $snoopy->_submit_method = "POST"; $submit_vars = array ( 'login_username' => $auth['pornolab']['login'], 'login_password' => $auth['pornolab']['pass'], 'login' => true, ); $snoopy->submit("http://pornolab.net/forum/login.php", $submit_vars); $snoopy->_httpmethod = "GET"; $snoopy->fetch($url); $content = iconv('windows-1251', 'UTF-8', $snoopy->results); $pos = strpos($content, 'humn_size'); $content = substr($content, 0, $pos); if (!$content) { meta_refresh('release.php', '2'); bb_die('false content'); } function pornolab($text, $mode=false) { if($mode == 'title') { preg_match_all ("#

([\s\S]*?)

#", $text, $source, PREG_SET_ORDER); $text = $source[0][1]; $text = str_replace('', '', $text); } elseif($mode == 'torrent') { preg_match_all ("#'); $text = substr($text, 0, $pos); $text = preg_replace('/
/', '', $text); $text = preg_replace('##', '', $text); $text = preg_replace('#\n

.*?

#', '', $text); $text = str_replace('
', '', $text); $text = str_replace('
', '', $text); $text = str_replace('
', '', $text); $text = preg_replace('##', '', $text); $text = preg_replace('#([\s\S]*?)#', '$1', $text); $text = str_replace('-', "\n[hr]\n", $text); $text = preg_replace('#
([\s\S]*?)
#', '$1', $text); $text = preg_replace('#
([\s\S]*?)
#', '$1', $text); $text = preg_replace('/ <\/var>/', '[img]$1[/img]', $text); $text = preg_replace('/ <\/var>/', "[img=\\1]\\2[/img]\n", $text); $text = str_replace('
', "\n\n", $text); $text = preg_replace('//', '', $text); $text = preg_replace('/