From 587b04eb28c3767d8a18bb2ec7129ec0d1ec214b Mon Sep 17 00:00:00 2001 From: cajus Date: Tue, 4 Jul 2006 11:44:44 +0000 Subject: [PATCH] Update git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4025 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/acl/class_acl.inc | 23 +++++++++++++--- plugins/admin/acl/contents.tpl | 3 +++ plugins/admin/acl/main.inc | 47 +++++++++++++++++++++++++++++++++ 3 files changed, 69 insertions(+), 4 deletions(-) create mode 100644 plugins/admin/acl/contents.tpl create mode 100644 plugins/admin/acl/main.inc 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; +} +?> -- 2.30.2