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(); if(!e_AJAX_REQUEST) { // header("location:".e_SELF); // exit(); } } require_once("auth.php"); $text = "
"; //Ajax Support if(!e_AJAX_REQUEST) { echo "