diff --git a/ChangeLog b/ChangeLog
index b257b9a..29aef67 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,7 @@
---------------------------------------------------------------------------
+Version 2.5.13 (beta), 2008-10-07
+-
+---------------------------------------------------------------------------
Version 2.5.12 (beta), 2008-09-29
- Fixed several SQL issues in the logstream classes when filtering
was used.
diff --git a/src/classes/msgparsers/msgparser.apache2.class.php b/src/classes/msgparsers/msgparser.apache2.class.php
index 7013a8e..fc0222b 100644
--- a/src/classes/msgparsers/msgparser.apache2.class.php
+++ b/src/classes/msgparsers/msgparser.apache2.class.php
@@ -3,8 +3,10 @@
*********************************************************************
* -> www.phplogcon.org <- *
* ----------------------------------------------------------------- *
- * Apache Logfile Parser used to split WebLog fields if found
- * in the msg
+ * Apache Logfile Parser used to split WebLog fields if
+ * found in the msg.
+ *
+ * This Parser is for the default apache "combined" format!
* *
* All directives are explained within this file *
*
@@ -63,6 +65,9 @@ class MsgParser_apache2 extends MsgParser {
{
global $content, $fields;
+ //trim the msg first to remove spaces from begin and end
+ $szMsg = trim($szMsg);
+
//return ERROR_MSG_NOMATCH;
// LogFormat "%h %l %u %t \"%r\" %>s %b" common
@@ -95,7 +100,7 @@ class MsgParser_apache2 extends MsgParser {
$arrArguments[SYSLOG_WEBLOG_QUERYSTRING]= substr( $out[6], strpos($out[6], "?")+1 );
}
-// $arrArguments[SYSLOG_WEBLOG_QUERYSTRING] = $out[7];
+ // Number based fields
$arrArguments[SYSLOG_WEBLOG_PVER] = $out[7];
$arrArguments[SYSLOG_WEBLOG_STATUS] = $out[8];
$arrArguments[SYSLOG_WEBLOG_BYTESSEND] = $out[9];
diff --git a/src/classes/msgparsers/msgparser.apache2common.class.php b/src/classes/msgparsers/msgparser.apache2common.class.php
new file mode 100644
index 0000000..78697ef
--- /dev/null
+++ b/src/classes/msgparsers/msgparser.apache2common.class.php
@@ -0,0 +1,149 @@
+ www.phplogcon.org <- *
+ * ----------------------------------------------------------------- *
+ * Apache Logfile Parser used to split WebLog fields if
+ * found in the msg.
+ *
+ * This Parser is for the default apache "common" format!
+ * *
+ * All directives are explained within this file *
+ *
+ * Copyright (C) 2008 Adiscon GmbH.
+ *
+ * This file is part of phpLogCon.
+ *
+ * PhpLogCon is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * PhpLogCon is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with phpLogCon. If not, see
'
diff --git a/src/include/functions_config.php b/src/include/functions_config.php
index aba48a5..22bdcb8 100644
--- a/src/include/functions_config.php
+++ b/src/include/functions_config.php
@@ -321,6 +321,9 @@ function InitPhpLogConConfigFile($bHandleMissing = true)
// Needed to make global
global $CFG, $gl_root_path, $content;
+ // Bugfix for race conditions, clear file stats cache!
+ clearstatcache();
+
if ( file_exists($gl_root_path . 'config.php') && GetFileLength($gl_root_path . 'config.php') > 0 )
{
// Include the main config
@@ -359,7 +362,7 @@ function InitPhpLogConConfigFile($bHandleMissing = true)
else
{
// if handled ourselfe, we die in CheckForInstallPhp.
- if ( $bHandleMissing == true )
+ if ( $bHandleMissing == true )
{
// Check for installscript!
CheckForInstallPhp();
diff --git a/src/install.php b/src/install.php
index 7d14f20..d307665 100644
--- a/src/install.php
+++ b/src/install.php
@@ -56,7 +56,7 @@ $content['web_theme'] = "default";
$content['user_theme'] = "default";
$configsamplefile = $content['BASEPATH'] . "include/config.sample.php";
-//ini_set('error_reporting', E_ERROR); // NO PHP ERROR'S!
+//ini_set('error_reporting', E_ALL); // DEBUG ENABLE
// *** *** //
// --- CONTENT Vars
@@ -100,7 +100,7 @@ else
// --- Set Title
$content['TITLE'] = GetAndReplaceLangStr( $content['TITLE'], $content['INSTALL_STEP'] );
-$content['LN_INSTALL_TITLETOP'] = GetAndReplaceLangStr( $content['LN_INSTALL_TITLETOP'], $content['BUILDNUMBER'], $content['INSTALL_STEP'] );
+$content['INSTALL_TITLETOP'] = GetAndReplaceLangStr( $content['LN_INSTALL_TITLETOP'], $content['BUILDNUMBER'], $content['INSTALL_STEP'] );
// ---
// --- Start Setup Processing
@@ -201,6 +201,8 @@ else if ( $content['INSTALL_STEP'] == 3 )
if ( isset($_SESSION['UserDBPref']) ) { $content['UserDBPref'] = $_SESSION['UserDBPref']; } else { $content['UserDBPref'] = "logcon_"; }
if ( isset($_SESSION['UserDBUser']) ) { $content['UserDBUser'] = $_SESSION['UserDBUser']; } else { $content['UserDBUser'] = "user"; }
if ( isset($_SESSION['UserDBPass']) ) { $content['UserDBPass'] = $_SESSION['UserDBPass']; } else { $content['UserDBPass'] = ""; }
+ if ( isset($_SESSION['UserDBLoginRequired']) ) { $content['UserDBLoginRequired'] = $_SESSION['UserDBLoginRequired']; } else { $content['UserDBLoginRequired'] = false; }
+
if ( $content['UserDBEnabled'] == 1 )
{
$content['UserDBEnabled_true'] = "checked";
@@ -745,6 +747,7 @@ else if ( $content['INSTALL_STEP'] == 8 )
RevertOneStep( $content['INSTALL_STEP']-1, GetAndReplaceLangStr($content['LN_INSTALL_FAILEDCREATECFGFILE'], $content['BASEPATH'] . "config.php") );
fwrite($handle, $filebuffer);
+ fflush($handle);
fclose($handle);
// ---
diff --git a/src/templates/install.html b/src/templates/install.html
index 7e9c130..db4cf5b 100644
--- a/src/templates/install.html
+++ b/src/templates/install.html
@@ -56,7 +56,7 @@
- {LN_INSTALL_TITLETOP}+{INSTALL_TITLETOP} |