From 3874bc275bae7e174a5dce040a41f692376c18e4 Mon Sep 17 00:00:00 2001 From: Marco Dickert Date: Thu, 6 Jul 2017 17:24:15 +0200 Subject: [PATCH] fixed some problems with inline mode --- build/ifm.js | 3 --- build/ifmlib.php | 11 +++++------ compiler.php | 2 -- ifm.php | 11 +++++------ src/ifm.js | 3 --- src/main.php | 8 +++++--- 6 files changed, 15 insertions(+), 23 deletions(-) diff --git a/build/ifm.js b/build/ifm.js index 579f20c..0631a4c 100644 --- a/build/ifm.js +++ b/build/ifm.js @@ -1238,6 +1238,3 @@ function IFM( params ) { this.initLoadConfig(); }; } - -var ifm = new IFM(); -ifm.init( "ifm" ); diff --git a/build/ifmlib.php b/build/ifmlib.php index ae6d6c3..490afa9 100644 --- a/build/ifmlib.php +++ b/build/ifmlib.php @@ -77,6 +77,7 @@ class IFM {
'; $this->getJS(); print ' + '; @@ -88,7 +89,7 @@ class IFM { $this->getJS(); } - private function getCSS() { + public function getCSS() { print ' @@ -96,7 +97,7 @@ class IFM { '; } - private function getJS() { + public function getJS() { print ' @@ -156,6 +157,7 @@ class IFM { print json_encode(array("status"=>"ERROR", "message"=>"No valid working directory")); } } + exit( 0 ); } public function run( $mode="standalone" ) { @@ -166,7 +168,7 @@ class IFM { else chdir( realpath( $this->config['root_dir'] ) ); $this->mode = $mode; - if ( isset($_REQUEST['api']) || $mode == "api" ) { + if ( isset( $_REQUEST['api'] ) || $mode == "api" ) { $this->handleRequest(); } elseif( $mode == "standalone" ) { $this->getApplication();