echo "<h3 style='text-align:left;'>" . $module->getvar('name') . ' &nbsp; ' . _PREFERENCES . "</h3>\n";
     // GIJ patch end
     $form->display();
     xoops_cp_footer();
     exit;
 }
 if ($op == 'save') {
     //if ( !admin_refcheck("/modules/$admin_mydirname/admin/") ) {
     //  exit('Invalid referer');
     //}
     if (!$xoopsGTicket->check(true, 'mymenu')) {
         redirect_header(XOOPS_URL . '/', 3, $xoopsGTicket->getErrors());
     }
     require_once XOOPS_ROOT_PATH . '/class/template.php';
     $xoopsTpl = new XoopsTpl();
     $xoopsTpl->clear_all_cache();
     // regenerate admin menu file
     xoops_module_write_admin_menu(xoops_module_get_admin_menu());
     if (!empty($_POST['conf_ids'])) {
         $conf_ids = $_POST['conf_ids'];
     }
     $count = count($conf_ids);
     $tpl_updated = false;
     $theme_updated = false;
     $startmod_updated = false;
     $lang_updated = false;
     if ($count > 0) {
         for ($i = 0; $i < $count; $i++) {
             $config =& $config_handler->getConfig($conf_ids[$i]);
             $new_value =& $_POST[$config->getVar('conf_name')];
             if (is_array($new_value) || $new_value != $config->getVar('conf_value')) {