* @copyright Authors */ /** * Check if user is authorized * * * @return boolean true if access granted, false if no access */ function auth() { // You can insert your own code over here to check if the user is authorized. // If you use a session variable, you've got to start the session first (session_start()) return true; } // @todo Work on plugins registration // if (isset($config['plugin']) && !empty($config['plugin'])) { // $pluginPath = 'plugins' . DIRECTORY_SEPARATOR . $config['plugin'] . DIRECTORY_SEPARATOR; // require_once($pluginPath . 'filemanager.' . $config['plugin'] . '.config.php'); // require_once($pluginPath . 'filemanager.' . $config['plugin'] . '.class.php'); // $className = 'Filemanager'.strtoupper($config['plugin']); // $fm = new $className($config); // } else { // $fm = new Filemanager($config); // } // we instantiate the Filemanager $fm = new Filemanager(); ?>