summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ab6a50d)
raw | patch | inline | side by side (parent: ab6a50d)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 10 Jul 2006 10:53:42 +0000 (10:53 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 10 Jul 2006 10:53:42 +0000 (10:53 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4070 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/acl/class_acl.inc | patch | blob | history | |
plugins/admin/acl/main.inc | patch | blob | history |
index e730cd6fd0c5d5d8e133c838aceb6d0d21fb7528..bbfdefc4ba027ef02c1c16c384b36b0386e49f7f 100644 (file)
show_ldap_error($ldap->get_error(), sprintf(_("Saving ACLs with dn '%s' failed."),$this->dn));
}
+
+ function remove_from_parent()
+ {
+ echo "remove_from_parent() called";
+ }
+
}
// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
index bb40d6ce717a180cc3d95b893a7ceb4999c194a4..a1c2296f652151f7f1035d501bcbc8d52768997d 100644 (file)
<?php
/*
This code is part of GOsa (https://gosa.gonicus.de)
- Copyright (C) 2005 Cajus Pollmeier
+ Copyright (C) 2006 Cajus Pollmeier
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
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-if (!$remove_lock){
- /* Create message object on demand */
- if (!isset($_SESSION['aclplug']) || (isset($_GET['reset']) && $_GET['reset'] == 1)){
- $_SESSION['aclplug']= new acl ($config, 'ou=Direktorium,o=Landeshauptstadt München,c=de');
- }
- $aclplug= $_SESSION['aclplug'];
-
- /* Set permissions */
- $acl= get_permissions ($ui->dn, $ui->subtreeACL);
- $aclplug->acl= get_module_permission($acl, "acl", $ui->dn);
-
- /* save changes back to object */
- if (isset ($_POST['target'])){
- $aclplug->save_object ();
- }
-
- /* Execute formular */
- if ($aclplug->aclPostHandler()){
- echo "Saved... But this is not the way it goes normally!";
- }
- $display= $aclplug->execute();
- $display.= "<input type=\"hidden\" name=\"ignore\">\n";
-
- /* Page header*/
- $display= print_header(get_template_path('images/acl.png'), _("Access control")).$display;
-
- /* Store changes in session */
- $_SESSION['aclplug']= $aclplug;
+if ($remove_lock){
+ if(isset($_SESSION['macl'])){
+ $macl= $_SESSION['macl'];
+ $macl->remove_lock();
+ del_lock ($ui->dn);
+ sess_del ('macl');
+ }
+} else {
+ $display= "No headpage yet for this module";
+
+# /* Create usermanagement object on demand */
+# if (!isset($_SESSION['macl']) || (isset($_GET['reset']) && $_GET['reset'] == 1)){
+# $_SESSION['macl']= new aclManagement($config, $ui);
+# }
+# $macl= $_SESSION['macl'];
+#
+# /* Show and save dialog */
+# $macl->save_object();
+# $output= $macl->execute();
+#
+# /* Page header*/
+# if (isset($_SESSION['objectinfo'])){
+# $display= print_header(get_template_path('images/acl.png'), _("ACL management"), "<img alt=\"\" align=\"middle\" src=\"".get_template_path('images/closedlock.png')."\"> ".@LDAP::fix($_SESSION['objectinfo']));
+# } else {
+# $display= print_header(get_template_path('images/acl.png'), _("ACL management"));
+# }
+#
+# /* Reset requested? */
+# if (isset($_GET['reset']) && $_GET['reset'] == 1){
+# del_lock ($ui->dn);
+# sess_del ('macl');
+# }
+#
+# $display.= $output;
+# $_SESSION['macl']= $macl;
}
+
?>