From 05cf7e8a942556271dfce82c3f185ad83389d46e Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 29 Sep 2006 10:28:52 +0000 Subject: [PATCH] remove old templates fixed some acl stuff git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4836 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../class_glpiPrinterCartridgesEdit.inc | 8 - plugins/admin/systems/class_winGeneric.inc | 5 +- plugins/admin/systems/servdb.tpl | 144 ------------------ plugins/admin/systems/servservice.tpl | 112 -------------- 4 files changed, 2 insertions(+), 267 deletions(-) delete mode 100644 plugins/admin/systems/servdb.tpl delete mode 100644 plugins/admin/systems/servservice.tpl diff --git a/plugins/admin/systems/class_glpiPrinterCartridgesEdit.inc b/plugins/admin/systems/class_glpiPrinterCartridgesEdit.inc index 7830396ed..8e6a23d87 100644 --- a/plugins/admin/systems/class_glpiPrinterCartridgesEdit.inc +++ b/plugins/admin/systems/class_glpiPrinterCartridgesEdit.inc @@ -136,17 +136,9 @@ class glpiPrinterCartridgesEdit extends plugin return($display); } - - - - - - - /* Assign attributes */ foreach($this->attributes as $attr){ $smarty->assign($attr,$this->$attr); - $smarty->assign($attr."ACL",chkacl($this->acl,$attr)); } /* Selecte technical responsible person diff --git a/plugins/admin/systems/class_winGeneric.inc b/plugins/admin/systems/class_winGeneric.inc index 30a0939dc..d1673bc93 100644 --- a/plugins/admin/systems/class_winGeneric.inc +++ b/plugins/admin/systems/class_winGeneric.inc @@ -107,7 +107,6 @@ class wingeneric extends plugin /* Assign attributes */ foreach ($this->attributes as $attr){ - $smarty->assign($attr."ACL", chkacl($this->acl, $attr)); $smarty->assign("$attr", $this->$attr); } @@ -143,7 +142,7 @@ class wingeneric extends plugin plugin::save_object(); $this->netConfigDNS->save_object(); /* Save base, since this is no LDAP attribute */ - if (isset($_POST['base']) && chkacl($this->acl, "create") == ""){ + if (isset($_POST['base']) && $this->acl_is_moveable(){ $this->base= $_POST['base']; } } @@ -160,7 +159,7 @@ class wingeneric extends plugin $ui= get_userinfo(); $acl= get_permissions ($this->dn, $ui->subtreeACL); $acl= get_module_permission($acl, "component", $this->dn); - if (chkacl($acl, "create") != ""){ + if(!$this->acl_is_createable() && $this->dn == "new"){ $message[]= _("You have no permissions to create a component on this 'Base'."); } diff --git a/plugins/admin/systems/servdb.tpl b/plugins/admin/systems/servdb.tpl deleted file mode 100644 index a2a4ec5d4..000000000 --- a/plugins/admin/systems/servdb.tpl +++ /dev/null @@ -1,144 +0,0 @@ - - - - - - - - - -
- - {t}Kerberos kadmin access{/t} - - - - - - - - - - - - - - -
{t}Kerberos Realm{/t}
{t}Admin user{/t}
{t}Password{/t}
- -

 

-
- - {t}FAX database{/t} - - - - - - - - - - -
{t}FAX DB user{/t}
{t}Password{/t}
- -

 

-
- - {t}Asterisk management{/t} - - - - - - - - - - - - - - - - - - -
{t}Asterisk DB user{/t}
{t}Password{/t}
{t}Country dial prefix{/t}
{t}Local dial prefix{/t}
- - -
- - {t}IMAP admin access{/t} - - - - - - - - - - - - - - - - - - - - - - -
{t}Server identifier{/t}
{t}Connect URL{/t}
{t}Admin user{/t}
{t}Password{/t}
{t}Sieve port{/t}
- -

 

-
- - {t}Logging database{/t} - - - - - - - - - - -
{t}Logging DB user{/t}
{t}Password{/t}
- -

 

-
- - - {t}Glpi database{/t} - - - - - - - - - - - - - - -
{t}Logging DB user{/t}
{t}Password{/t}
{t}Database{/t}
- -
- - diff --git a/plugins/admin/systems/servservice.tpl b/plugins/admin/systems/servservice.tpl deleted file mode 100644 index 81729b2e0..000000000 --- a/plugins/admin/systems/servservice.tpl +++ /dev/null @@ -1,112 +0,0 @@ - - - - - -
- - - - {t}Shares{/t} - - - - -
- -
- - - -
- -

 

- -
- - - - {t}Time Service{/t} - - - - -
- -
- - - -
- - - -
- - - - {t}LDAP Service{/t}
  {t}Base{/t}  - -

 

-
- - - - {t}Terminal Service{/t} - - - - - - - - - -
- {t}Temporary disable login{/t}
{t}Font path{/t}
- - - - -

 

-
- - - - {t}Syslog Service{/t} - -

 

-
- - - - - {t}Print Service{/t} - -

 

-
- - - - - {t}Mail server{/t} -
- - -- 2.30.2