summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b6603fc)
raw | patch | inline | side by side (parent: b6603fc)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 28 Jun 2005 10:58:26 +0000 (10:58 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 28 Jun 2005 10:58:26 +0000 (10:58 +0000) |
plugins/gofon/macro/class_gofonMacroManagement.inc | patch | blob | history | |
plugins/gofon/macro/generic.tpl | patch | blob | history | |
plugins/gofon/macro/headpage.tpl | patch | blob | history |
diff --git a/plugins/gofon/macro/class_gofonMacroManagement.inc b/plugins/gofon/macro/class_gofonMacroManagement.inc
index 2bce52860da9d92fa3dac6825245939b5ec400ff..e6a852f906ef837af70f2c740bcde062fc9047b8 100755 (executable)
/* Dialog attributes */
var $macrotabs = NULL;
- var $applications = array();
+ var $macros = array();
var $ui = NULL;
var $acl = "";
return($message);
}
- /* New application? */
+ /* New macro? */
if (isset($_POST['new_app'])){
/* By default we set 'dn' to 'new', all relevant plugins will
$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);
/* 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
$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;
} 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 */
}
- /* Delete application canceled? */
+ /* Delete macro canceled? */
if (isset($_POST['delete_cancel'])){
del_lock ($this->dn);
unset($_SESSION['objectinfo']);
}
/* 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'));
$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()
index 8096a5683224879436909d7771a1a58f302e2a14..b444ffd66ca575528c560f11b215d1531985d1d9 100755 (executable)
<tr>
<td>{t}Base{/t}{$must}</td>
<td>
- <select size="1" name="base" title="{t}Choose subtree to place application in{/t}">
+ <select size="1" name="base" title="{t}Choose subtree to place macro in{/t}">
{html_options options=$bases selected=$base_select}
<option disabled> </option>
</select>
index b6f774f5df1c1625f87dcd48e7abec8baa81fe51..9662619d5e2e408511163fbb7ffeb38dbd9c044d 100755 (executable)
<div class="contentboxb">
<p class="contentboxb">
<select style="width:500px; height:450px;" name="macrolists" size=15 ondblclick="this.form.edit_helper.value='1'; this.form.submit()">
- {html_options options=$applications}
+ {html_options options=$macros}
<option disabled> </option>
</select>
<br>