diff --git a/ChangeLog b/ChangeLog index b29eaa9..3658198 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,10 @@ --------------------------------------------------------------------------- +Version 3.6.6 (stable), 2014-??-?? +- Fixed bug in databasemapping admin. The form parameter and database + fieldname of EventID field were interfering. +- Fixed a bug in maintenance.php, the ID parameter was forced to + an integer. A leftover from earlier loganalyzer days. +--------------------------------------------------------------------------- Version 3.6.5 (stable), 2013-10-08 - LogStreamDB Driver, LogStreamPDO Driver, UserDB: Added backticks arround tablenames in all SQL Statements. diff --git a/src/admin/dbmappings.php b/src/admin/dbmappings.php index 7dffa3d..1ebd8d5 100644 --- a/src/admin/dbmappings.php +++ b/src/admin/dbmappings.php @@ -86,10 +86,10 @@ if ( isset($_GET['op']) ) $content['DBMP'] = $dbmapping; // View must be loaded as well already! - if ( isset($_GET['id']) && isset($content['DBMP'][$_GET['id']]) ) + if ( isset($_GET['dbmpid']) && isset($content['DBMP'][$_GET['dbmpid']]) ) { //PreInit these values - $content['DBMPID'] = DB_RemoveBadChars($_GET['id']); + $content['DBMPID'] = DB_RemoveBadChars($_GET['dbmpid']); if ( isset($content['DBMP'][ $content['DBMPID'] ]) ) { //Set the FormAdd URL @@ -110,15 +110,15 @@ if ( isset($_GET['op']) ) { $content['ISEDITORNEWDBMP'] = false; $content['ISERROR'] = true; - $content['ERROR_MSG'] = GetAndReplaceLangStr( $content['LN_DBMP_ERROR_INVALIDID'], isset($_GET['id']) ? $_GET['id'] : "" ); + $content['ERROR_MSG'] = GetAndReplaceLangStr( $content['LN_DBMP_ERROR_INVALIDID'], isset($_GET['dbmpid']) ? $_GET['dbmpid'] : "" ); } } else if ($_GET['op'] == "delete") { - if ( isset($_GET['id']) ) + if ( isset($_GET['dbmpid']) ) { //PreInit these values - $content['DBMPID'] = DB_RemoveBadChars($_GET['id']); + $content['DBMPID'] = DB_RemoveBadChars($_GET['dbmpid']); // Get UserInfo $result = DB_Query("SELECT DisplayName FROM " . DB_MAPPINGS . " WHERE ID = " . $content['DBMPID'] ); @@ -249,7 +249,7 @@ if ( isset($content['ISEDITORNEWDBMP']) && $content['ISEDITORNEWDBMP'] ) // --- Process POST Form Data if ( isset($_POST['op']) ) { - if ( isset ($_POST['id']) ) { $content['DBMPID'] = DB_RemoveBadChars($_POST['id']); } else {$content['DBMPID'] = ""; } + if ( isset ($_POST['dbmpid']) ) { $content['DBMPID'] = DB_RemoveBadChars($_POST['dbmpid']); } else {$content['DBMPID'] = ""; } if ( isset ($_POST['DisplayName']) ) { $content['DisplayName'] = DB_StripSlahes($_POST['DisplayName']); } else {$content['DisplayName'] = ""; } // --- Check mandotary values diff --git a/src/cron/maintenance.php b/src/cron/maintenance.php index 273f291..e624cf4 100644 --- a/src/cron/maintenance.php +++ b/src/cron/maintenance.php @@ -179,7 +179,7 @@ function CleanData($optParam1, $optParam2, $optParam3, $optParam4) if ( isset($_SERVER["argv"][2]) ) { // Set to SourceID property! - $content['SOURCEID'] = intval( $_SERVER["argv"][2] ); + $content['SOURCEID'] = $_SERVER["argv"][2]; // Check if exists if ( !isset($content['Sources'][ $content['SOURCEID'] ]) ) diff --git a/src/templates/admin/admin_dbmappings.html b/src/templates/admin/admin_dbmappings.html index c5535b7..44002b1 100644 --- a/src/templates/admin/admin_dbmappings.html +++ b/src/templates/admin/admin_dbmappings.html @@ -34,7 +34,7 @@ {ID} - {DisplayName} + {DisplayName} {DisplayName} @@ -45,8 +45,8 @@ -   -   +   +     @@ -116,7 +116,7 @@
- +