| 8 | | |
|---|
| 9 | | // Authentication configuration |
|---|
| 10 | | 'auth_backend' => array |
|---|
| 11 | | ( |
|---|
| 12 | | 'title' => 'auth_backend', |
|---|
| 13 | | 'type' => 'select', |
|---|
| 14 | | 'type_config' => Array |
|---|
| 15 | | ( |
|---|
| 16 | | 'options' => array |
|---|
| 17 | | ( |
|---|
| 18 | | '' => sprintf($_MIDCOM->i18n->get_string('default (%s)', 'midcom.admin.settings'), $_MIDCOM->i18n->get_string("auth_backend_{$GLOBALS['midcom_config_default']['auth_backend']}", 'midcom.admin.settings')), |
|---|
| 19 | | 'simple' => 'auth_backend_simple', |
|---|
| 20 | | ), |
|---|
| 21 | | ), |
|---|
| 22 | | 'widget' => 'select', |
|---|
| 23 | | ), |
|---|
| 24 | | |
|---|
| 25 | | 'auth_login_session_timeout' => array |
|---|
| 26 | | ( |
|---|
| 27 | | 'type' => 'text', |
|---|
| 28 | | 'widget' => 'text', |
|---|
| 29 | | 'title' => 'auth_login_session_timeout', |
|---|
| 30 | | ), |
|---|
| 31 | | |
|---|
| 32 | | 'auth_frontend' => array |
|---|
| 33 | | ( |
|---|
| 34 | | 'title' => 'auth_frontend', |
|---|
| 35 | | 'type' => 'select', |
|---|
| 36 | | 'type_config' => Array |
|---|
| 37 | | ( |
|---|
| 38 | | 'options' => array |
|---|
| 39 | | ( |
|---|
| 40 | | '' => sprintf($_MIDCOM->i18n->get_string('default (%s)', 'midcom.admin.settings'), $_MIDCOM->i18n->get_string("auth_frontend_{$GLOBALS['midcom_config_default']['auth_frontend']}", 'midcom.admin.settings')), |
|---|
| 41 | | 'form' => 'auth_frontend_form', |
|---|
| 42 | | ), |
|---|
| 43 | | ), |
|---|
| 44 | | 'widget' => 'select', |
|---|
| 45 | | ), |
|---|
| 46 | | |
|---|
| 47 | | 'auth_sitegroup_mode' => array |
|---|
| 48 | | ( |
|---|
| 49 | | 'title' => 'auth_sitegroup_mode', |
|---|
| 50 | | 'type' => 'select', |
|---|
| 51 | | 'type_config' => Array |
|---|
| 52 | | ( |
|---|
| 53 | | 'options' => array |
|---|
| 54 | | ( |
|---|
| 55 | | '' => sprintf($_MIDCOM->i18n->get_string('default (%s)', 'midcom.admin.settings'), $_MIDCOM->i18n->get_string("auth_sitegroup_mode_{$GLOBALS['midcom_config_default']['auth_sitegroup_mode']}", 'midcom.admin.settings')), |
|---|
| 56 | | 'auto' => 'auth_sitegroup_mode_auto', |
|---|
| 57 | | 'sitegrouped' => 'auth_sitegroup_mode_sitegrouped', |
|---|
| 58 | | 'not-sitegrouped' => 'auth_sitegroup_mode_not-sitegrouped', |
|---|
| 59 | | ), |
|---|
| 60 | | ), |
|---|
| 61 | | 'widget' => 'select', |
|---|
| 62 | | ), |
|---|
| 63 | | |
|---|
| 64 | | 'auth_login_form_httpcode' => array |
|---|
| 65 | | ( |
|---|
| 66 | | 'title' => 'auth_login_form_httpcode', |
|---|
| 67 | | 'type' => 'select', |
|---|
| 68 | | 'type_config' => Array |
|---|
| 69 | | ( |
|---|
| 70 | | 'options' => array |
|---|
| 71 | | ( |
|---|
| 72 | | '' => sprintf($_MIDCOM->i18n->get_string('default (%s)', 'midcom.admin.settings'), $_MIDCOM->i18n->get_string("auth_login_form_httpcode_{$GLOBALS['midcom_config_default']['auth_login_form_httpcode']}", 'midcom.admin.settings')), |
|---|
| 73 | | '403' => 'auth_login_form_httpcode_403', |
|---|
| 74 | | '200' => 'auth_login_form_httpcode_200', |
|---|
| 75 | | ), |
|---|
| 76 | | ), |
|---|
| 77 | | 'widget' => 'select', |
|---|
| 78 | | ), |
|---|
| 79 | | |
|---|
| 80 | | 'auth_check_client_ip' => array |
|---|
| 81 | | ( |
|---|
| 82 | | 'type' => 'select', |
|---|
| 83 | | 'widget' => 'select', |
|---|
| 84 | | 'title' => 'auth_check_client_ip', |
|---|
| 85 | | 'type_config' => array |
|---|
| 86 | | ( |
|---|
| 87 | | 'options' => array |
|---|
| 88 | | ( |
|---|
| 89 | | '' => sprintf($_MIDCOM->i18n->get_string('default (%s)', 'midcom.admin.settings'), $GLOBALS['midcom_config_default']['auth_check_client_ip'] ? $_MIDCOM->i18n->get_string('yes', 'midcom') : $_MIDCOM->i18n->get_string('no', 'midcom')), |
|---|
| 90 | | '1' => 'yes', |
|---|
| 91 | | '0' => 'no', |
|---|
| 92 | | ), |
|---|
| 93 | | ), |
|---|
| 94 | | ), |
|---|
| 95 | | |
|---|
| 96 | | 'auth_allow_sudo' => array |
|---|
| 97 | | ( |
|---|
| 98 | | 'type' => 'select', |
|---|
| 99 | | 'widget' => 'select', |
|---|
| 100 | | 'title' => 'auth_allow_sudo', |
|---|
| 101 | | 'type_config' => array |
|---|
| 102 | | ( |
|---|
| 103 | | 'options' => array |
|---|
| 104 | | ( |
|---|
| 105 | | '' => sprintf($_MIDCOM->i18n->get_string('default (%s)', 'midcom.admin.settings'), $GLOBALS['midcom_config_default']['auth_allow_sudo'] ? $_MIDCOM->i18n->get_string('yes', 'midcom') : $_MIDCOM->i18n->get_string('no', 'midcom')), |
|---|
| 106 | | '1' => 'yes', |
|---|
| 107 | | '0' => 'no', |
|---|
| 108 | | ), |
|---|
| 109 | | ), |
|---|
| 110 | | ), |
|---|
| 111 | | |
|---|
| 112 | | 'auth_backend_simple_cookie_id' => array |
|---|
| 113 | | ( |
|---|
| 114 | | 'type' => 'text', |
|---|
| 115 | | 'widget' => 'text', |
|---|
| 116 | | 'title' => 'auth_backend_simple_cookie_id', |
|---|
| 117 | | |
|---|
| 118 | | ), |
|---|
| 119 | | |
|---|
| 120 | | 'auth_backend_simple_cookie_path' => array |
|---|
| 121 | | ( |
|---|
| 122 | | 'type' => 'text', |
|---|
| 123 | | 'widget' => 'text', |
|---|
| 124 | | 'title' => 'auth_backend_simple_cookie_path', |
|---|
| 125 | | ), |
|---|
| 126 | | |
|---|
| 127 | | 'auth_backend_simple_cookie_domain' => array |
|---|
| 128 | | ( |
|---|
| 129 | | 'type' => 'text', |
|---|
| 130 | | 'widget' => 'text', |
|---|
| 131 | | 'title' => 'auth_backend_simple_cookie_domain' , |
|---|
| 132 | | ), |
|---|
| 133 | | |
|---|
| 134 | | // Cache configuration |
|---|
| 135 | | 'cache_base_directory' => array |
|---|
| 136 | | ( |
|---|
| 137 | | 'type' => 'text', |
|---|
| 138 | | 'widget' => 'text', |
|---|
| 139 | | 'title' => 'cache_base_directory', |
|---|
| 140 | | ), |
|---|
| 141 | | |
|---|
| 142 | | /* |
|---|
| 143 | | 'cache_module_content_uncached' => array |
|---|
| 144 | | ( |
|---|
| 145 | | 'type' => 'select', |
|---|
| 146 | | 'widget' => 'select', |
|---|
| 147 | | 'title' => 'cache_module_content_uncached', |
|---|
| 148 | | 'type_config' => array |
|---|
| 149 | | ( |
|---|
| 150 | | 'options' => array |
|---|
| 151 | | ( |
|---|
| 152 | | '' => sprintf($_MIDCOM->i18n->get_string('default (%s)', 'midcom.admin.settings'), $GLOBALS['midcom_config_default']['cache_module_content_uncached'] ? $_MIDCOM->i18n->get_string('yes', 'midcom') : $_MIDCOM->i18n->get_string('no', 'midcom')), |
|---|
| 153 | | '1' => 'yes', |
|---|
| 154 | | '0' => 'no', |
|---|
| 155 | | ), |
|---|
| 156 | | ), |
|---|
| 157 | | ), |
|---|
| 158 | | */ |
|---|
| 159 | | |
|---|
| 160 | | 'cache_module_content_headers_strategy' => array |
|---|
| 161 | | ( |
|---|
| 162 | | 'type' => 'select', |
|---|
| 163 | | 'widget' => 'select', |
|---|
| 164 | | 'title' => 'cache_module_content_headers_strategy', |
|---|
| 165 | | 'type_config' => array |
|---|
| 166 | | ( |
|---|
| 167 | | 'options' => array |
|---|
| 168 | | ( |
|---|
| 169 | | '' => sprintf($_MIDCOM->i18n->get_string('default (%s)', 'midcom.admin.settings'), $GLOBALS['midcom_config_default']['cache_module_content_headers_strategy']), |
|---|
| 170 | | 'no-cache' =>'cs-no-cache', |
|---|
| 171 | | 'revalidate' =>'cs-revalidate', |
|---|
| 172 | | 'public' =>'cs-public', |
|---|
| 173 | | 'private'=>'cs-private', |
|---|
| 174 | | ), |
|---|
| 175 | | ), |
|---|
| 176 | | ), |
|---|
| 177 | | |
|---|
| 178 | | 'cache_module_content_default_lifetime' => array |
|---|
| 179 | | ( |
|---|
| 180 | | 'type' => 'text', |
|---|
| 181 | | 'widget' => 'text', |
|---|
| 182 | | 'title' => 'cache_module_content_default_lifetime', |
|---|
| 183 | | ), |
|---|
| 184 | | |
|---|
| 185 | | 'i18n_fallback_language' => array |
|---|
| 186 | | ( |
|---|
| 187 | | 'title' => 'i18n_fallback_language', |
|---|
| 188 | | 'type' => 'select', |
|---|
| 189 | | 'type_config' => Array |
|---|
| 190 | | ( |
|---|
| 191 | | 'options' => array_merge(array('' => sprintf($_MIDCOM->i18n->get_string('default (%s)', 'midcom.admin.settings'), $GLOBALS['midcom_config_default']['i18n_fallback_language'])),$_MIDCOM->i18n->list_languages()), |
|---|
| 192 | | ), |
|---|
| 193 | | 'widget' => 'select', |
|---|
| 194 | | ), |
|---|
| 195 | | |
|---|
| 196 | | // Indexer Configuration |
|---|
| 197 | | 'indexer_backend' => array |
|---|
| 198 | | ( |
|---|
| 199 | | 'title' => 'indexer_backend', |
|---|
| 200 | | 'type' => 'select', |
|---|
| 201 | | 'type_config' => Array |
|---|
| 202 | | ( |
|---|
| 203 | | 'options' => array |
|---|
| 204 | | ( |
|---|
| 205 | | false => 'indexer_backend_none', |
|---|
| 206 | | 'xmltcp' => 'indexer_backend_xmltcp', |
|---|
| 207 | | 'solr' => 'Solr indexer', |
|---|
| 208 | | ), |
|---|
| 209 | | ), |
|---|
| 210 | | 'widget' => 'select', |
|---|
| 211 | | ), |
|---|
| 212 | | |
|---|
| 213 | | 'indexer_index_name' => array |
|---|
| 214 | | ( |
|---|
| 215 | | 'type' => 'text', |
|---|
| 216 | | 'widget' => 'text', |
|---|
| 217 | | 'title' => 'indexer_index_name', |
|---|
| 218 | | ), |
|---|
| 219 | | |
|---|
| 220 | | // XMLTCP indexer backend (THE RECOMMENDED ONE) |
|---|
| 221 | | 'indexer_xmltcp_host' => array |
|---|
| 222 | | ( |
|---|
| 223 | | 'type' => 'text', |
|---|
| 224 | | 'widget' => 'text', |
|---|
| 225 | | 'title' => 'indexer_xmltcp_host', |
|---|
| 226 | | ), |
|---|
| 227 | | |
|---|
| 228 | | 'indexer_xmltcp_port' => array |
|---|
| 229 | | ( |
|---|
| 230 | | 'type' => 'text', |
|---|
| 231 | | 'widget' => 'text', |
|---|
| 232 | | 'title' => 'indexer_xmltcp_port', |
|---|
| 233 | | ), |
|---|
| 234 | | |
|---|
| 235 | | /* |
|---|
| 236 | | // XMLShell indexer backend configuration |
|---|
| 237 | | 'indexer_xmlshell_executable' => array |
|---|
| 238 | | ( |
|---|
| 239 | | 'type' => 'text', |
|---|
| 240 | | 'widget' => 'text', |
|---|
| 241 | | 'title' => 'indexer_xmlshell_executable', |
|---|
| 242 | | ), |
|---|
| 243 | | |
|---|
| 244 | | 'indexer_xmlshell_working_directory' => array |
|---|
| 245 | | ( |
|---|
| 246 | | 'type' => 'text', |
|---|
| 247 | | 'widget' => 'text', |
|---|
| 248 | | 'title' => 'indexer_xmlshell_working_directory', |
|---|
| 249 | | ),*/ |
|---|
| 250 | | |
|---|
| 251 | | // Logging Configuration |
|---|
| 252 | | 'log_filename' => array |
|---|
| 253 | | ( |
|---|
| 254 | | 'type' => 'text', |
|---|
| 255 | | 'widget' => 'text', |
|---|
| 256 | | 'title' => 'log_filename', |
|---|
| 257 | | ), |
|---|
| 258 | | |
|---|
| 259 | | 'log_level' => array |
|---|
| 260 | | ( |
|---|
| 261 | | 'title' => 'log_level', |
|---|
| 262 | | 'type' => 'select', |
|---|
| 263 | | 'type_config' => Array |
|---|
| 264 | | ( |
|---|
| 265 | | 'options' => array |
|---|
| 266 | | ( |
|---|
| 267 | | '' => sprintf($_MIDCOM->i18n->get_string('default (%s)', 'midcom.admin.settings'), $GLOBALS['midcom_config_default']['log_level']), |
|---|
| 268 | | MIDCOM_LOG_DEBUG => 'midcom_log_debug', |
|---|
| 269 | | MIDCOM_LOG_INFO => 'midcom_log_info', |
|---|
| 270 | | MIDCOM_LOG_WARN => 'midcom_log_warn', |
|---|
| 271 | | MIDCOM_LOG_ERROR => 'midcom_log_error', |
|---|
| 272 | | MIDCOM_LOG_CRIT => 'midcom_log_crit', |
|---|
| 273 | | ), |
|---|
| 274 | | ), |
|---|
| 275 | | 'widget' => 'select', |
|---|
| 276 | | ), |
|---|
| 277 | | |
|---|
| 278 | | 'log_tailurl_enable' => array |
|---|
| 279 | | ( |
|---|
| 280 | | 'type' => 'select', |
|---|
| 281 | | 'widget' => 'select', |
|---|
| 282 | | 'title' => 'log_tailurl_enable', |
|---|
| 283 | | 'type_config' => array |
|---|
| 284 | | ( |
|---|
| 285 | | 'options' => array |
|---|
| 286 | | ( |
|---|
| 287 | | '' => sprintf($_MIDCOM->i18n->get_string('default (%s)', 'midcom.admin.settings'), $GLOBALS['midcom_config_default']['log_tailurl_enable'] ? $_MIDCOM->i18n->get_string('yes', 'midcom') : $_MIDCOM->i18n->get_string('no', 'midcom')), |
|---|
| 288 | | '1' => 'yes', |
|---|
| 289 | | '0' => 'no', |
|---|
| 290 | | ), |
|---|
| 291 | | ), |
|---|
| 292 | | ), |
|---|
| 378 | | |
|---|
| | 118 | // Positioning system |
|---|
| | 119 | 'positioning_enable' => array |
|---|
| | 120 | ( |
|---|
| | 121 | 'type' => 'select', |
|---|
| | 122 | 'widget' => 'select', |
|---|
| | 123 | 'title' => 'positioning_enable', |
|---|
| | 124 | 'type_config' => array |
|---|
| | 125 | ( |
|---|
| | 126 | 'options' => array |
|---|
| | 127 | ( |
|---|
| | 128 | '' => midcom_admin_settings_editor::get_default_bool('positioning_enable'), |
|---|
| | 129 | '1' => 'yes', |
|---|
| | 130 | '0' => 'no', |
|---|
| | 131 | ), |
|---|
| | 132 | ), |
|---|
| | 133 | ), |
|---|
| | 134 | 'component_listing_allowed' => array |
|---|
| | 135 | ( |
|---|
| | 136 | 'type' => 'select', |
|---|
| | 137 | 'widget' => 'select', |
|---|
| | 138 | 'title' => $_MIDCOM->i18n->get_string('allowed components (leave empty to allow all)', 'midcom.admin.settings'), |
|---|
| | 139 | 'type_config' => array |
|---|
| | 140 | ( |
|---|
| | 141 | 'allow_multiple' => true, |
|---|
| | 142 | 'options' => midcom_admin_folder_folder_management::list_components('', true), |
|---|
| | 143 | ), |
|---|
| | 144 | ), |
|---|
| | 145 | 'component_listing_excluded' => array |
|---|
| | 146 | ( |
|---|
| | 147 | 'type' => 'select', |
|---|
| | 148 | 'widget' => 'select', |
|---|
| | 149 | 'title' => $_MIDCOM->i18n->get_string('excluded components (leave empty to allow all)', 'midcom.admin.settings'), |
|---|
| | 150 | 'type_config' => array |
|---|
| | 151 | ( |
|---|
| | 152 | 'allow_multiple' => true, |
|---|
| | 153 | 'options' => midcom_admin_folder_folder_management::list_components('', true), |
|---|
| | 154 | ), |
|---|
| | 155 | 'static_append' => '</div>', |
|---|
| | 156 | ), |
|---|
| | 157 | // Logging Configuration |
|---|
| | 158 | 'log_filename' => array |
|---|
| | 159 | ( |
|---|
| | 160 | 'type' => 'text', |
|---|
| | 161 | 'widget' => 'text', |
|---|
| | 162 | 'title' => 'log_filename', |
|---|
| | 163 | 'static_prepend' => '<div class="midcom_admin_settings_section"><h2>'.$_MIDCOM->i18n->get_string('logging configuration', 'midcom.admin.settings').'</h2>', |
|---|
| | 164 | ), |
|---|
| | 165 | |
|---|
| | 166 | 'log_level' => array |
|---|
| | 167 | ( |
|---|
| | 168 | 'title' => 'log_level', |
|---|
| | 169 | 'type' => 'select', |
|---|
| | 170 | 'type_config' => Array |
|---|
| | 171 | ( |
|---|
| | 172 | 'options' => array |
|---|
| | 173 | ( |
|---|
| | 174 | '' => midcom_admin_settings_editor::get_default_val('log_level'), |
|---|
| | 175 | MIDCOM_LOG_DEBUG => 'midcom_log_debug', |
|---|
| | 176 | MIDCOM_LOG_INFO => 'midcom_log_info', |
|---|
| | 177 | MIDCOM_LOG_WARN => 'midcom_log_warn', |
|---|
| | 178 | MIDCOM_LOG_ERROR => 'midcom_log_error', |
|---|
| | 179 | MIDCOM_LOG_CRIT => 'midcom_log_crit', |
|---|
| | 180 | ), |
|---|
| | 181 | ), |
|---|
| | 182 | 'widget' => 'select', |
|---|
| | 183 | ), |
|---|
| | 184 | |
|---|
| | 185 | 'log_tailurl_enable' => array |
|---|
| | 186 | ( |
|---|
| | 187 | 'type' => 'select', |
|---|
| | 188 | 'widget' => 'select', |
|---|
| | 189 | 'title' => 'log_tailurl_enable', |
|---|
| | 190 | 'type_config' => array |
|---|
| | 191 | ( |
|---|
| | 192 | 'options' => array |
|---|
| | 193 | ( |
|---|
| | 194 | '' => midcom_admin_settings_editor::get_default_bool('log_tailurl_enable'), |
|---|
| | 195 | '1' => 'yes', |
|---|
| | 196 | '0' => 'no', |
|---|
| | 197 | ), |
|---|
| | 198 | ), |
|---|
| | 199 | 'static_append' => '</div>', |
|---|
| | 200 | ), |
|---|
| | 201 | // Cache configuration |
|---|
| | 202 | 'cache_base_directory' => array |
|---|
| | 203 | ( |
|---|
| | 204 | 'type' => 'text', |
|---|
| | 205 | 'widget' => 'text', |
|---|
| | 206 | 'title' => 'cache_base_directory', |
|---|
| | 207 | 'static_prepend' => '<div class="midcom_admin_settings_section"><h2>'.$_MIDCOM->i18n->get_string('cache configuration', 'midcom.admin.settings').'</h2>', |
|---|
| | 208 | ), |
|---|
| | 209 | |
|---|
| | 210 | 'cache_module_content_uncached' => array |
|---|
| | 211 | ( |
|---|
| | 212 | 'type' => 'select', |
|---|
| | 213 | 'widget' => 'select', |
|---|
| | 214 | 'title' => 'cache_module_content_uncached', |
|---|
| | 215 | 'type_config' => array |
|---|
| | 216 | ( |
|---|
| | 217 | 'options' => array |
|---|
| | 218 | ( |
|---|
| | 219 | '' => midcom_admin_settings_editor::get_default_bool('cache_module_content_uncached'), |
|---|
| | 220 | '1' => 'yes', |
|---|
| | 221 | '0' => 'no', |
|---|
| | 222 | ), |
|---|
| | 223 | ), |
|---|
| | 224 | ), |
|---|
| | 225 | |
|---|
| | 226 | 'cache_module_content_headers_strategy' => array |
|---|
| | 227 | ( |
|---|
| | 228 | 'type' => 'select', |
|---|
| | 229 | 'widget' => 'select', |
|---|
| | 230 | 'title' => 'cache_module_content_headers_strategy', |
|---|
| | 231 | 'type_config' => array |
|---|
| | 232 | ( |
|---|
| | 233 | 'options' => array |
|---|
| | 234 | ( |
|---|
| | 235 | '' => midcom_admin_settings_editor::get_default_val('cache_module_content_headers_strategy'), |
|---|
| | 236 | 'no-cache' =>'cs-no-cache', |
|---|
| | 237 | 'revalidate' =>'cs-revalidate', |
|---|
| | 238 | 'public' =>'cs-public', |
|---|
| | 239 | 'private'=>'cs-private', |
|---|
| | 240 | ), |
|---|
| | 241 | ), |
|---|
| | 242 | ), |
|---|
| | 243 | |
|---|
| | 244 | 'cache_module_content_default_lifetime' => array |
|---|
| | 245 | ( |
|---|
| | 246 | 'type' => 'text', |
|---|
| | 247 | 'widget' => 'text', |
|---|
| | 248 | 'title' => 'cache_module_content_default_lifetime', |
|---|
| | 249 | 'static_append' => '</div>', |
|---|
| | 250 | ), |
|---|
| 421 | | '' => sprintf($_MIDCOM->i18n->get_string('default (%s)', 'midcom.admin.settings'), $GLOBALS['midcom_config_default']['i18n_multilang_strict'] ? $_MIDCOM->i18n->get_string('yes', 'midcom') : $_MIDCOM->i18n->get_string('no', 'midcom')), |
|---|
| 422 | | '1' => 'yes', |
|---|
| 423 | | '0' => 'no', |
|---|
| 424 | | ), |
|---|
| 425 | | ), |
|---|
| 426 | | ), |
|---|
| | 294 | '' => midcom_admin_settings_editor::get_default_bool('i18n_multilang_strict'), |
|---|
| | 295 | '1' => 'yes', |
|---|
| | 296 | '0' => 'no', |
|---|
| | 297 | ), |
|---|
| | 298 | ), |
|---|
| | 299 | 'static_append' => '</div>', |
|---|
| | 300 | ), |
|---|
| | 301 | |
|---|
| | 302 | // Metadata system |
|---|
| | 303 | 'metadata_approval' => array |
|---|
| | 304 | ( |
|---|
| | 305 | 'type' => 'select', |
|---|
| | 306 | 'widget' => 'select', |
|---|
| | 307 | 'title' => 'metadata_approval', |
|---|
| | 308 | 'type_config' => array |
|---|
| | 309 | ( |
|---|
| | 310 | 'options' => array |
|---|
| | 311 | ( |
|---|
| | 312 | '' => midcom_admin_settings_editor::get_default_bool('metadata_approval'), |
|---|
| | 313 | '1' => 'yes', |
|---|
| | 314 | '0' => 'no', |
|---|
| | 315 | ), |
|---|
| | 316 | ), |
|---|
| | 317 | 'static_prepend' => '<div class="midcom_admin_settings_section"><h2>'.$_MIDCOM->i18n->get_string('metadata configuration', 'midcom.admin.settings').'</h2>', |
|---|
| | 318 | ), |
|---|
| | 319 | 'metadata_scheduling' => array |
|---|
| | 320 | ( |
|---|
| | 321 | 'type' => 'select', |
|---|
| | 322 | 'widget' => 'select', |
|---|
| | 323 | 'title' => 'metadata_scheduling', |
|---|
| | 324 | 'type_config' => array |
|---|
| | 325 | ( |
|---|
| | 326 | 'options' => array |
|---|
| | 327 | ( |
|---|
| | 328 | '' => midcom_admin_settings_editor::get_default_bool('metadata_scheduling'), |
|---|
| | 329 | '1' => 'yes', |
|---|
| | 330 | '0' => 'no', |
|---|
| | 331 | ), |
|---|
| | 332 | ), |
|---|
| | 333 | ), |
|---|
| | 334 | 'metadata_schema' => array |
|---|
| | 335 | ( |
|---|
| | 336 | 'type' => 'text', |
|---|
| | 337 | 'widget' => 'text', |
|---|
| | 338 | 'title' => 'metadata_schema', |
|---|
| | 339 | 'static_append' => '</div>', |
|---|
| | 340 | ), |
|---|
| | 341 | |
|---|
| | 342 | |
|---|
| | 343 | |
|---|
| | 344 | // Authentication configuration |
|---|
| | 345 | 'auth_backend' => array |
|---|
| | 346 | ( |
|---|
| | 347 | 'title' => 'auth_backend', |
|---|
| | 348 | 'type' => 'select', |
|---|
| | 349 | 'type_config' => Array |
|---|
| | 350 | ( |
|---|
| | 351 | 'options' => array |
|---|
| | 352 | ( |
|---|
| | 353 | '' => midcom_admin_settings_editor::get_default_val('auth_backend',true), |
|---|
| | 354 | 'simple' => 'auth_backend_simple', |
|---|
| | 355 | ), |
|---|
| | 356 | ), |
|---|
| | 357 | 'widget' => 'select', |
|---|
| | 358 | 'static_prepend' => '<div class="midcom_admin_settings_section"><h2>'.$_MIDCOM->i18n->get_string('auth configuration', 'midcom.admin.settings').'</h2>', |
|---|
| | 359 | ), |
|---|
| | 360 | |
|---|
| | 361 | 'auth_login_session_timeout' => array |
|---|
| | 362 | ( |
|---|
| | 363 | 'type' => 'text', |
|---|
| | 364 | 'widget' => 'text', |
|---|
| | 365 | 'title' => 'auth_login_session_timeout', |
|---|
| | 366 | ), |
|---|
| | 367 | |
|---|
| | 368 | 'auth_frontend' => array |
|---|
| | 369 | ( |
|---|
| | 370 | 'title' => 'auth_frontend', |
|---|
| | 371 | 'type' => 'select', |
|---|
| | 372 | 'type_config' => Array |
|---|
| | 373 | ( |
|---|
| | 374 | 'options' => array |
|---|
| | 375 | ( |
|---|
| | 376 | '' => midcom_admin_settings_editor::get_default_val('auth_frontend',true), |
|---|
| | 377 | 'form' => 'auth_frontend_form', |
|---|
| | 378 | ), |
|---|
| | 379 | ), |
|---|
| | 380 | 'widget' => 'select', |
|---|
| | 381 | ), |
|---|
| | 382 | |
|---|
| | 383 | 'auth_sitegroup_mode' => array |
|---|
| | 384 | ( |
|---|
| | 385 | 'title' => 'auth_sitegroup_mode', |
|---|
| | 386 | 'type' => 'select', |
|---|
| | 387 | 'type_config' => Array |
|---|
| | 388 | ( |
|---|
| | 389 | 'options' => array |
|---|
| | 390 | ( |
|---|
| | 391 | '' => midcom_admin_settings_editor::get_default_val('auth_sitegroup_mode',true), |
|---|
| | 392 | 'auto' => 'auth_sitegroup_mode_auto', |
|---|
| | 393 | 'sitegrouped' => 'auth_sitegroup_mode_sitegrouped', |
|---|
| | 394 | 'not-sitegrouped' => 'auth_sitegroup_mode_not-sitegrouped', |
|---|
| | 395 | ), |
|---|
| | 396 | ), |
|---|
| | 397 | 'widget' => 'select', |
|---|
| | 398 | ), |
|---|
| | 399 | |
|---|
| | 400 | 'auth_login_form_httpcode' => array |
|---|
| | 401 | ( |
|---|
| | 402 | 'title' => 'auth_login_form_httpcode', |
|---|
| | 403 | 'type' => 'select', |
|---|
| | 404 | 'type_config' => Array |
|---|
| | 405 | ( |
|---|
| | 406 | 'options' => array |
|---|
| | 407 | ( |
|---|
| | 408 | '' => midcom_admin_settings_editor::get_default_val('auth_login_form_httpcode',true), |
|---|
| | 409 | '403' => 'auth_login_form_httpcode_403', |
|---|
| | 410 | '200' => 'auth_login_form_httpcode_200', |
|---|
| | 411 | ), |
|---|
| | 412 | ), |
|---|
| | 413 | 'widget' => 'select', |
|---|
| | 414 | ), |
|---|
| | 415 | |
|---|
| | 416 | 'auth_check_client_ip' => array |
|---|
| | 417 | ( |
|---|
| | 418 | 'type' => 'select', |
|---|
| | 419 | 'widget' => 'select', |
|---|
| | 420 | 'title' => 'auth_check_client_ip', |
|---|
| | 421 | 'type_config' => array |
|---|
| | 422 | ( |
|---|
| | 423 | 'options' => array |
|---|
| | 424 | ( |
|---|
| | 425 | '' => midcom_admin_settings_editor::get_default_bool('auth_check_client_ip'), |
|---|
| | 426 | '1' => 'yes', |
|---|
| | 427 | '0' => 'no', |
|---|
| | 428 | ), |
|---|
| | 429 | ), |
|---|
| | 430 | ), |
|---|
| | 431 | |
|---|
| | 432 | 'auth_openid_enable' => array |
|---|
| | 433 | ( |
|---|
| | 434 | 'type' => 'select', |
|---|
| | 435 | 'widget' => 'select', |
|---|
| | 436 | 'title' => 'auth_openid_enable', |
|---|
| | 437 | 'type_config' => array |
|---|
| | 438 | ( |
|---|
| | 439 | 'options' => array |
|---|
| | 440 | ( |
|---|
| | 441 | '' => midcom_admin_settings_editor::get_default_bool('auth_openid_enable'), |
|---|
| | 442 | '1' => 'yes', |
|---|
| | 443 | '0' => 'no', |
|---|
| | 444 | ), |
|---|
| | 445 | ), |
|---|
| | 446 | ), |
|---|
| | 447 | |
|---|
| | 448 | 'auth_allow_sudo' => array |
|---|
| | 449 | ( |
|---|
| | 450 | 'type' => 'select', |
|---|
| | 451 | 'widget' => 'select', |
|---|
| | 452 | 'title' => 'auth_allow_sudo', |
|---|
| | 453 | 'type_config' => array |
|---|
| | 454 | ( |
|---|
| | 455 | 'options' => array |
|---|
| | 456 | ( |
|---|
| | 457 | '' => midcom_admin_settings_editor::get_default_bool('auth_allow_sudo'), |
|---|
| | 458 | '1' => 'yes', |
|---|
| | 459 | '0' => 'no', |
|---|
| | 460 | ), |
|---|
| | 461 | ), |
|---|
| | 462 | ), |
|---|
| | 463 | |
|---|
| | 464 | |
|---|
| | 465 | 'auth_backend_simple_cookie_id' => array |
|---|
| | 466 | ( |
|---|
| | 467 | 'type' => 'text', |
|---|
| | 468 | 'widget' => 'text', |
|---|
| | 469 | 'title' => 'auth_backend_simple_cookie_id', |
|---|
| | 470 | |
|---|
| | 471 | ), |
|---|
| | 472 | |
|---|
| | 473 | 'auth_backend_simple_cookie_path' => array |
|---|
| | 474 | ( |
|---|
| | 475 | 'type' => 'text', |
|---|
| | 476 | 'widget' => 'text', |
|---|
| | 477 | 'title' => 'auth_backend_simple_cookie_path', |
|---|
| | 478 | ), |
|---|
| | 479 | |
|---|
| | 480 | 'auth_backend_simple_cookie_domain' => array |
|---|
| | 481 | ( |
|---|
| | 482 | 'type' => 'text', |
|---|
| | 483 | 'widget' => 'text', |
|---|
| | 484 | 'title' => 'auth_backend_simple_cookie_domain' , |
|---|
| | 485 | 'static_append' => '</div>', |
|---|
| | 486 | ), |
|---|
| | 487 | |
|---|
| | 488 | |
|---|
| | 489 | |
|---|
| | 490 | |
|---|
| | 491 | |
|---|
| | 492 | // Indexer Configuration |
|---|
| | 493 | 'indexer_backend' => array |
|---|
| | 494 | ( |
|---|
| | 495 | 'title' => 'indexer_backend', |
|---|
| | 496 | 'type' => 'select', |
|---|
| | 497 | 'type_config' => Array |
|---|
| | 498 | ( |
|---|
| | 499 | 'options' => array |
|---|
| | 500 | ( |
|---|
| | 501 | false => 'indexer_backend_none', |
|---|
| | 502 | 'xmltcp' => 'indexer_backend_xmltcp', |
|---|
| | 503 | 'solr' => 'Solr indexer', |
|---|
| | 504 | ), |
|---|
| | 505 | ), |
|---|
| | 506 | 'widget' => 'select', |
|---|
| | 507 | 'static_prepend' => '<div class="midcom_admin_settings_section"><h2>'.$_MIDCOM->i18n->get_string('indexer configuration', 'midcom.admin.settings').'</h2>', |
|---|
| | 508 | ), |
|---|
| | 509 | |
|---|
| | 510 | 'indexer_index_name' => array |
|---|
| | 511 | ( |
|---|
| | 512 | 'type' => 'text', |
|---|
| | 513 | 'widget' => 'text', |
|---|
| | 514 | 'title' => 'indexer_index_name', |
|---|
| | 515 | ), |
|---|
| | 516 | |
|---|
| | 517 | // XMLTCP indexer backend (THE RECOMMENDED ONE) |
|---|
| | 518 | 'indexer_xmltcp_host' => array |
|---|
| | 519 | ( |
|---|
| | 520 | 'type' => 'text', |
|---|
| | 521 | 'widget' => 'text', |
|---|
| | 522 | 'title' => 'indexer_xmltcp_host', |
|---|
| | 523 | ), |
|---|
| | 524 | |
|---|
| | 525 | 'indexer_xmltcp_port' => array |
|---|
| | 526 | ( |
|---|
| | 527 | 'type' => 'text', |
|---|
| | 528 | 'widget' => 'text', |
|---|
| | 529 | 'title' => 'indexer_xmltcp_port', |
|---|
| | 530 | 'static_append' => '</div>', |
|---|
| | 531 | ), |
|---|
| | 532 | |
|---|
| | 533 | /* |
|---|
| | 534 | // XMLShell indexer backend configuration |
|---|
| | 535 | 'indexer_xmlshell_executable' => array |
|---|
| | 536 | ( |
|---|
| | 537 | 'type' => 'text', |
|---|
| | 538 | 'widget' => 'text', |
|---|
| | 539 | 'title' => 'indexer_xmlshell_executable', |
|---|
| | 540 | ), |
|---|
| | 541 | |
|---|
| | 542 | 'indexer_xmlshell_working_directory' => array |
|---|
| | 543 | ( |
|---|
| | 544 | 'type' => 'text', |
|---|
| | 545 | 'widget' => 'text', |
|---|
| | 546 | 'title' => 'indexer_xmlshell_working_directory', |
|---|
| | 547 | ),*/ |
|---|
| | 548 | |
|---|
| | 549 | |
|---|
| 537 | | '' => sprintf($_MIDCOM->i18n->get_string('default (%s)', 'midcom.admin.settings'), $GLOBALS['midcom_config_default']['midcom_services_rcs_enable'] ? $_MIDCOM->i18n->get_string('yes', 'midcom') : $_MIDCOM->i18n->get_string('no', 'midcom')), |
|---|
| 538 | | '1' => 'yes', |
|---|
| 539 | | '0' => 'no', |
|---|
| 540 | | ), |
|---|
| 541 | | ), |
|---|
| 542 | | ), |
|---|
| 543 | | |
|---|
| 544 | | // Metadata system |
|---|
| 545 | | 'metadata_approval' => array |
|---|
| 546 | | ( |
|---|
| 547 | | 'type' => 'select', |
|---|
| 548 | | 'widget' => 'select', |
|---|
| 549 | | 'title' => 'metadata_approval', |
|---|
| 550 | | 'type_config' => array |
|---|
| 551 | | ( |
|---|
| 552 | | 'options' => array |
|---|
| 553 | | ( |
|---|
| 554 | | '' => sprintf($_MIDCOM->i18n->get_string('default (%s)', 'midcom.admin.settings'), $GLOBALS['midcom_config_default']['metadata_approval'] ? $_MIDCOM->i18n->get_string('yes', 'midcom') : $_MIDCOM->i18n->get_string('no', 'midcom')), |
|---|
| 555 | | '1' => 'yes', |
|---|
| 556 | | '0' => 'no', |
|---|
| 557 | | ), |
|---|
| 558 | | ), |
|---|
| 559 | | ), |
|---|
| 560 | | 'metadata_scheduling' => array |
|---|
| 561 | | ( |
|---|
| 562 | | 'type' => 'select', |
|---|
| 563 | | 'widget' => 'select', |
|---|
| 564 | | 'title' => 'metadata_scheduling', |
|---|
| 565 | | 'type_config' => array |
|---|
| 566 | | ( |
|---|
| 567 | | 'options' => array |
|---|
| 568 | | ( |
|---|
| 569 | | '' => sprintf($_MIDCOM->i18n->get_string('default (%s)', 'midcom.admin.settings'), $GLOBALS['midcom_config_default']['metadata_scheduling'] ? $_MIDCOM->i18n->get_string('yes', 'midcom') : $_MIDCOM->i18n->get_string('no', 'midcom')), |
|---|
| 570 | | '1' => 'yes', |
|---|
| 571 | | '0' => 'no', |
|---|
| 572 | | ), |
|---|
| 573 | | ), |
|---|
| 574 | | ), |
|---|
| 575 | | 'metadata_schema' => array |
|---|
| 576 | | ( |
|---|
| 577 | | 'type' => 'text', |
|---|
| 578 | | 'widget' => 'text', |
|---|
| 579 | | 'title' => 'metadata_schema', |
|---|
| 580 | | ), |
|---|
| 581 | | 'staging2live_staging' => array |
|---|
| 582 | | ( |
|---|
| 583 | | 'type' => 'select', |
|---|
| 584 | | 'widget' => 'select', |
|---|
| 585 | | 'title' => 'staging2live_staging', |
|---|
| 586 | | 'type_config' => array |
|---|
| 587 | | ( |
|---|
| 588 | | 'options' => array |
|---|
| 589 | | ( |
|---|
| 590 | | '' => sprintf($_MIDCOM->i18n->get_string('default (%s)', 'midcom.admin.settings'), $GLOBALS['midcom_config_default']['staging2live_staging'] ? $_MIDCOM->i18n->get_string('yes', 'midcom') : $_MIDCOM->i18n->get_string('no', 'midcom')), |
|---|
| 591 | | '1' => 'yes', |
|---|
| 592 | | '0' => 'no', |
|---|
| 593 | | ), |
|---|
| 594 | | ), |
|---|
| 595 | | ), |
|---|
| 596 | | |
|---|
| 597 | | // Positioning system |
|---|
| 598 | | 'positioning_enable' => array |
|---|
| 599 | | ( |
|---|
| 600 | | 'type' => 'select', |
|---|
| 601 | | 'widget' => 'select', |
|---|
| 602 | | 'title' => 'positioning_enable', |
|---|
| 603 | | 'type_config' => array |
|---|
| 604 | | ( |
|---|
| 605 | | 'options' => array |
|---|
| 606 | | ( |
|---|
| 607 | | '' => sprintf($_MIDCOM->i18n->get_string('default (%s)', 'midcom.admin.settings'), $GLOBALS['midcom_config_default']['positioning_enable'] ? $_MIDCOM->i18n->get_string('yes', 'midcom') : $_MIDCOM->i18n->get_string('no', 'midcom')), |
|---|
| 608 | | '1' => 'yes', |
|---|
| 609 | | '0' => 'no', |
|---|
| 610 | | ), |
|---|
| 611 | | ), |
|---|
| 612 | | ), |
|---|
| 613 | | 'component_listing_allowed' => array |
|---|
| 614 | | ( |
|---|
| 615 | | 'type' => 'select', |
|---|
| 616 | | 'widget' => 'select', |
|---|
| 617 | | 'title' => $_MIDCOM->i18n->get_string('allowed components (leave empty to allow all)', 'midcom.admin.settings'), |
|---|
| 618 | | 'type_config' => array |
|---|
| 619 | | ( |
|---|
| 620 | | 'allow_multiple' => true, |
|---|
| 621 | | 'options' => midcom_admin_folder_folder_management::list_components('', true), |
|---|
| 622 | | ), |
|---|
| 623 | | ), |
|---|
| 624 | | 'component_listing_excluded' => array |
|---|
| 625 | | ( |
|---|
| 626 | | 'type' => 'select', |
|---|
| 627 | | 'widget' => 'select', |
|---|
| 628 | | 'title' => $_MIDCOM->i18n->get_string('excluded components (leave empty to allow all)', 'midcom.admin.settings'), |
|---|
| 629 | | 'type_config' => array |
|---|
| 630 | | ( |
|---|
| 631 | | 'allow_multiple' => true, |
|---|
| 632 | | 'options' => midcom_admin_folder_folder_management::list_components('', true), |
|---|
| 633 | | ), |
|---|
| 634 | | ), |
|---|
| | 661 | '' => midcom_admin_settings_editor::get_default_bool('midcom_services_rcs_enable'), |
|---|
| | 662 | '1' => 'yes', |
|---|
| | 663 | '0' => 'no', |
|---|
| | 664 | ), |
|---|
| | 665 | ), |
|---|
| | 666 | 'static_append' => '</div>', |
|---|
| | 667 | ), |
|---|
| | 668 | |
|---|
| | 669 | |
|---|
| | 670 | |
|---|