toDB($_POST['maintainance_text']); if($pref['maintainance_text'] != $temp) { $pref['maintainance_text'] = $temp; $changed = TRUE; } $temp = intval($_POST['main_admin_only']); if(getperms('0') && $pref['main_admin_only'] != $temp) { $pref['main_admin_only'] = $temp; $changed = TRUE; } if($changed) { e107::getLog()->add(($pref['maintainance_flag'] == 0) ? 'MAINT_02' : 'MAINT_01', $pref['maintainance_text'], E_LOG_INFORMATIVE, ''); save_prefs(); // $mes->addSuccess(UGFLAN_1); } else { $mes->addInfo(LAN_NO_CHANGE); } $pref = e107::getConfig('core', true, true)->getPref(); } require_once("auth.php"); $text = "
".UGFLAN_4." "; $elements = array( e_UC_PUBLIC => LAN_DISABLED, e_UC_MEMBER => ADLAN_110, e_UC_ADMIN => UGFLAN_8, e_UC_MAINADMIN => UGFLAN_9 ); $text .= " "; //TODO multilanguage pref $text .= "
".UGFLAN_2.": ".$frm->radio('maintainance_flag', $elements, $pref['maintainance_flag'], TRUE)."
".UGFLAN_5." ".$frm->bbarea('maintainance_text', vartrue($pref['maintainance_text']), 'maintenance', '_common', 'small')."
".UGFLAN_6."
".$frm->admin_button('updatesettings', LAN_UPDATE, 'update')."
"; //Ajax Support if(e_AJAX_REQUEST) { $ns->tablerender(UGFLAN_4, $mes->render().$text, 'core-ugflag'); exit; } echo "
\n"; $ns->tablerender(UGFLAN_4, $mes->render().$text, 'core-ugflag'); echo "\n
"; require_once (e_ADMIN."footer.php"); /** * Handle page DOM within the page header * * @return string JS source */ /* function headerjs() { $ret = " "; return $ret; } */