diff --git a/ifm.php b/ifm.php index 5291e07..4e6c51b 100644 --- a/ifm.php +++ b/ifm.php @@ -194,16 +194,13 @@ class IFM { "auth" => 0,"auth_source" => 'inlineadmin:$2y$10$0Bnm5L4wKFHRxJgNq.oZv.v7yXhkJZQvinJYR2p6X1zPvzyDRUVRC', "root_dir" => "","defaulttimezone" => "Europe/Berlin","tmp_dir" => "","ajaxrequest" => 1 ); - private $config = array(); - public function __construct( $config ) { + private $config = array(); + public $mode = ""; + + public function __construct( $config=array() ) { session_start(); - if( ! is_array( $config ) ) { - trigger_error( "IFM: could not load config" ); - exit( 1 ); - } else { - $this->config = array_merge( $this->defaultconfig, $config ); - } + $this->config = array_merge( $this->defaultconfig, $config ); } /** @@ -216,16 +213,36 @@ class IFM {