From 0781fe818ca0468b69406463d2b5e662875fd846 Mon Sep 17 00:00:00 2001 From: Marco Dickert Date: Thu, 1 Dec 2016 11:17:48 +0100 Subject: [PATCH] misterunknown: recompiled ifm after merging pull request #8 --- ifm.php | 124 ++++++++++++++++++++++++++++++-------------------------- 1 file changed, 66 insertions(+), 58 deletions(-) diff --git a/ifm.php b/ifm.php index 2cebabc..6b34493 100644 --- a/ifm.php +++ b/ifm.php @@ -6,7 +6,7 @@ * License: This project is provided under the terms of the MIT LICENSE * http://github.com/misterunknown/ifm/blob/master/LICENSE * ======================================================================= - * + * * config */ @@ -15,28 +15,28 @@ class IFMConfig { // 0 = no/not allowed;; 1 = yes/allowed;; default: no/forbidden; // action controls - const upload = 1; // allow uploads + const upload = 1; // allow uploads const remoteupload = 1; // allow remote uploads using cURL - const delete = 1; // allow deletions - const rename = 1; // allow renamings + const delete = 1; // allow deletions + const rename = 1; // allow renamings const edit = 1; // allow editing - const chmod = 1; // allow to change rights + const chmod = 1; // allow to change rights const extract = 1; // allow extracting zip archives - const download = 1; // allow to download files and skripts (even php scripts!) + const download = 1; // allow to download files and skripts (even php scripts!) const selfdownload = 1; // allow to download this skript itself - const createdir = 1; // allow to create directorys - const createfile = 1; // allow to create files + const createdir = 1; // allow to create directorys + const createfile = 1; // allow to create files const zipnload = 1; // allow to zip and download directorys // view controls const multiselect = 1; // implement multiselect of files and directories const showlastmodified = 0; // show the last modified date? const showfilesize = 1; // show filesize? - const showowner = 1; // show file owner? - const showgroup = 1; // show file group? - const showpath = 0; // show real path of directory (not only root)? - const showrights = 2; // show permissions 0 -> not; 1 -> octal, 2 -> human readable - const showhtdocs = 1; // show .htaccess and .htpasswd + const showowner = 1; // show file owner? + const showgroup = 1; // show file group? + const showpath = 0; // show real path of directory (not only root)? + const showrights = 1; // show permissions 0 -> not; 1 -> octal, 2 -> human readable + const showhtdocs = 1; // show .htaccess and .htpasswd const showhiddenfiles = 1; // show files beginning with a dot (e.g. ".bashrc") // general config @@ -47,10 +47,10 @@ class IFMConfig { // development tools const ajaxrequest = 1; // formular to perform an ajax request - static function getConstants() { - $oClass = new ReflectionClass(__CLASS__); - return $oClass->getConstants(); - } + static function getConstants() { + $oClass = new ReflectionClass(__CLASS__); + return $oClass->getConstants(); + } } /* ======================================================================= @@ -313,7 +313,7 @@ class IFMZip { * License: This project is provided under the terms of the MIT LICENSE * http://github.com/misterunknown/ifm/blob/master/LICENSE * ======================================================================= - * + * * main */ @@ -339,10 +339,12 @@ class IFM { @@ -1806,7 +1814,7 @@ $(document).ready(function() {ifm.init()}); // init ifm array_key_exists( $oct[ 1 ], $masks ) ? $masks[ $oct[ 1 ] ] : '###', array_key_exists( $oct[ 0 ], $masks ) ? $masks[ $oct[ 0 ] ] : '###') ); - } + } private function isPathValid($p) { if( $p == "" ) { @@ -1893,7 +1901,7 @@ $(document).ready(function() {ifm.init()}); // init ifm private function pathCombine( $a, $b ) { if( $a=="" && $b=="" ) return ""; - else + else return ltrim( rtrim( $a, '/' ) . '/' . ltrim( $b, '/' ), '/' ); } @@ -1929,12 +1937,12 @@ $(document).ready(function() {ifm.init()}); // init ifm // is cURL extention avaliable? private function checkCurl() { - if( ! function_exists( "curl_init" ) && - !function_exists( "curl_setopt" ) && - !function_exists( "curl_exec" ) && - !function_exists( "curl_close" ) ) return false; - else return true; - } + if( ! function_exists( "curl_init" ) && + !function_exists( "curl_setopt" ) && + !function_exists( "curl_exec" ) && + !function_exists( "curl_close" ) ) return false; + else return true; + } ///helper }