diff --git a/lam/docs/devel/upgrade.htm b/lam/docs/devel/upgrade.htm index dacbe1d6..10a53a5b 100644 --- a/lam/docs/devel/upgrade.htm +++ b/lam/docs/devel/upgrade.htm @@ -1,17 +1,16 @@ + + + Upgrade notes - - Upgrade notes - - - +

Upgrade notes

This is a list of API changes for all LAM releases. @@ -24,6 +23,7 @@ This is a list of API changes for all LAM releases. You can now integrate JavaScript libraries by simply putting the files into templates/lib. All files with the name *.js are automatically included on all pages.
+There is a new log level LOG_DEBUG available for logNewMessage().


diff --git a/lam/lib/modules.inc b/lam/lib/modules.inc index fbf5e8db..b1341576 100644 --- a/lam/lib/modules.inc +++ b/lam/lib/modules.inc @@ -1608,6 +1608,7 @@ class accountContainer { * @return array error messages */ function load_account($dn) { + logNewMessage(LOG_DEBUG, "Edit account " . $dn); $this->module = array(); $modules = $_SESSION['config']->get_AccountModules($this->type); $search = substr($dn, 0, strpos($dn, ',')); @@ -1735,6 +1736,7 @@ class accountContainer { * This function will prepare the object for a new account. */ function new_account() { + logNewMessage(LOG_DEBUG, "New account with type " . $this->type); $this->isNewAccount = true; $this->lastLoadedProfile = 'default'; $modules = $_SESSION['config']->get_AccountModules($this->type); diff --git a/lam/lib/security.inc b/lam/lib/security.inc index 8f8807bd..33eb67cd 100644 --- a/lam/lib/security.inc +++ b/lam/lib/security.inc @@ -3,7 +3,7 @@ $Id$ This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/) - Copyright (C) 2006 Roland Gruber + Copyright (C) 2006 - 2010 Roland Gruber This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -151,11 +151,11 @@ function logoffAndBackToLoginPage() { /** * Puts a new message in the log file. * - * @param string $level log level (LOG_NOTICE, LOG_WARNING, LOG_ERR) + * @param string $level log level (LOG_DEBUG, LOG_NOTICE, LOG_WARNING, LOG_ERR) * @param string $message log message */ function logNewMessage($level, $message) { - $possibleLevels = array(LOG_NOTICE => 'NOTICE', LOG_WARNING => 'WARNING', LOG_ERR => 'ERROR'); + $possibleLevels = array(LOG_DEBUG => 'DEBUG', LOG_NOTICE => 'NOTICE', LOG_WARNING => 'WARNING', LOG_ERR => 'ERROR'); if (!in_array($level, array_keys($possibleLevels))) StatusMessage('ERROR', 'Invalid log level!', $level); if (isset($_SESSION['cfgMain'])) $cfg = $_SESSION['cfgMain']; else $cfg = new LAMCfgMain(); diff --git a/lam/templates/config/mainmanage.php b/lam/templates/config/mainmanage.php index 6eb1fc85..ce48c031 100644 --- a/lam/templates/config/mainmanage.php +++ b/lam/templates/config/mainmanage.php @@ -3,7 +3,7 @@ $Id$ This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/) - Copyright (C) 2003 - 2009 Roland Gruber + Copyright (C) 2003 - 2010 Roland Gruber This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -259,14 +259,13 @@ if (!$cfg->isWritable()) {