From: cajus Date: Tue, 4 Jul 2006 11:44:44 +0000 (+0000) Subject: Update X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=587b04eb28c3767d8a18bb2ec7129ec0d1ec214b;p=gosa.git Update git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4025 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/acl/class_acl.inc b/plugins/admin/acl/class_acl.inc index a5f37b78e..49b1cdf56 100644 --- a/plugins/admin/acl/class_acl.inc +++ b/plugins/admin/acl/class_acl.inc @@ -2,16 +2,31 @@ class acl extends plugin { + /* Definitions */ + var $plHeadline= "Access control"; + var $plDescription= "This does something"; + + /* attribute list for save action */ + var $attributes= array("target", "nmessage"); + var $objectclasses= array(); + - /* constructor, if 'dn' is set, the node loads the given - 'dn' from LDAP */ function acl ($config, $dn= NULL) { + /* Include config object */ $this->config= $config; + } + + + function execute() + { + /* Call parent execute */ + plugin::execute(); - /* Load base attributes */ - plugin::plugin ($config, $dn); + $smarty= get_smarty(); + /* Show main page */ + return ($smarty->fetch (get_template_path('contents.tpl', TRUE))); } } diff --git a/plugins/admin/acl/contents.tpl b/plugins/admin/acl/contents.tpl new file mode 100644 index 000000000..3f5c1ab3b --- /dev/null +++ b/plugins/admin/acl/contents.tpl @@ -0,0 +1,3 @@ +Hard coded DN for testing +
+Some acl stuff here... diff --git a/plugins/admin/acl/main.inc b/plugins/admin/acl/main.inc new file mode 100644 index 000000000..97235bbb9 --- /dev/null +++ b/plugins/admin/acl/main.inc @@ -0,0 +1,47 @@ +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 */ + $display= $aclplug->execute(); + $display.= "\n"; + + /* Page header*/ + $display= print_header(get_template_path('images/acl.png'), _("Access control")).$display; + + /* Store changes in session */ + $_SESSION['aclplug']= $aclplug; +} +?>