diff --git a/ifm.php b/ifm.php index c71c347..5291e07 100644 --- a/ifm.php +++ b/ifm.php @@ -87,6 +87,7 @@ class IFMConfig { // development tools const ajaxrequest = 1; // formular to perform an ajax request + const debug = true; static function getConstants() { $oClass = new ReflectionClass(__CLASS__); @@ -156,7 +157,7 @@ class IFMZip { /** * Unzip a zip file */ - public function extract( $file, $destination="./" ) { + public static function extract( $file, $destination="./" ) { $zip = new ZipArchive; $res = $zip->open( $file ); if( $res === true ) { @@ -330,8 +331,6 @@ class IFM { .icon-file-code:before { content: '\f1c9'; } /* '' */ .icon-sliders:before { content: '\f1de'; } /* '' */ .icon-trash:before { content: '\f1f8'; } /* '' */ -
- -Filename | '; - if( $this->config['download'] == 1 ) print ''; - if( $this->config['showlastmodified'] == 1 ) print ' | last modified | '; - if( $this->config['showfilesize'] == 1 ) print 'size | '; - if( $this->config['showpermissions'] > 0 ) print 'permissions | '; - if( $this->config['showowner'] == 1 && function_exists( "posix_getpwuid" ) ) print ' '; - if( $this->config['showgroup'] == 1 && function_exists( "posix_getgrgid" ) ) print ' '; - if( in_array( 1, array( $this->config['edit'], $this->config['rename'], $this->config['delete'], $this->config['zipnload'], $this->config['extract'] ) ) ) print ''; - print ' |
---|