} else { $content['failedstatements'][$content['sql_failed']]['cssclass'] = "line2"; } // --- $content['sql_failed']++; } else { $content['sql_sucess']++; } // Free result DB_FreeQuery($result); } } // --- // --- Upgrade Database Version in Config Table $content['database_installedversion'] = $content['database_internalversion']; WriteConfigValue("database_installedversion", true); // --- } } } else { $content['UPGRADE_DEFAULT'] = "1"; } } else { $content['UPGRADE_DEFAULT'] = "1"; } } else { $content['UPGRADE_DEFAULT'] = "0"; } // disable running to be save! ;) if (isset($content['ISERROR'])) { $content['UPGRADE_RUNNING'] = "0";
} else { $content['EditAllowed'] = false; $content['DISABLE_GLOBALEDIT_FORMCONTROL'] = "disabled"; } // --- First thing to do is to check the op get parameter! // Check for changes first | Abort if Edit is not allowed if (isset($_GET['op']) && isset($_GET['value'])) { if ($_GET['op'] == "enableuserops") { $iNewVal = intval($_GET['value']); if ($iNewVal == 1) { $USERCFG['UserOverwriteOptions'] = 1; } else { $USERCFG['UserOverwriteOptions'] = 0; } // Enable User Options! WriteConfigValue("UserOverwriteOptions", false, $content['SESSION_USERID']); } } // --- // --- Check if user wants to overwrite $UserOverwriteOptions = GetConfigSetting("UserOverwriteOptions", 0, CFGLEVEL_USER); if ($UserOverwriteOptions == 1) { $content['ENABLEUSEROPTIONS'] = true; } else { $content['ENABLEUSEROPTIONS'] = false; } // --- // Check for changes first | Abort if Edit is not allowed if (isset($_POST['op'])) { if ($_POST['op'] == "edit") { // Do if User is ADMIN
function SaveUserGeneralSettingsIntoDB() { global $content; WriteConfigValue("ViewDefaultLanguage", false, $content['SESSION_USERID']); WriteConfigValue("ViewDefaultTheme", false, $content['SESSION_USERID']); WriteConfigValue("ViewUseTodayYesterday", false, $content['SESSION_USERID']); WriteConfigValue("ViewEnableDetailPopups", false, $content['SESSION_USERID']); WriteConfigValue("EnableContextLinks", false, $content['SESSION_USERID']); WriteConfigValue("EnableIPAddressResolve", false, $content['SESSION_USERID']); WriteConfigValue("MiscShowDebugMsg", false, $content['SESSION_USERID']); WriteConfigValue("MiscShowDebugGridCounter", false, $content['SESSION_USERID']); WriteConfigValue("MiscShowPageRenderStats", false, $content['SESSION_USERID']); WriteConfigValue("MiscEnableGzipCompression", false, $content['SESSION_USERID']); WriteConfigValue("SuppressDuplicatedMessages", false, $content['SESSION_USERID']); WriteConfigValue("TreatNotFoundFiltersAsTrue", false, $content['SESSION_USERID']); WriteConfigValue("InlineOnlineSearchIcons", false, $content['SESSION_USERID']); WriteConfigValue("ViewMessageCharacterLimit", false, $content['SESSION_USERID']); WriteConfigValue("ViewStringCharacterLimit", false, $content['SESSION_USERID']); WriteConfigValue("ViewEntriesPerPage", false, $content['SESSION_USERID']); WriteConfigValue("ViewEnableAutoReloadSeconds", false, $content['SESSION_USERID']); WriteConfigValue("AdminChangeWaitTime", false, $content['SESSION_USERID']); WriteConfigValue("PopupMenuTimeout", false, $content['SESSION_USERID']); WriteConfigValue("PrependTitle", false, $content['SESSION_USERID']); WriteConfigValue("SearchCustomButtonCaption", false, $content['SESSION_USERID']); WriteConfigValue("SearchCustomButtonSearch", false, $content['SESSION_USERID']); // Extra Fields WriteConfigValue("DefaultViewsID", false, $content['SESSION_USERID']); WriteConfigValue("DefaultSourceID", false, $content['SESSION_USERID']); }