Changeset 11670

Show
Ignore:
Timestamp:
08/22/07 17:42:15 (1 year ago)
Author:
adrenalin
Message:

Added component display configuration

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/midcom/midcom.admin.settings/config/manifest.inc

    r5819 r11670  
    1  
    2   'name' => 'midcom.admin.settings', 
    3   'description' => 'This module handles MidCOM local configuration.', 
    4   'purecode' => true, 
    5   'version' => '0.1.5beta1', 
    6   'state' => 'beta', 
    7   'privileges' =>  
    8   array ( 
    9   ), 
    10   'class_definitions' =>  
    11   array ( 
    12   ), 
    13   'package.xml' =>  
    14   array ( 
     1'name' => 'midcom.admin.settings', 
     2'description' => 'This module handles MidCOM local configuration.', 
     3'purecode' => true, 
     4'version' => '0.1.5beta2', 
     5'state' => 'beta', 
     6'privileges' => array (), 
     7'class_definitions' => array (), 
     8'package.xml' => array 
     9
    1510    'license' => 'LGPL', 
    16     'maintainers' =>  
    17     array ( 
    18       'solt' =>  
    19       array ( 
    20         'name' => 'Marcin Sołtysiak', 
    21         'email' => 'olga@olga.pl', 
    22         'role' => 'lead', 
    23       ), 
    24       'bergie' =>  
    25       array ( 
    26         'name' => 'Henri Bergius', 
    27         'email' => 'henri.bergius@iki.fi', 
    28         'role' => 'developer', 
    29       ), 
     11    'maintainers' => array 
     12    ( 
     13        'solt' => array 
     14        ( 
     15            'name' => 'Marcin Sołtysiak', 
     16            'email' => 'olga@olga.pl', 
     17            'role' => 'lead', 
     18        ), 
     19        'bergie' => array 
     20        ( 
     21            'name' => 'Henri Bergius', 
     22            'email' => 'henri.bergius@iki.fi', 
     23            'role' => 'developer', 
     24        ), 
     25        'adrenalin' => array 
     26        ( 
     27            'name' => 'Arttu Manninen', 
     28            'email' => 'arttu@kaktus.cc', 
     29            'role' => 'developer', 
     30        ), 
    3031    ), 
    31     'dependencies' =>  
    32     array ( 
    33       'midcom.helper.datamanager2' =>  
    34       array ( 
    35       ), 
    36       'midcom' =>  
    37       array ( 
    38       ), 
     32    'dependencies' => array 
     33    ( 
     34        'midcom.helper.datamanager2' => array (), 
     35        'midcom' => array (), 
     36        'midcom.admin.folder => array (), 
    3937    ), 
    40   ), 
     38), 
  • trunk/midcom/midcom.admin.settings/config/schemadb_config.inc

    r11645 r11670  
    3030        ), 
    3131 
    32        'auth_frontend' => array 
     32        'auth_frontend' => array 
    3333        ( 
    3434            'title' => 'auth_frontend', 
     
    4545        ), 
    4646 
    47        'auth_sitegroup_mode' => array 
     47        'auth_sitegroup_mode' => array 
    4848        ( 
    4949            'title' => 'auth_sitegroup_mode', 
     
    6262        ), 
    6363         
    64        'auth_login_form_httpcode' => array 
     64        'auth_login_form_httpcode' => array 
    6565        ( 
    6666            'title' => 'auth_login_form_httpcode', 
     
    7878        ), 
    7979 
    80        'auth_check_client_ip' => array 
     80        'auth_check_client_ip' => array 
    8181        ( 
    8282            'type' => 'select', 
     
    8787                'options' => array 
    8888                ( 
    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 
     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 
    9797        ( 
    9898            'type' => 'select', 
     
    103103                'options' => array 
    104104                ( 
    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 
     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 
    113113        ( 
    114114            'type' => 'text', 
     
    118118        ), 
    119119 
    120        'auth_backend_simple_cookie_path' => array 
     120        'auth_backend_simple_cookie_path' => array 
    121121        ( 
    122122            'type' => 'text', 
     
    125125        ), 
    126126 
    127        'auth_backend_simple_cookie_domain' => array 
     127        'auth_backend_simple_cookie_domain' => array 
    128128        ( 
    129129            'type' => 'text', 
     
    133133 
    134134        // Cache configuration 
    135        'cache_base_directory' => array 
     135        'cache_base_directory' => array 
    136136        ( 
    137137            'type' => 'text', 
     
    141141 
    142142        /* 
    143        'cache_module_content_uncached' => array 
     143        'cache_module_content_uncached' => array 
    144144        ( 
    145145            'type' => 'select', 
     
    150150                'options' => array 
    151151                ( 
    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')), 
     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')), 
    153153                    '1' => 'yes', 
    154154                    '0' => 'no', 
     
    158158        */ 
    159159 
    160        'cache_module_content_headers_strategy' => array 
     160    'cache_module_content_headers_strategy' => array 
    161161        ( 
    162162            'type' => 'select', 
     
    169169                    ''  => sprintf($_MIDCOM->i18n->get_string('default (%s)', 'midcom.admin.settings'), $GLOBALS['midcom_config_default']['cache_module_content_headers_strategy']), 
    170170                    'no-cache' =>'cs-no-cache',  
    171                    'revalidate' =>'cs-revalidate', 
    172                    'public' =>'cs-public', 
    173                    'private'=>'cs-private', 
     171                'revalidate' =>'cs-revalidate', 
     172                'public' =>'cs-public', 
     173                'private'=>'cs-private', 
    174174                ), 
    175175            ), 
     
    183183        ), 
    184184 
    185        'i18n_fallback_language' => array 
     185        'i18n_fallback_language' => array 
    186186        ( 
    187187            'title' => 'i18n_fallback_language', 
     
    195195 
    196196        // Indexer Configuration 
    197        'indexer_backend' => array 
     197        'indexer_backend' => array 
    198198        ( 
    199199            'title' => 'indexer_backend', 
     
    203203                'options' => array 
    204204                ( 
    205                     ''    => 'indexer_backend_none', 
     205                    false    => 'indexer_backend_none', 
    206206                    'xmltcp' => 'indexer_backend_xmltcp', 
    207207                    'solr' => 'Solr indexer', 
     
    211211        ), 
    212212 
    213        'indexer_index_name' => array 
     213        'indexer_index_name' => array 
    214214        ( 
    215215            'type' => 'text', 
     
    219219 
    220220        // XMLTCP indexer backend (THE RECOMMENDED ONE) 
    221        'indexer_xmltcp_host' => array 
     221        'indexer_xmltcp_host' => array 
    222222        ( 
    223223            'type' => 'text', 
     
    226226        ), 
    227227 
    228        'indexer_xmltcp_port' => array 
     228        'indexer_xmltcp_port' => array 
    229229        ( 
    230230            'type' => 'text', 
     
    235235        /* 
    236236        // XMLShell indexer backend configuration 
    237        'indexer_xmlshell_executable' => array 
     237        'indexer_xmlshell_executable' => array 
    238238        ( 
    239239            'type' => 'text', 
     
    242242        ), 
    243243 
    244        'indexer_xmlshell_working_directory' => array 
     244        'indexer_xmlshell_working_directory' => array 
    245245        ( 
    246246            'type' => 'text', 
     
    250250 
    251251        // Logging Configuration 
    252        'log_filename' => array 
     252        'log_filename' => array 
    253253        ( 
    254254            'type' => 'text', 
     
    257257        ), 
    258258 
    259        'log_level' => array 
     259        'log_level' => array 
    260260        ( 
    261261            'title' => 'log_level', 
     
    276276        ), 
    277277 
    278        'log_tailurl_enable' => array 
     278        'log_tailurl_enable' => array 
    279279        ( 
    280280            'type' => 'select', 
     
    285285                'options' => array 
    286286                ( 
    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')), 
     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')), 
    288288                    '1' => 'yes', 
    289289                    '0' => 'no', 
     
    294294        // Core configuration 
    295295        /* 
    296        'midcom_ais_url' => array 
     296        'midcom_ais_url' => array 
    297297        ( 
    298298            'type' => 'text', 
     
    302302        */ 
    303303 
    304        'midcom_prefix' => array 
     304        'midcom_prefix' => array 
    305305        ( 
    306306            'type' => 'text', 
     
    309309        ), 
    310310 
    311        'midcom_root_topic_guid' => array 
     311        'midcom_root_topic_guid' => array 
    312312        ( 
    313313            'title' => 'midcom_root_topic_guid', 
     
    349349        ), 
    350350 
    351        'midcom_sgconfig_basedir' => array 
     351        'midcom_sgconfig_basedir' => array 
    352352        ( 
    353353            'type' => 'text', 
     
    356356        ), 
    357357 
    358        'midcom_site_url' => array 
     358        'midcom_site_url' => array 
    359359        ( 
    360360            'type' => 'text', 
     
    363363        ), 
    364364 
    365        'midcom_tempdir' => array 
     365        'midcom_tempdir' => array 
    366366        ( 
    367367            'type' => 'text', 
     
    370370        ), 
    371371 
    372        'midcom_temporary_resource_timeout' => array 
     372        'midcom_temporary_resource_timeout' => array 
    373373        ( 
    374374            'type' => 'text', 
     
    378378 
    379379        // Visibility settings (NAP) 
    380        'show_hidden_objects' => array 
     380        'show_hidden_objects' => array 
    381381        ( 
    382382            'type' => 'select', 
     
    387387                'options' => array 
    388388                ( 
    389                     '' => sprintf($_MIDCOM->i18n->get_string('default (%s)', 'midcom.admin.settings'), $GLOBALS['midcom_config_default']['show_hidden_objects'] ? $_MIDCOM->i18n->get_string('yes', 'midcom') : $_MIDCOM->i18n->get_string('no', 'midcom')), 
    390                     '1' => 'yes', 
    391                     '0' => 'no', 
    392                 ), 
    393             ), 
    394         ), 
    395  
    396        'show_unapproved_objects' => array 
     389                    ''    => sprintf($_MIDCOM->i18n->get_string('default (%s)', 'midcom.admin.settings'), $GLOBALS['midcom_config_default']['show_hidden_objects'] ? $_MIDCOM->i18n->get_string('yes', 'midcom') : $_MIDCOM->i18n->get_string('no', 'midcom')), 
     390                    '1' => 'yes', 
     391                    '0' => 'no', 
     392                ), 
     393            ), 
     394        ), 
     395 
     396        'show_unapproved_objects' => array 
    397397        ( 
    398398            'type' => 'select', 
     
    403403                'options' => array 
    404404                ( 
    405                     '' => sprintf($_MIDCOM->i18n->get_string('default (%s)', 'midcom.admin.settings'), $GLOBALS['midcom_config_default']['show_unapproved_objects'] ? $_MIDCOM->i18n->get_string('yes', 'midcom') : $_MIDCOM->i18n->get_string('no', 'midcom')), 
     405                    ''    => sprintf($_MIDCOM->i18n->get_string('default (%s)', 'midcom.admin.settings'), $GLOBALS['midcom_config_default']['show_unapproved_objects'] ? $_MIDCOM->i18n->get_string('yes', 'midcom') : $_MIDCOM->i18n->get_string('no', 'midcom')), 
    406406                    '1' => 'yes', 
    407407                    '0' => 'no', 
     
    410410        ), 
    411411         
    412        'i18n_multilang_strict' => array 
     412        'i18n_multilang_strict' => array 
    413413        ( 
    414414            'type' => 'select', 
     
    419419                'options' => array 
    420420                ( 
    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')), 
     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')), 
    422422                    '1' => 'yes', 
    423423                    '0' => 'no', 
     
    427427 
    428428        // Utilities 
    429        'utility_imagemagick_base' => array 
     429        'utility_imagemagick_base' => array 
    430430        ( 
    431431            'type' => 'text', 
     
    434434        ), 
    435435 
    436        'utility_jpegtran' => array 
     436        'utility_jpegtran' => array 
    437437        ( 
    438438            'type' => 'text', 
     
    441441        ), 
    442442 
    443        'utility_unzip' => array 
     443        'utility_unzip' => array 
    444444        ( 
    445445            'type' => 'text', 
     
    448448        ), 
    449449 
    450        'utility_gzip' => array 
     450        'utility_gzip' => array 
    451451        ( 
    452452            'type' => 'text', 
     
    455455        ), 
    456456 
    457        'utility_tar' => array 
     457        'utility_tar' => array 
    458458        ( 
    459459            'type' => 'text', 
     
    462462        ), 
    463463 
    464        'utility_jhead' => array 
     464        'utility_jhead' => array 
    465465        ( 
    466466            'type' => 'text', 
     
    469469        ), 
    470470 
    471        'utility_find' => array 
     471        'utility_find' => array 
    472472        ( 
    473473            'type' => 'text', 
     
    476476        ), 
    477477 
    478        'utility_file' => array 
     478        'utility_file' => array 
    479479        ( 
    480480            'type' => 'text', 
     
    483483        ), 
    484484 
    485        'utility_catdoc' => array 
     485        'utility_catdoc' => array 
    486486        ( 
    487487            'type' => 'text', 
     
    490490        ), 
    491491 
    492        'utility_pdftotext' => array 
     492        'utility_pdftotext' => array 
    493493        ( 
    494494            'type' => 'text', 
     
    497497        ), 
    498498 
    499        'utility_unrtf' => array 
     499        'utility_unrtf' => array 
    500500        ( 
    501501            'type' => 'text', 
     
    505505 
    506506        // Revision control service 
    507        'utility_diff' => array 
     507        'utility_diff' => array 
    508508        ( 
    509509            'type' => 'text', 
     
    512512        ), 
    513513 
    514        'utility_rcs' => array 
     514        'utility_rcs' => array 
    515515        ( 
    516516            'type' => 'text', 
     
    519519        ), 
    520520 
    521        'midcom_services_rcs_bin_dir' => array 
     521        'midcom_services_rcs_bin_dir' => array 
    522522        ( 
    523523            'type' => 'text', 
     
    526526        ), 
    527527 
    528        'midcom_services_rcs_enable' => array 
     528        'midcom_services_rcs_enable' => array 
    529529        ( 
    530530            'type' => 'select', 
     
    535535                'options' => array 
    536536                ( 
    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')), 
     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')), 
    538538                    '1' => 'yes', 
    539539                    '0' => 'no', 
     
    543543 
    544544        // Metadata system 
    545        'metadata_approval' => array 
     545        'metadata_approval' => array 
    546546        ( 
    547547            'type' => 'select', 
     
    552552                'options' => array 
    553553                ( 
    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 
     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 
    561561        ( 
    562562            'type' => 'select', 
     
    567567                'options' => array 
    568568                ( 
    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 
     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 
    576576        ( 
    577577            'type' => 'text', 
     
    579579            'title' => 'metadata_schema', 
    580580        ), 
    581        'staging2live_staging' => array 
     581        'staging2live_staging' => array 
    582582        ( 
    583583            'type' => 'select', 
     
    588588                'options' => array 
    589589                ( 
    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')), 
     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')), 
    591591                    '1' => 'yes', 
    592592                    '0' => 'no', 
     
    596596 
    597597        // Positioning system 
    598        'positioning_enable' => array 
     598        'positioning_enable' => array 
    599599        ( 
    600600            'type' => 'select', 
     
    605605                'options' => array 
    606606                ( 
    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  
    614  
     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        ), 
    615635    ), 
    616636), 
  • trunk/midcom/midcom.admin.settings/editor.php

    r11645 r11670  
    6868        require MIDCOM_ROOT . '/midcom/helper/hostconfig.php'; 
    6969 
    70         $_MIDCOM->load_library('midcom.helper.datamanager2'); 
     70        $_MIDCOM->load_library('midcom.helper.datamanager2'); 
     71        $_MIDCOM->load_library('midcom.admin.folder'); 
    7172    } 
    7273 
     
    9596    function _load_schemadb() 
    9697    { 
    97        foreach ($GLOBALS['midcom_config_local'] as $key => $value) 
    98        
    99           $this->_defaults[$key] = $value; 
    100        
    101      
    102        $this->_schemadb = midcom_helper_datamanager2_schema::load_database('file:/midcom/admin/settings/config/schemadb_config.inc');           
     98        foreach ($GLOBALS['midcom_config_local'] as $key => $value) 
     99       
     100           $this->_defaults[$key] = $value; 
     101       
     102     
     103        $this->_schemadb = midcom_helper_datamanager2_schema::load_database('file:/midcom/admin/settings/config/schemadb_config.inc');         
    103104    } 
    104105 
     
    143144 
    144145        $this->_load_controller(); 
    145          
     146     
    146147        switch ($this->_controller->process_form()) 
    147148        { 
     
    228229        { 
    229230            if (   array_key_exists($key, $GLOBALS['midcom_config'])) { 
     231                if ($GLOBALS['midcom_config'][$key] != $val) { 
    230232                    $hostconfig->set($key, $val); 
     233                } 
    231234             
    232235            } else {