diff --git a/src/main.php b/src/main.php index fb26042..2fc4147 100644 --- a/src/main.php +++ b/src/main.php @@ -24,16 +24,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 ); } /** @@ -46,14 +43,36 @@ class IFM {