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();