mainURL = "isohunt.com"; $this->altURL = "isohunt.com"; $this->mainTitle = "isoHunt"; $this->engineName = "isoHunt"; $this->author = "kboy"; $this->version = "1.05-tfb"; $this->updateURL = "http://www.torrentflux.com/forum/index.php/topic,878.0.html"; $this->Initialize($cfg); } //---------------------------------------------------------------- // Function to Make the Request (overriding base) function makeRequest($request) { return parent::makeRequest($request, true); } //---------------------------------------------------------------- // Function to get Latest.. function getLatest() { $request = "/latest.php?mode=bt"; if (!empty($this->pg)) { $request .= "&pg=" . $this->pg; } if ($this->makeRequest($request)) { return $this->parseResponse(true); } else { return $this->msg; } } //---------------------------------------------------------------- // Function to perform Search. function performSearch($searchTerm) { // This is what isohunt is looking for in a request. // http://isohunt.com/torrents.php?ihq=test&ext=&op=and // create the request string. $searchTerm = str_replace(" ", "+", $searchTerm); $request = "/torrents?ihq=".$searchTerm; //$request .= "&ext=&op=and"; if (!empty($this->pg)) { $request .= "&ihs1=18&iho1=d&iht=-1&ihp=" . $this->pg; } // make the request if successful call the parse routine. if ($this->makeRequest($request)) { return $this->parseResponse(false); } else { return $this->msg; } } //---------------------------------------------------------------- // Function to parse the response. function parseResponse($latest = true) { $output = $this->tableHeader(); $thing = $this->htmlPage; // Strip out those Nasty Iframes. $thing = preg_replace("/