Fixed merge conflicts

Merge branch 'beta' into devel

Conflicts:

	ChangeLog
	src/index.php
This commit is contained in:
Andre Lorbach 2008-05-19 14:29:44 +02:00
commit 0473c8c6b4
4 changed files with 29 additions and 7 deletions

View File

@ -10,6 +10,8 @@ Version 2.3.1 (devel), 2008-05-02
- Added new configuration variable to set the default SourceID. The source
parameter will be appened to all necessary links and forms within
phplogcon, if the session sources differs from the default one.
Version 2.1.5 (beta), 2008-05-05
- Converted all files into UNIX format (^M has been removed)
---------------------------------------------------------------------------
Version 2.3.0 (devel), 2008-04-30
- Added "Back to Listview" button in the detailview.
@ -21,13 +23,13 @@ Version 2.3.0 (devel), 2008-04-30
- greatly improved database performance, runs much better now, but there
is still room for further optimization
---------------------------------------------------------------------------
Version 2.1.4 (devel), 2008-04-29
Version 2.1.4 (beta), 2008-04-29
- Added missing facility 10 to 15 from RFC3164 into phhlogcon
---------------------------------------------------------------------------
Version 2.1.3 (devel), 2008-04-28
Version 2.1.3 (beta), 2008-04-28
- Fixed a bug in the installer, the table type was not written into the
configuration.
Version 2.1.2 (devel), 2008-04-28
Version 2.1.2 (beta), 2008-04-28
---------------------------------------------------------------------------
- Removed syslog sample logfile from samplelogs, fixed minor issue in the
installer

View File

@ -43,6 +43,7 @@ if ( !defined('IN_PHPLOGCON') )
include($gl_root_path . 'include/constants_general.php');
include($gl_root_path . 'include/constants_logstream.php');
/*
if ( is_file($gl_root_path . 'config.php') )
include($gl_root_path . 'config.php');
else
@ -51,6 +52,7 @@ else
if ( !defined('IN_PHPLOGCON_INSTALL') )
CheckForInstallPhp();
}
*/
include($gl_root_path . 'classes/class_template.php');
include($gl_root_path . 'include/functions_themes.php');
@ -79,6 +81,13 @@ $content['EXTRA_JAVASCRIPT'] = "";
$content['EXTRA_STYLESHEET'] = "";
// ---
// --- Check PHP Version! If lower the 5, phplogcon will not work proberly!
$myPhpVer = phpversion();
$myPhpVerArray = explode('.', $myPhpVer);
if ( $myPhpVerArray[0] < 5 )
DieWithErrorMsg( 'Error, the PHP Version on this Server does not meet the installation requirements.<br> <A HREF="http://www.php.net"><B>PHP5</B></A> or higher is needed. Current installed Version is: <B>' . $myPhpVer . '</B>');
// ---
function InitBasicPhpLogCon()
{
// Needed to make global
@ -97,7 +106,7 @@ function InitBasicPhpLogCon()
StartPHPSession();
}
function InitPhpLogConConfigFile()
function InitPhpLogConConfigFile($bHandleMissing = true)
{
// Needed to make global
global $CFG, $gl_root_path, $content;
@ -124,11 +133,20 @@ function InitPhpLogConConfigFile()
$content['ShowPageRenderStats'] = "true";
InitPageRenderStats();
}
// return result
return true;
}
else
{
// Check for installscript!
CheckForInstallPhp();
// if handled ourselfe, we die in CheckForInstallPhp.
if ( $bHandleMissing == true )
{
// Check for installscript!
CheckForInstallPhp();
}
else
return false;
}
}

View File

@ -51,7 +51,7 @@ function InitFrontEndDefaults()
// --- END Main Info Area
// Check if install file still exists
InstallFileReminder();
// NOT NEEDED ANYMORE InstallFileReminder();
}
function InstallFileReminder()

View File

@ -45,6 +45,8 @@ include($gl_root_path . 'include/functions_frontendhelpers.php');
IncludeLanguageFile( $gl_root_path . '/lang/' . $LANG . '/main.php' );
InitBasicPhpLogCon();
if ( InitPhpLogConConfigFile(false) )
DieWithErrorMsg( 'phpLogCon is already configured!<br><br> If you want to reconfigure phpLogCon, either delete the current <B>config.php</B> or replace it with an empty file.<br><br>Click <A HREF="index.php">here</A> to return to pgpLogCon start page.');
//InitPhpLogCon();
// Set some static values