From dafc1b6d6ae4af7eb5ec59a57efd5955a6774ac1 Mon Sep 17 00:00:00 2001 From: Andre Lorbach Date: Thu, 13 Aug 2009 16:42:32 +0200 Subject: [PATCH 1/2] Removed unneeded call for define_syslog_variables, which is depreceated and will be removed in php6 --- src/include/functions_common.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/include/functions_common.php b/src/include/functions_common.php index 9045f9a..f38d3bc 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.6.3"; +$content['BUILDNUMBER'] = "2.6.4"; $content['TITLE'] = "phpLogCon :: Release " . $content['BUILDNUMBER']; // Default page title $content['BASEPATH'] = $gl_root_path; $content['SHOW_DONATEBUTTON'] = true; // Default = true! @@ -497,7 +497,8 @@ function CheckAndSetRunMode() $content['MaxExecutionTime'] = ini_get("max_execution_time"); // Define and Inits Syslog variables now! - define_syslog_variables(); + // DEPRECIATED! define_syslog_variables(); + // Syslog Constants are defined by default anyway! openlog("phpLogCon", LOG_PID, LOG_USER); // --- Check necessary PHP Extensions! From ae635aeaa6dd4de726d5bd32652b93cd7cf55129 Mon Sep 17 00:00:00 2001 From: Andre Lorbach Date: Thu, 13 Aug 2009 16:48:06 +0200 Subject: [PATCH 2/2] Replaced SPLIT call in install.php with preg_split because SPLIT is a depreceated function --- src/install.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/install.php b/src/install.php index e99e6c3..867b3a6 100644 --- a/src/install.php +++ b/src/install.php @@ -391,7 +391,8 @@ else if ( $content['INSTALL_STEP'] == 5 ) $totaldbdefs = str_replace( "`logcon_", "`" . $_SESSION["UserDBPref"], $totaldbdefs ); // Now split by sql command - $mycommands = split( ";\n", $totaldbdefs ); +// $mycommands = split( ";\n", $totaldbdefs ); DEPRECEATED CALL! + $mycommands = preg_split('/;\n/', $totaldbdefs, -1, PREG_SPLIT_NO_EMPTY); // // check for different linefeed // if ( count($mycommands) <= 1 )