*/ /** * Support HTTP compression, partial downloads & resuming using PEAR HTTP_Download package * * This enables MP3 players like Winamp to skip back & forward without buffering an entire file - * http://www.oreillynet.com/pub/a/network/2005/01/07/primetime.html * * @package Download */ class DownloadModule extends GalleryModule { function DownloadModule() { global $gallery; $this->setId('download'); $this->setName($gallery->i18n('Download')); $this->setVersion('0.0.1'); $this->setDescription($gallery->i18n('Support HTTP compression, partial downloads & resuming')); $this->setGroup('gallery', $gallery->i18n('Gallery')); $this->setRequiredCoreApi(array(7, 1)); $this->setRequiredModuleApi(array(3, 0)); } /** * @see GalleryModule::upgrade */ function upgade($currentVersion) { switch ($currentVersion) { case null: /* Initial install */ case 'end of upgrade path': break; default: return GalleryCoreApi::error(ERROR_BAD_PLUGIN, __FILE__, __LINE__, sprintf('Unknown module version %s', $currentVersion)); } } } ?>