/** 
  * Update the settings for a plugin
  * 
  * @param array $plugin
  */
 function _oik_plugins_update_settings($plugin)
 {
     $field = bw_array_get($plugin, "plugin", null);
     if ($plugin) {
         unset($plugin['plugin']);
         bw_update_option($field, $plugin, "bw_plugins");
     } else {
         //gobang();
     }
 }
 function _oik_themes_update_settings($theme)
 {
     $field = bw_array_get($theme, "theme", null);
     if ($theme) {
         unset($theme['theme']);
         bw_update_option($field, $theme, "bw_themes");
     } else {
         //gobang();
     }
 }