// We check only when not in the "system" module, and not in an "action" (ajax, etc) // And when user is undefined or admin if ($m && $m != "system" && (!$a || $a == "index") && (!$user || !$user->_id || $user->isAdmin())) { $setupclass = "CSetup{$m}"; $setup = new $setupclass(); $module = new CModule(); $module->compareToSetup($setup); $obsolete_module = $module->_upgradable; } // Feed module with tabs require "./modules/{$module->mod_name}/index.php"; if ($tab !== null) { $module->addConfigureTab(); } if (!$a || $a === "index") { $tab = $module->getValidTab($tab); } if (!$suppressHeaders) { // Liste des Etablissements $etablissements = CMediusers::loadEtablissements(PERM_EDIT); //current Group $current_group = CGroups::loadCurrent(); // Messages $messages = new CMessage(); $messages = $messages->loadPublications("present", $m, $g); // Mails $mails = CUserMessageDest::loadNewMessages(); // Creation du Template $tplHeader = new CSmartyDP("style/{$uistyle}"); $tplHeader->assign("offline", false); $tplHeader->assign("nodebug", true);