diff --git a/src/include/functions_common.php b/src/include/functions_common.php index acee4af..1022460 100644 --- a/src/include/functions_common.php +++ b/src/include/functions_common.php @@ -494,6 +494,18 @@ function InitRuntimeInformations() $content['MaxExecutionTime'] = ini_get("max_execution_time"); } // --- + + // --- Set Database Update Warning if necessary + if ( + GetConfigSetting("UserDBEnabled", false) && + $content['database_internalversion'] > $content['database_installedversion'] && + !defined('IS_UPRGADEPAGE') + ) + { + $content['dbupgrade_warning'] = true; + $content['WARNING_DBUPGRADE_TEXT'] = GetAndReplaceLangStr( $content['LN_WARNING_DBUPGRADE_TEXT'], $content['database_installedversion'], $content['database_internalversion'] ); + } + } function CreateDebugModes() diff --git a/src/lang/de/main.php b/src/lang/de/main.php index a6e10aa..f810d27 100644 --- a/src/lang/de/main.php +++ b/src/lang/de/main.php @@ -95,6 +95,8 @@ $content['LN_ERROR_NORECORDS'] = "Es wurden keine syslog-Einträge gefunden. $content['LN_FOOTER_SECONDS'] = "seconds"; $content['LN_WARNING_LOGSTREAMTITLE'] = "Logstream Warning"; $content['LN_WARNING_LOGSTREAMDISK_TIMEOUT'] = "While reading the logstream, the php script timeout forced me to abort at this point.

If you want to avoid this, please increase the phpLogCon script timeout in your config.php. If the user system is installed, you can do that in Admin center."; + $content['LN_WARNING_DBUPGRADE'] = "Database Upgrade required"; + $content['LN_WARNING_DBUPGRADE_TEXT'] = "The current installed database version is '%1'.
An update to version '%2' is available."; // Topmenu Entries $content['LN_MENU_SEARCH'] = "Suchen"; diff --git a/src/lang/en/main.php b/src/lang/en/main.php index 5401330..eff8d8d 100644 --- a/src/lang/en/main.php +++ b/src/lang/en/main.php @@ -97,6 +97,8 @@ $content['LN_ERROR_DB_DBFIELDNOTFOUND'] = "Database Field mapping for at least o $content['LN_WARNING_LOGSTREAMTITLE'] = "Logstream Warning"; $content['LN_WARNING_LOGSTREAMDISK_TIMEOUT'] = "While reading the logstream, the php script timeout forced me to abort at this point.

If you want to avoid this, please increase the phpLogCon script timeout in your config.php. If the user system is installed, you can do that in Admin center."; $content['LN_ERROR_FILE_NOMORETIME'] = "No more time for processing left"; + $content['LN_WARNING_DBUPGRADE'] = "Database Upgrade required"; + $content['LN_WARNING_DBUPGRADE_TEXT'] = "The current installed database version is '%1'.
An update to version '%2' is available."; // Topmenu Entries $content['LN_MENU_SEARCH'] = "Search"; diff --git a/src/lang/pt_BR/main.php b/src/lang/pt_BR/main.php index e54adba..1864b00 100644 --- a/src/lang/pt_BR/main.php +++ b/src/lang/pt_BR/main.php @@ -99,6 +99,8 @@ $content['LN_ERROR_NORECORDS'] = "Sem mensagens encontradas."; $content['LN_FOOTER_SECONDS'] = "seconds"; $content['LN_WARNING_LOGSTREAMTITLE'] = "Logstream Warning"; $content['LN_WARNING_LOGSTREAMDISK_TIMEOUT'] = "While reading the logstream, the php script timeout forced me to abort at this point.

If you want to avoid this, please increase the phpLogCon script timeout in your config.php. If the user system is installed, you can do that in Admin center."; + $content['LN_WARNING_DBUPGRADE'] = "Database Upgrade required"; + $content['LN_WARNING_DBUPGRADE_TEXT'] = "The current installed database version is '%1'.
An update to version '%2' is available."; // Topmenu Entries $content['LN_MENU_SEARCH'] = "Search"; diff --git a/src/templates/include_header.html b/src/templates/include_header.html index 6c9ea48..74073b3 100644 --- a/src/templates/include_header.html +++ b/src/templates/include_header.html @@ -141,10 +141,13 @@ - -
-



{LN_ERROR_INSTALLFILEREMINDER}

-
- - - + +
+
+
+
{LN_WARNING_DBUPGRADE}
+

{WARNING_DBUPGRADE_TEXT}

+
+
+
+