summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f107cfc)
raw | patch | inline | side by side (parent: f107cfc)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 5 Feb 2007 06:12:25 +0000 (06:12 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 5 Feb 2007 06:12:25 +0000 (06:12 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5689 594d385d-05f5-0310-b6e9-bd551577e9d8
include/class_plugin.inc | patch | blob | history |
index 1335565b0ab36a2604e1823ec486131aa0e10278..6cbec1b4eddc6cf2a5559cf6b04e21b406a3c27c 100644 (file)
--- a/include/class_plugin.inc
+++ b/include/class_plugin.inc
/* Check if member match current dn */
foreach($members as $key => $member){
-
$member = base64_decode($member);
if($member == $old_dn){
$found = true;
$members[$key] = base64_encode($new_dn);
}
}
-
+
+ /* Create new member string */
$new_members = "";
foreach($members as $member){
$new_members .= $member.",";
$new_members = preg_replace("/,$/","",$new_members);
$acl_parts[2] = $new_members;
+ /* Reconstruckt acl entry */
$acl_str ="";
foreach($acl_parts as $t){
- $acl_str .= $t.":";
+ $acl_str .= $t.":";
}
$acl_str = preg_replace("/:$/","",$acl_str);
-
- $acls[] = $acl_str;
-
}
/* Acls for this object must be adjusted */
if($found){
if($output_changes){
- echo "<font color='green'>Changing ACL dn from : <br> - <b> to".$old_dn."</b><br> - <b>".$new_dn."</b></font><br>";
+ echo "<font color='green'>".
+ _("Changing ACL dn")." : <br> -"._("from")." <b> ".
+ $old_dn.
+ "</b><br> -"._("to")." <b>".
+ $new_dn.
+ "</b></font><br>";
}
$update[$attrs['dn']] =array();
foreach($acls as $acl){