* Add debug statements in the pg driver
* In debug, output the sql queries in italic. Refer to enabling debugging in the FAQ
* Don't include user_info.php3 in the user_test page.
+* Make things a little bit more simple in lib/ldap/change_attrs.php3
Ver 1.61:
* Add a string encoder for greek
* If general_decode_normal_attributes is set then encode attributes in lib/ldap/change_info. In the near future
//
else{
if (isset($item_vals["$key"][$j])){
- $mod[$attrmap["$key"]][] = $item_vals["$key"][$j];
+ $del[$attrmap["$key"]][] = $item_vals["$key"][$j];
$add_r[$attrmap["$key"]][] = $val;
}
else{
}
}
}
- if (isset($mod)){
+ if (isset($del)){
if ($config[ldap_debug] == 'true'){
print "<b>DEBUG(LDAP): ldap_mod_del(): DN='$dn'</b><br>\n";
print "<b>DEBUG(LDAP): ldap_mod_del(): Data:";
- print_r($mod);
+ print_r($del);
print "</b><br>\n";
}
- @ldap_mod_del($ds,$dn,$mod);
+ @ldap_mod_del($ds,$dn,$del);
}
if (isset($add_r)){
if ($config[ldap_debug] == 'true'){
}
@ldap_mod_add($ds,$dn,$add_r);
}
- if (isset($del)){
- if ($config[ldap_debug] == 'true'){
- print "<b>DEBUG(LDAP): ldap_mod_replace(): DN='$dn'</b><br>\n";
- print "<b>DEBUG(LDAP): ldap_mod_replace(): Data:";
- print_r($del);
- print "</b><br>\n";
- }
- @ldap_mod_del($ds,$dn,$del);
- }
}
if (@ldap_error($ds) == 'Success')
echo "<b>The changes were successfully commited to the directory</b><br>\n";