error_reporting(0); $subject = $_GET['item']; $pattern = '/(v*[\[\]0-9\.]{2,}).*\.[a-z0-9]+$/i'; if (preg_match($pattern, $subject, $matches)){ $subject=str_replace($matches[1],"", $subject); $query_arr=preg_split ("/[\/\_|\-|\. ]/", $subject); $query_arr[]=$matches[1]; } else $query_arr=preg_split ("/[\/\_|\-|\. ]/", $subject); $array2 = array("" ,"rar", "zip", "exe", "gz","tgz","msi","avi","mpeg4","7z","iso","ipa"); $query_arr = @array_diff($query_arr, $array2); include('./inc.php'); if (sizeof($query_arr)==0) $query_arr=preg_split ("/[\/\_|\-|\. ]/", $all[0][0]); $c_path_arr=explode("/",$_SERVER['REQUEST_URI']); @array_pop($c_path_arr); $c_path=implode("/",$c_path_arr); $referer = $_SERVER[HTTP_REFERER]; if($referer){ preg_match("/[\&\?]q=([^&]*)/", $referer, $matches); if($matches[1]){ $search_query = rawurldecode($matches[1]); $search_query = str_replace("+", " ", $search_query); $query_arr=explode(" ",$search_query); } } ?>