mirror of
https://github.com/rsyslog/loganalyzer.git
synced 2025-09-26 11:19:26 +02:00
Fixed wrong database version insert in install.php as well as incorrect redirect login page during install
This commit is contained in:
parent
5b8ac830f5
commit
01b8499735
@ -649,8 +649,8 @@ function InitConfigurationValues()
|
||||
// Check if user needs to be logged in
|
||||
if ( GetConfigSetting("UserDBLoginRequired", false) )
|
||||
{
|
||||
// User needs to be logged in, redirect to login page
|
||||
if ( !defined("IS_NOLOGINPAGE") )
|
||||
// Redirect USER if not on loginpage or installpage!
|
||||
if ( !defined("IS_NOLOGINPAGE") && !defined("IN_PHPLOGCON_INSTALL") )
|
||||
RedirectToUserLogin();
|
||||
}
|
||||
else if ( defined('IS_ADMINPAGE') )
|
||||
|
@ -404,7 +404,7 @@ else if ( $content['INSTALL_STEP'] == 5 )
|
||||
}
|
||||
|
||||
// Append INSERT Statement for Config Table to set the Database Version ^^!
|
||||
$mycommands[count($mycommands)] = "INSERT INTO `" . $_SESSION["UserDBPref"] . "config` (`propname`, `propvalue`, `is_global`) VALUES ('database_installedversion', '" . $content['database_internalversion'] . "', " . $content['database_internalversion'] . ")";
|
||||
$mycommands[count($mycommands)] = "INSERT INTO `" . $_SESSION["UserDBPref"] . "config` (`propname`, `propvalue`, `is_global`) VALUES ('database_installedversion', '" . $content['database_internalversion'] . "', 1)";
|
||||
|
||||
// --- Now execute all commands
|
||||
ini_set('error_reporting', E_WARNING); // Enable Warnings!
|
||||
|
Loading…
x
Reference in New Issue
Block a user