storeConfig( 'site_keywords_1', null ); $gBitSystem->storeConfig( 'site_keywords_2', null ); $gBitSystem->storeConfig( 'site_keywords_3', null ); foreach( $keywords as $key => $chunk ) { $gBitSystem->storeConfig( "site_keywords".( !empty( $key ) ? '_'.$key : '' ), $chunk, KERNEL_PKG_NAME ); } // join keywords back together $gBitSystem->setConfig( 'site_keywords', $gBitSystem->getConfig( 'site_keywords' ). $gBitSystem->getConfig( 'site_keywords_1' ). $gBitSystem->getConfig( 'site_keywords_2' ). $gBitSystem->getConfig( 'site_keywords_3' ), ); } // Special handling for site_temp_dir, which has a default value if( isset( $_REQUEST["site_temp_dir"] ) && $_REQUEST["site_temp_dir"] != TEMP_PKG_PATH ) { $gBitSystem->storeConfig( "site_temp_dir", $_REQUEST["site_temp_dir"], KERNEL_PKG_NAME ); $gBitSmarty->assign( "site_temp_dir", $_REQUEST["site_temp_dir"] ); } // Special handling for centralissed_upload_dir, which has a default value $centralDir = !empty( $_REQUEST["site_upload_dir"] ) ? $_REQUEST["site_upload_dir"] : null; $gBitSystem->storeConfig( "site_upload_dir", $centralDir , KERNEL_PKG_NAME ); $gBitSmarty->assign( "site_upload_dir", $centralDir ); }