summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: cc45c1d)
raw | patch | inline | side by side (parent: cc45c1d)
author | zeph <zeph@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Sun, 23 Mar 2008 21:21:00 +0000 (21:21 +0000) | ||
committer | zeph <zeph@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Sun, 23 Mar 2008 21:21:00 +0000 (21:21 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5-plugins@9961 594d385d-05f5-0310-b6e9-bd551577e9d8
sudo-ldap/src/class_sudoLdap.inc | patch | blob | history | |
sudo-ldap/src/sudoldap.tpl | patch | blob | history |
index bdbd9a1c98fc85c16ec3de40863505547416ca90..7319e73ba8b4a78f90994e127c0fb42b88a8a505 100644 (file)
<?php
/*!
- \brief sudoLdap plugin
+ \brief sudo-ldap plugin
\author Guido Serra <gserra@guidoserra.it>
\version 1.00
\date 22.03.2008
relevant for sudo-ldap from/to the LDAP.
*/
-class sudoLdap extends plugin
+class sudoldap extends plugin
{
/* Definitions */
var $plHeadline= "sudo-ldap";
/* constructor, if 'dn' is set, the node loads the given
'dn' from LDAP */
- function sudoLdap ($config, $dn= NULL, $parent= NULL)
+ function sudoldap ($config, $dn= NULL, $parent= NULL)
{
/* Configuration is fine, allways */
$this->config= $config;
$display= "";
$smarty= get_smarty();
+ /* Add empty new zone
+ */
+ if(isset($_POST['AddRole']) && chkacl($this->acl,"sudoldap") == ""){
+ $this->dialog = new sudoldapEditRole($this->config,$this->dn);
+ }
+
+ /* Show dialog
+ */
+ if($this->dialog!= NULL){
+ $this->dialog->save_object();
+ $this->dialog->parent = $this;
+ return($this->dialog->execute());
+ }
+
$RoleList = new divSelectBox("sudoRoles");
$RoleList -> SetHeight(300);
$editImg = "<input type='image' src='images/edit.png' name='editZone_%s'>
index 409f218c359a21bfc8f37a667b07589b91cfc7d9..0f609735a0b1d72fb5f3aa404295ce39150112dc 100644 (file)
<table summary="" width="100%">
<tr>
<td style="width:100%;vertical-align:top;">
-<h2>{t}Sudo Roles{/t}</h2>
+ <h2>{t}Sudo Roles{/t}</h2>
{$RoleList}
+ <input type="submit" name="AddRole" value="{t}Add{/t}">
+ <!--
<input type="submit" name="AddRole" value="{t}Add{/t}" {$sudoldapACL}>
+ -->
</td>
</tr>
</table>