mirror of
https://github.com/rsyslog/loganalyzer.git
synced 2025-09-26 11:19:26 +02:00
Fixed reload time in admin panel when set to 0
When set to 0, automatic reload will now be disabled in admin panel. Also added the text in the result.html template into the language system.
This commit is contained in:
parent
30d1ee74ae
commit
604a2aff68
@ -62,7 +62,11 @@ $content['REDIRSECONDS'] = GetConfigSetting("AdminChangeWaitTime", 2, CFGLEVEL_
|
||||
// --- CONTENT Vars
|
||||
if ( isset($_GET['redir']) )
|
||||
{
|
||||
$content['EXTRA_METATAGS'] = '<meta HTTP-EQUIV="REFRESH" CONTENT="' . $content['REDIRSECONDS'] . '; URL=' . urldecode($_GET['redir']) . '">';
|
||||
// Only automatically redirect if above 0
|
||||
if ( $content['REDIRSECONDS'] > 0 )
|
||||
$content['EXTRA_METATAGS'] = '<meta HTTP-EQUIV="REFRESH" CONTENT="' . $content['REDIRSECONDS'] . '; URL=' . urldecode($_GET['redir']) . '">';
|
||||
|
||||
// Set redir string
|
||||
$content['SZREDIR'] = urldecode($_GET['redir']);
|
||||
}
|
||||
else
|
||||
@ -75,7 +79,13 @@ if ( isset($_GET['msg']) )
|
||||
else
|
||||
$content['SZMSG'] = $content["LN_ADMIN_UNKNOWNSTATE"];
|
||||
|
||||
$content['TITLE'] = "LogAnalyzer - Redirecting to '" . $content['SZREDIR'] . "' in " . $content['REDIRSECONDS'] . " seconds"; // Title of the Page
|
||||
if ( $content['REDIRSECONDS'] > 0 ) {
|
||||
$content['TITLE'] = "LogAnalyzer - Redirecting to '" . $content['SZREDIR'] . "' in " . $content['REDIRSECONDS'] . " seconds"; // Title of the Page
|
||||
$content['LN_ADMIN_RESULTLINK'] = GetAndReplaceLangStr($content['LN_ADMIN_RESULTREDIRECT'], $content['SZREDIR'], $content['REDIRSECONDS']);
|
||||
} else {
|
||||
$content['TITLE'] = "LogAnalyzer - Redirecting to '" . $content['SZREDIR'] . "'"; // Title of the Page
|
||||
$content['LN_ADMIN_RESULTLINK'] = GetAndReplaceLangStr($content['LN_ADMIN_RESULTCLICK'], $content['SZREDIR']);
|
||||
}
|
||||
// ---
|
||||
|
||||
// --- Parsen and Output
|
||||
|
@ -59,7 +59,9 @@ $content['LN_ADMIN_CLEARDATA'] = "Wenn Sie alte Datenbankeinträge lösc
|
||||
$content['LN_UPDATE_AVAILABLE'] = "Update available";
|
||||
$content['LN_UPDATE_INSTALLEDVER'] = "Installed version: ";
|
||||
$content['LN_UPDATE_AVAILABLEVER'] = "Available version: ";
|
||||
$content['LN_UPDATE_LINK'] = "Click here to get the update";
|
||||
$content['LN_UPDATE_LINK'] = "Klicken Sie hier um das Update zu bekommen";
|
||||
$content['LN_ADMIN_RESULTREDIRECT'] = "Sie werden in %2 Sekunden auf diese <A HREF='%1'>Seite</A> weitergeleitet.";
|
||||
$content['LN_ADMIN_RESULTCLICK'] = "Klicken Sie <A HREF='%1'>hier</A> um fortzufahren.";
|
||||
|
||||
// General Options
|
||||
$content['LN_ADMIN_GLOBFRONTEND'] = "Globale Anzeige Optionen";
|
||||
|
@ -60,6 +60,8 @@ $content['LN_UPDATE_AVAILABLE'] = "Update available";
|
||||
$content['LN_UPDATE_INSTALLEDVER'] = "Installed version: ";
|
||||
$content['LN_UPDATE_AVAILABLEVER'] = "Available version: ";
|
||||
$content['LN_UPDATE_LINK'] = "Click here to get the update";
|
||||
$content['LN_ADMIN_RESULTREDIRECT'] = "You will be redirected to the <A HREF='%1'>this page</A> on %2 seconds.";
|
||||
$content['LN_ADMIN_RESULTCLICK'] = "Click <A HREF='%1'>here</A> to continue.";
|
||||
|
||||
// General Options
|
||||
$content['LN_ADMIN_GLOBFRONTEND'] = "Global frontend options";
|
||||
|
@ -12,7 +12,7 @@
|
||||
<br><br>
|
||||
<b>{SZMSG}</b>
|
||||
<br><br>
|
||||
You will be redirected to the <A HREF="{SZREDIR}">this page</A> on {REDIRSECONDS} seconds.
|
||||
{LN_ADMIN_RESULTLINK}
|
||||
<br><br>
|
||||
|
||||
</td>
|
||||
|
Loading…
x
Reference in New Issue
Block a user