Example #1
0
 /**
  * Create a Zip object and store the query results
  *
  * @param mysqli_result $QueryResult results from a query on the collector pages
  * @param string $Title name of the collection that will be created
  * @param string $AnnounceURL URL to add to the created torrents
  */
 public function __construct(&$QueryResult, $Title)
 {
     G::$Cache->InternalCache = false;
     // The internal cache is almost completely useless for this
     Zip::unlimit();
     // Need more memory and longer timeout
     $this->QueryResult = $QueryResult;
     $this->Title = $Title;
     $this->User = G::$LoggedUser;
     $this->AnnounceURL = ANNOUNCE_URL . '/' . G::$LoggedUser['torrent_pass'] . '/announce';
     $this->Zip = new Zip(Misc::file_string($Title));
 }