diff --git a/ifm.php b/ifm.php index 2ecfe34..35adfb4 100644 --- a/ifm.php +++ b/ifm.php @@ -466,6 +466,7 @@ function IFM() { this.IFM_SCFN = "=basename($_SERVER['SCRIPT_NAME'])?>"; this.config = jQuery.parseJSON(''); // serialize the PHP config array, so we can use it in JS too + this.isDocroot = ; this.editor = null; // global ace editor this.fileChanged = false; // flag for check if file was changed already this.currentDir = ""; // this is the global variable for the current directory; it is used for AJAX requests @@ -523,16 +524,20 @@ function IFM() { else if( self.config.edit == 1 && data[i].name.toLowerCase().substr(-4) != ".zip" ) newRow += ' data-eaction="edit"'; newRow += '>