summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 317aed5)
raw | patch | inline | side by side (parent: 317aed5)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 14 Feb 2006 06:55:40 +0000 (06:55 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 14 Feb 2006 06:55:40 +0000 (06:55 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2688 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/gofax/blocklists/class_blocklistManagement.inc | patch | blob | history |
diff --git a/plugins/gofax/blocklists/class_blocklistManagement.inc b/plugins/gofax/blocklists/class_blocklistManagement.inc
index 6d590789b79b2da93a28f01912fb77c7b55ead51..79b5b3c72ef0352c581f6417945b9cf94e9f4815 100644 (file)
/* Get global filter config */
if (!is_global("blockfilter")){
$ui= get_userinfo();
- $base= get_base_from_people($ui->dn);
+ $this->base= get_base_from_people($ui->dn);
$blockfilter= array("sendlists" => "checked",
"receivelists" => "checked",
"entry" => "*",
- "depselect" => $base,
+ "depselect" => $this->base,
"regex" => "*");
register_global("blockfilter", $blockfilter);
}else{
$blockfilter = $_SESSION["blockfilter"];
$this->base = $blockfilter['depselect'];
}
+
$ui= get_userinfo();
$acl= get_permissions ($ui->dn, $ui->subtreeACL);
$this->acl= get_module_permission($acl, "blocklists", $ui->dn);
/* Fill templating stuff */
$smarty->assign("bases", $this->config->idepartments);
- $smarty->assign("base_select", $_SESSION['blockfilter']['depselect']);//$this->base);
+ $smarty->assign("base_select", $this->base);
$smarty->assign("types", array(0 => _("send"), 1 => _("receive")));
if ($this->dn == "new" || preg_match ("/,ou=incoming,/", $this->dn)){
$smarty->assign("selectmode", "");
$this->dn= "";
$this->description= "";
$this->cn= "";
- $this->base= "";
+ $this->base= $_SESSION['blockfilter']['depselect'];
$this->goFaxBlocklist= array();
}
{
plugin::save_object();
+ if(isset($_POST['base'])){
+ $this->base = $_POST['base'];
+ }
+
foreach($this->attributes as $attr){
if(isset($_POST[$attr])){
$this->$attr = $_POST[$attr];
function save()
{
plugin::save();
+
/* Type selection */
if ($this->type == 0){
/* Write back to ldap */
$ldap= $this->config->get_ldap_link();
- $ldap->cd($ldap->getParentDir($this->dn));
+ $ldap->cd($this->base);
$ldap->search("cn=$this->cn",array("cn"));
+ $ldap->cat($this->dn);
$a= $ldap->fetch();
+
if (count($a)){
if (!isset($this->attrs["$type"."list"])){
$this->attrs["$type"."list"]= array();
}
$ldap->cd($this->dn);
+ $this->cleanup();
$ldap->modify($this->attrs);
$this->handle_post_events("modify");
} else {