From 01b849973569532b2644c82ecf7cc8f4014f2bd6 Mon Sep 17 00:00:00 2001 From: Andre Lorbach Date: Mon, 29 Sep 2008 12:07:47 +0200 Subject: [PATCH 1/2] Fixed wrong database version insert in install.php as well as incorrect redirect login page during install --- src/include/functions_common.php | 6 +++--- src/install.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/include/functions_common.php b/src/include/functions_common.php index 7aae607..314c2ea 100644 --- a/src/include/functions_common.php +++ b/src/include/functions_common.php @@ -649,9 +649,9 @@ 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") ) - RedirectToUserLogin(); + // Redirect USER if not on loginpage or installpage! + if ( !defined("IS_NOLOGINPAGE") && !defined("IN_PHPLOGCON_INSTALL") ) + RedirectToUserLogin(); } else if ( defined('IS_ADMINPAGE') ) { diff --git a/src/install.php b/src/install.php index e586776..a76bb84 100644 --- a/src/install.php +++ b/src/install.php @@ -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! From b295e33bed046f4809e1685a64c1d3c525a3c09d Mon Sep 17 00:00:00 2001 From: Andre Lorbach Date: Mon, 29 Sep 2008 14:02:00 +0200 Subject: [PATCH 2/2] Added changelog entry --- ChangeLog | 11 +++++++++++ src/include/functions_common.php | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 0bc2d55..b257b9a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,15 @@ --------------------------------------------------------------------------- +Version 2.5.12 (beta), 2008-09-29 +- Fixed several SQL issues in the logstream classes when filtering + was used. +- Enhanced all content menus in the main site, reduced coding as well. +- Added support for URL detection within the data of string fields, these + links can be opened in new windows. +- Fixed bug when excluding more then one string filter from the + same field type. +- Fixed wrong database version insert in install.php as well as + incorrect redirect login page during install. +--------------------------------------------------------------------------- Version 2.5.11 (beta), 2008-09-25 - Fixed the "next page" button when a logstream disk source was used. The "next page" button stopped working as a side effect of some diff --git a/src/include/functions_common.php b/src/include/functions_common.php index 314c2ea..acee4af 100644 --- a/src/include/functions_common.php +++ b/src/include/functions_common.php @@ -66,7 +66,7 @@ $LANG_EN = "en"; // Used for fallback $LANG = "en"; // Default language // Default Template vars -$content['BUILDNUMBER'] = "2.5.11"; +$content['BUILDNUMBER'] = "2.5.12"; $content['TITLE'] = "phpLogCon :: Release " . $content['BUILDNUMBER']; // Default page title $content['BASEPATH'] = $gl_root_path; $content['SHOW_DONATEBUTTON'] = true; // Default = true!