Multi Search
'; echo ''; echo ''; if(isset($_GET['page'])){ $page = $_GET['page']; } if(!isset($_GET['page'])){ $page = 0; } if(isset($_GET['hal'])){ if($_GET['hal'] > 0) { $page = ($_GET['hal']-1)*10; } } $p = $page; if(isset($_GET['search'])){ $search = $_GET['search']; $search = str_replace('"', "'", $search); $search = str_replace(' ', "+", $search); $search = stripslashes($search); $ext = $_GET['ext']; $url = "http://search.4shared.com/network/search.jsp?sortType=1&sortOrder=1&sortmode=3&searchName=".$search."&searchmode=3&searchName=".$search."&searchDescription=&searchExtention=".$ext."&sizeCriteria=atleast&sizevalue=10&start=".$page; $result = file_get_contents($url); /* $ch = curl_init(); curl_setopt ($ch, CURLOPT_URL, $url); curl_setopt ($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_TIMEOUT, 10); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt ($ch, CURLOPT_AUTOREFERER, 1); curl_setopt ($ch, CURLOPT_USERAGENT, $agen); curl_setopt($ch, CURLOPT_HTTPHEADER, $headere); $result = curl_exec ($ch); curl_close ($ch); */ if(eregi('No file(s) found for', $result)) { $search = str_replace('"', "'", $search); $search = str_replace('+', " ", $search); $search = stripslashes($search); echo '
File '.$search.' tidak ditemukan.
'; @require_once('last.php'); echo '
Home'; include_once ("../incfiles/end.php"); exit; } if(eregi('tidak ditemukan', $result)) { $search = str_replace('"', "'", $search); $search = str_replace('+', " ", $search); $search = stripslashes($search); echo '
File '.$search.' tidak ditemukan.
'; @require_once('last.php'); echo '
Home'; include_once ("../incfiles/end.php"); exit; } function potong($content,$start,$end){ if($content && $start && $end) { $r = explode($start, $content); if (isset($r[1])){ $r = explode($end, $r[1]); return $r[0]; } return ''; } } $jumlah = strstr($result, 'Search option'); $jum = strstr($jumlah,'»'); $jum = explode('»', $jum); $juma = explode('', $jum[1]); $jml = $juma[0]; $jml = str_replace("'", "", $jml); $andry = explode('', $jml); $cyberbdg = explode('', $andry[1]); $kabeh = $cyberbdg[1]; $kabeh = str_replace(',', '', $kabeh); $bandungportal = str_replace('+', ' ', $search); $toth = ceil($kabeh/10); $now = ($page/10)+1; $h = ($hlm-1)*10; $stra = strstr($result, '