RELEASE 1.1.0

This commit is contained in:
Deon George
2009-06-30 20:46:00 +10:00
parent a08bc4e9e1
commit dd581eb5c8
191 changed files with 25012 additions and 10177 deletions

View File

@@ -1,5 +1,5 @@
<?php
// $Header: /cvsroot/phpldapadmin/phpldapadmin/lib/syslog.php,v 1.12 2005/12/10 10:34:55 wurley Exp $
// $Header: /cvsroot/phpldapadmin/phpldapadmin/lib/syslog.php,v 1.13 2007/12/15 07:50:33 wurley Exp $
/**
* Functions related to syslog logging.
@@ -24,11 +24,11 @@
*/
# If config_default.php hasnt been called yet, then return.
if (! isset($config))
if (! isset($_SESSION['plaConfig']))
return;
/* Initialize syslog */
if ($config->GetValue('debug','syslog')) {
if ($_SESSION['plaConfig']->GetValue('debug','syslog')) {
define_syslog_variables();
openlog('phpldapadmin', LOG_ODELAY, LOG_DAEMON );
}
@@ -42,9 +42,7 @@ if ($config->GetValue('debug','syslog')) {
* @param log_string String to log.
*/
function syslog_msg ( $emergency, $log_string, $ldapserver=null ) {
global $config;
if (isset($config) && $config->GetValue('debug','syslog')) {
if (isset($_SESSION['plaConfig']) && $_SESSION['plaConfig']->GetValue('debug','syslog')) {
if (isset($ldapserver->server_id))
$log_string = sprintf('(%s) %s',$ldapserver->getLoggedInDN(),$log_string);