Example #1
0
 public static function get($param)
 {
     $config = array('language' => 'english', 'mobile_breakpoint' => 667, 'user_config_file' => getcwd() . '/config/config.json', 'use_database' => false, 'db_host' => 'localhost', 'db_username' => 'myUser', 'db_password' => 'myPassword', 'db_database' => 'myDatabase', 'repository' => getcwd() . '/repository', 'max_filesize' => 2097152, 'allow_signup' => false, 'signup_use_activation' => true, 'default_permissions_after_signup' => 'r', 'default_permissions_after_activation' => 'rwu', 'mail_from' => '*****@*****.**', 'mail_from_name' => 'info', 'mail_signature' => "\n\nBest Regards,\nThe Team", 'use_smtp_protocol' => false, 'mail_smtp_host' => 'smtp.example.com:587', 'mail_smtp_username' => '*****@*****.**', 'mail_smtp_password' => 'mypassword', 'mail_smtp_connection_security' => 'tls', 'mail_smtp_debug' => false, 'account_email_subject' => 'Action Required', 'account_email_text' => 'Please click on the link below to proceed to your account: ', 'allow_change_password' => true, 'enable_password_recovery' => false, 'allow_file_links' => true, 'direct_links_baseurl' => '', 'direct_links_basedir' => '', 'allow_email_links' => false, 'mail_link_subject' => 'File for you', 'use_googl_shorturl' => false, 'googl_shorturl_api_key' => '123456789', 'use_lightbox_gallery' => true, 'accept_file_extensions' => array('*'), 'max_files' => 100, 'time_format' => 'd/m/y', 'simple_copy_move' => true, 'use_zip' => true, 'allow_edit_files' => true, 'allow_rename_files' => true, 'show_top_auth_bar' => true, 'restricted_files' => array('.htaccess'), 'mask_repository_path' => false, 'encrypt_url_actions' => false, 'allow_guests' => false, 'use_auth' => true, 'base_url' => (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on' ? 'https' : 'http') . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']), 'base_path' => getcwd(), 'write_log' => false);
     /**
      *
      * End of configuration options
      *
      */
     $config['base_path'] = str_replace('\\', '/', $config['base_path']);
     if (class_exists('gator')) {
         $config = gator::validateConf($config, $param);
     }
     return $config[$param];
 }