diff --git a/build/libifm.php b/build/libifm.php index be070e3..19c1e01 100644 --- a/build/libifm.php +++ b/build/libifm.php @@ -13,7 +13,7 @@ error_reporting( E_ALL ); ini_set( 'display_errors', 'OFF' ); class IFM { - const VERSION = '2.4.2'; + const VERSION = '3.0.0'; private $defaultconfig = array( // general config @@ -39,6 +39,7 @@ class IFM { "remoteupload" => 1, "rename" => 1, "zipnload" => 1, + "createarchive" => 1, // gui controls "showlastmodified" => 0, @@ -85,6 +86,7 @@ class IFM { $this->config['remoteupload'] = getenv('IFM_API_REMOTEUPLOAD') !== false ? intval( getenv('IFM_API_REMOTEUPLOAD') ) : $this->config['remoteupload'] ; $this->config['rename'] = getenv('IFM_API_RENAME') !== false ? intval( getenv('IFM_API_RENAME') ) : $this->config['rename'] ; $this->config['zipnload'] = getenv('IFM_API_ZIPNLOAD') !== false ? intval( getenv('IFM_API_ZIPNLOAD') ) : $this->config['zipnload'] ; + $this->config['createarchive'] = getenv('IFM_API_CREATEARCHIVE') !== false ? intval( getenv('IFM_API_CREATEARCHIVE') ) : $this->config['createarchive'] ; $this->config['showlastmodified'] = getenv('IFM_GUI_SHOWLASTMODIFIED') !== false ? intval( getenv('IFM_GUI_SHOWLASTMODIFIED') ) : $this->config['showlastmodified'] ; $this->config['showfilesize'] = getenv('IFM_GUI_SHOWFILESIZE') !== false ? intval( getenv('IFM_GUI_SHOWFILESIZE') ) : $this->config['showfilesize'] ; $this->config['showowner'] = getenv('IFM_GUI_SHOWOWNER') !== false ? intval( getenv('IFM_GUI_SHOWOWNER') ) : $this->config['showowner'] ; @@ -375,6 +377,21 @@ f00bar; +f00bar; + $templates['createarchive'] = <<<'f00bar' +
+ f00bar; $templates['deletefile'] = <<<'f00bar' +f00bar; + $templates['createarchive'] = <<<'f00bar' + + f00bar; $templates['deletefile'] = <<<'f00bar'