function showPreferencesRes() { /* update last page */ $_SESSION['LASTPAGE'] = substr($_SESSION['LASTPAGE'], 0, strripos($_SESSION['LASTPAGE'], ".res")); $user = new User($_SESSION['URID']); $user->setNavigationInBreadCrumbs(loadvar('navigationinbreadcrumbs')); $user->setRoutingAutoIndentation(loadvar('routingautoindentation')); $user->setHTMLEditor(loadvar('htmleditor')); $user->setItemsInTable(loadvar('itemsintable')); $user->saveChanges(); $displaySysAdmin = new DisplaySysAdmin(); $content = $displaySysAdmin->displaySuccess(Language::messagePreferencesSaved()); return $displaySysAdmin->showPreferences($content); }