From 7d8936df3c2d109afbb59bc5c54046434967624c Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 28 Jun 2005 10:58:26 +0000 Subject: [PATCH] application replaced to macro git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@895 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../macro/class_gofonMacroManagement.inc | 28 +++++++++---------- plugins/gofon/macro/generic.tpl | 2 +- plugins/gofon/macro/headpage.tpl | 2 +- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/plugins/gofon/macro/class_gofonMacroManagement.inc b/plugins/gofon/macro/class_gofonMacroManagement.inc index 2bce52860..e6a852f90 100755 --- a/plugins/gofon/macro/class_gofonMacroManagement.inc +++ b/plugins/gofon/macro/class_gofonMacroManagement.inc @@ -27,7 +27,7 @@ class gofonMacro extends plugin /* Dialog attributes */ var $macrotabs = NULL; - var $applications = array(); + var $macros = array(); var $ui = NULL; var $acl = ""; @@ -80,7 +80,7 @@ class gofonMacro extends plugin return($message); } - /* New application? */ + /* New macro? */ if (isset($_POST['new_app'])){ /* By default we set 'dn' to 'new', all relevant plugins will @@ -117,7 +117,7 @@ class gofonMacro extends plugin $this->macrotabs->save(); gosa_log ("Macro object'".$this->dn."' has been saved"); - /* Application has been saved successfully, remove lock from + /* macro has been saved successfully, remove lock from LDAP. */ if ($this->dn != "new"){ del_lock ($this->dn); @@ -171,7 +171,7 @@ class gofonMacro extends plugin /* Load permissions for selected 'dn' and check if we're allowed to remove this 'dn' */ $acl= get_permissions ($this->dn, $this->ui->subtreeACL); - $this->acl= get_module_permission($acl, "application", $this->dn); + $this->acl= get_module_permission($acl, "macro", $this->dn); if (chkacl($this->acl, "delete") == ""){ /* Check locking, save current plugin in 'back_plugin', so @@ -205,7 +205,7 @@ class gofonMacro extends plugin $this->macrotabs->set_acl(array($this->acl)); $this->macrotabs->delete (); - gosa_log ("Application object'".$this->dn."' has been removed"); + gosa_log ("macro object'".$this->dn."' has been removed"); unset ($this->macrotabs); $this->macrotabs= NULL; @@ -214,7 +214,7 @@ class gofonMacro extends plugin } else { /* Normally this shouldn't be reached, send some extra logs to notify the administrator */ - print_red (_("You are not allowed to delete this application!")); + print_red (_("You are not allowed to delete this macro!")); gosa_log ("Warning: '".$this->ui->uid."' tried to trick group deletion."); } /* Remove lock file after successfull deletion */ @@ -222,7 +222,7 @@ class gofonMacro extends plugin } - /* Delete application canceled? */ + /* Delete macro canceled? */ if (isset($_POST['delete_cancel'])){ del_lock ($this->dn); unset($_SESSION['objectinfo']); @@ -244,7 +244,7 @@ class gofonMacro extends plugin } /* Show main page */ - $smarty->assign("applications", $this->applications); + $smarty->assign("macros", $this->macros); $smarty->assign("search_image", get_template_path('images/search.png')); $smarty->assign("tree_image", get_template_path('images/tree.png')); $smarty->assign("infoimage", get_template_path('images/info.png')); @@ -278,18 +278,18 @@ class gofonMacro extends plugin $regex= "*"; } - /* Generate application list */ + /* Generate macro list */ $res= get_list($this->ui->subtreeACL, "(&(cn=$regex)(objectClass=goFonMacro))", TRUE, $base, array("cn", "description"), TRUE); - $this->applications= array(); + $this->macros= array(); foreach ($res as $value){ - $this->applications[$value["dn"]]= $value["cn"][0]; + $this->macros[$value["dn"]]= $value["cn"][0]; if (isset($value["description"][0])){ - $this->applications[$value["dn"]]= $value["cn"][0]." (". + $this->macros[$value["dn"]]= $value["cn"][0]." (". $value["description"][0].")"; } } - natcasesort ($this->applications); - reset ($this->applications); + natcasesort ($this->macros); + reset ($this->macros); } function remove_from_parent() diff --git a/plugins/gofon/macro/generic.tpl b/plugins/gofon/macro/generic.tpl index 8096a5683..b444ffd66 100755 --- a/plugins/gofon/macro/generic.tpl +++ b/plugins/gofon/macro/generic.tpl @@ -19,7 +19,7 @@ {t}Base{/t}{$must} - {html_options options=$bases selected=$base_select} diff --git a/plugins/gofon/macro/headpage.tpl b/plugins/gofon/macro/headpage.tpl index b6f774f5d..9662619d5 100755 --- a/plugins/gofon/macro/headpage.tpl +++ b/plugins/gofon/macro/headpage.tpl @@ -9,7 +9,7 @@


-- 2.30.2