Ejemplo n.º 1
0
         $content['InjectBodyHeader'] = $_POST['InjectBodyHeader'];
     }
     if (isset($_POST['InjectBodyFooter'])) {
         $content['InjectBodyFooter'] = $_POST['InjectBodyFooter'];
     }
     if (isset($_POST['PhplogconLogoUrl'])) {
         $content['PhplogconLogoUrl'] = $_POST['PhplogconLogoUrl'];
     }
     if (isset($_POST['UseProxyServerForRemoteQueries'])) {
         $content['UseProxyServerForRemoteQueries'] = $_POST['UseProxyServerForRemoteQueries'];
     }
     if (isset($_POST['HeaderDefaultEncoding'])) {
         $content['HeaderDefaultEncoding'] = $_POST['HeaderDefaultEncoding'];
     }
     // Save configuration variables now
     SaveGeneralSettingsIntoDB();
 }
 // Do if User wants extra options
 if ($content['ENABLEUSEROPTIONS']) {
     // Language needs special treatment
     if (isset($_POST['User_ViewDefaultLanguage'])) {
         $tmpvar = DB_RemoveBadChars($_POST['User_ViewDefaultLanguage']);
         if (VerifyLanguage($tmpvar)) {
             $USERCFG['ViewDefaultLanguage'] = $tmpvar;
         }
     }
     // Read default theme
     if (isset($_POST['User_ViewDefaultTheme'])) {
         $USERCFG['ViewDefaultTheme'] = $_POST['User_ViewDefaultTheme'];
     }
     // Read default VIEW | Check if View exists as well!
function ConvertGeneralSettings()
{
    global $content;
    // Only call the same function as in admin index!
    SaveGeneralSettingsIntoDB(true);
}