redirect_header($redirect, 2, _AM_SYSTEM_DBUPDATED); } else { redirect_header("admin.php?fct=preferences", 2, _AM_SYSTEM_DBUPDATED); } break; default: // Display setting cats $xoBreadCrumb->addTips(_AM_SYSTEM_PREFERENCES_NAV_TIPS); $xoBreadCrumb->addHelp(system_adminVersion('preferences', 'help')); $xoBreadCrumb->render(); $confcat_handler = xoops_gethandler('configcategory'); $confcats = $confcat_handler->getObjects(); $image = system_adminVersion('preferences', 'configcat'); $count_prefs = 1; $nbcolonnes_pref = 5; foreach (array_keys($confcats) as $i) { $preferences['id'] = $confcats[$i]->getVar('confcat_id'); $preferences['image'] = system_AdminIcons('xoops/' . $image[$i]); $preferences['name'] = constant($confcats[$i]->getVar('confcat_name')); $count_prefs++; $preferences['newline'] = $count_prefs % $nbcolonnes_pref == 1 ? true : false; $xoopsTpl->assign('newline', $preferences['newline']); $xoopsTpl->append_by_ref('preferences', $preferences); unset($preferences); } $xoopsTpl->assign('menu', 1); $xoopsTpl->assign('breadcrumb', 1); break; } // Call Footer xoops_cp_footer();