diff --git a/lam-0.4/lib/account.inc b/lam-0.4/lib/account.inc index 8f956d85..3236fc35 100644 --- a/lam-0.4/lib/account.inc +++ b/lam-0.4/lib/account.inc @@ -23,6 +23,8 @@ $Id$ LDAP Account Manager functions used by account.php */ +// PHP 5 compatibility +if( phpversion() >= "5" ) ini_set( "zend.ze1_compatibility_mode", 1 ); // This class keeps all needed values for any account class account { @@ -2380,6 +2382,7 @@ function creategroup($values, $uselamdaemon=true) { * 5 == Error while modifying Account */ function modifygroup($values,$values_old, $uselamdaemon=true) { + print_r($values);print_r($values_old); // Add missing objectclasses to group if (!in_array('posixGroup', $values->general_objectClass)) { $attr['objectClass'] = $values->general_objectClass; diff --git a/lam-0.4/lib/config.inc b/lam-0.4/lib/config.inc index bd1d7bbe..a5f6b38b 100644 --- a/lam-0.4/lib/config.inc +++ b/lam-0.4/lib/config.inc @@ -24,6 +24,9 @@ $Id$ */ +// PHP 5 compatibility +if( phpversion() >= "5" ) ini_set( "zend.ze1_compatibility_mode", 1 ); + include_once("status.inc"); // sets language settings for automatic translation diff --git a/lam-0.4/lib/ldap.inc b/lam-0.4/lib/ldap.inc index f440f572..14e9b63d 100644 --- a/lam-0.4/lib/ldap.inc +++ b/lam-0.4/lib/ldap.inc @@ -23,6 +23,9 @@ $Id$ // ldap.inc provides basic functions to connect to the OpenLDAP server. +// PHP 5 compatibility +if( phpversion() >= "5" ) ini_set( "zend.ze1_compatibility_mode", 1 ); + include_once("config.inc"); include_once("blowfish.inc"); diff --git a/lam-0.4/lib/pdf.inc b/lam-0.4/lib/pdf.inc index 3e17d52a..aed997f3 100644 --- a/lam-0.4/lib/pdf.inc +++ b/lam-0.4/lib/pdf.inc @@ -23,6 +23,9 @@ $Id$ LDAP Account Manager lamPDF class and some pdf functions */ +// PHP 5 compatibility +if( phpversion() >= "5" ) ini_set( "zend.ze1_compatibility_mode", 1 ); + define('FPDF_FONTPATH', 'font/'); include_once("fpdf.php"); diff --git a/lam-0.4/lib/profiles.inc b/lam-0.4/lib/profiles.inc index b56aab67..9037a09a 100644 --- a/lam-0.4/lib/profiles.inc +++ b/lam-0.4/lib/profiles.inc @@ -23,6 +23,9 @@ $Id$ // profiles.inc provides functions to load and save profiles for users/groups/hosts +// PHP 5 compatibility +if( phpversion() >= "5" ) ini_set( "zend.ze1_compatibility_mode", 1 ); + include_once("config.inc"); include_once("account.inc"); include_once("ldap.inc"); diff --git a/lam-0.4/lib/status.inc b/lam-0.4/lib/status.inc index dbf5ba93..7b860c04 100644 --- a/lam-0.4/lib/status.inc +++ b/lam-0.4/lib/status.inc @@ -23,6 +23,9 @@ $Id$ LDAP Account Manager status messages. */ +// PHP 5 compatibility +if( phpversion() >= "5" ) ini_set( "zend.ze1_compatibility_mode", 1 ); + function StatusMessage($MessageTyp,$MessageHeadline,$MessageText,$MessageVariables = array()) { /* Setting CSS-StyleSheet class depending on the $MessageTyp and rewriting $MessageTyp with a readable string. */ if($MessageTyp == "INFO") { diff --git a/lam-0.4/templates/account/groupedit.php b/lam-0.4/templates/account/groupedit.php index 19cd03fa..ebc2b2a6 100644 --- a/lam-0.4/templates/account/groupedit.php +++ b/lam-0.4/templates/account/groupedit.php @@ -135,6 +135,7 @@ switch ($_POST['select']) { do { // X-Or, only one if() can be true if (isset($_POST['users']) && isset($_POST['add'])) { // Add users to list // Add new user + if (!is_array($account_new->unix_memberUid)) $account_new->unix_memberUid = array(); $account_new->unix_memberUid = array_merge($account_new->unix_memberUid, $_POST['users']); // remove doubles $account_new->unix_memberUid = array_flip($account_new->unix_memberUid);