Added global warning which will be displayed on all pages if a database update is pending

This commit is contained in:
Andre Lorbach 2008-10-02 16:11:24 +02:00
parent b70025683f
commit 910f16e468
5 changed files with 28 additions and 7 deletions

View File

@ -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()

View File

@ -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.<br><br> 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'.<br>An update to version '%2' is available.";
// Topmenu Entries
$content['LN_MENU_SEARCH'] = "Suchen";

View File

@ -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.<br><br> 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'.<br>An update to version '%2' is available.";
// Topmenu Entries
$content['LN_MENU_SEARCH'] = "Search";

View File

@ -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.<br><br> 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'.<br>An update to version '%2' is available.";
// Topmenu Entries
$content['LN_MENU_SEARCH'] = "Search";

View File

@ -141,10 +141,13 @@
<tr>
<td>
<!-- IF error_installfilereminder="true" -->
<center>
<h3><br><br><font color="red">{LN_ERROR_INSTALLFILEREMINDER}</font></h3>
</center>
<!-- ENDIF error_installfilereminder="true" -->
<!-- IF dbupgrade_warning="false" -->
<br>
<center>
<div class="table_with_border_second ErrorMsg" style="width:600px">
<div class="PriorityWarning">{LN_WARNING_DBUPGRADE}</div>
<p align="left">{WARNING_DBUPGRADE_TEXT}</p>
</div>
</center>
<br>
<!-- ENDIF dbupgrade_warning="false" -->