summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f7cd7b1)
raw | patch | inline | side by side (parent: f7cd7b1)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 4 Sep 2007 13:02:25 +0000 (13:02 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 4 Sep 2007 13:02:25 +0000 (13:02 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7214 594d385d-05f5-0310-b6e9-bd551577e9d8
index 53c27b8ed7ef2aba9083f0cef816e4ee4955df63..c4057ea67b5229127cc0e62dcdace0702dc7250b 100644 (file)
--- a/include/class_plugin.inc
+++ b/include/class_plugin.inc
}
if ($command != ""){
+
+ /* Additional attributes */
+ foreach ($add_attrs as $name => $value){
+ $command= preg_replace("/%$name/", $value, $command);
+ }
+
/* Walk through attribute list */
foreach ($this->attributes as $attr){
if (!is_array($this->$attr)){
}
$command= preg_replace("/%dn/", $this->dn, $command);
- /* Additional attributes */
- foreach ($add_attrs as $name => $value){
- $command= preg_replace("/%$name/", $value, $command);
- }
-
if (check_command($command)){
@DEBUG (DEBUG_SHELL, __LINE__, __FUNCTION__, __FILE__,
$command, "Execute");
}
if ($command != ""){
+
+ /* Additional attributes */
+ foreach ($add_attrs as $name => $value){
+ $command= preg_replace("/%$name/", $value, $command);
+ }
+
/* Walk through attribute list */
foreach ($this->attributes as $attr){
if (!is_array($this->$attr)){
}
$command= preg_replace("/%dn/", $this->dn, $command);
- /* Additional attributes */
- foreach ($add_attrs as $name => $value){
- $command= preg_replace("/%$name/", $value, $command);
- }
-
if (check_command($command)){
@DEBUG (DEBUG_SHELL, __LINE__, __FUNCTION__, __FILE__,
$command, "Execute");
}
if ($command != ""){
+
+ /* Additional attributes */
+ foreach ($add_attrs as $name => $value){
+ $command= preg_replace("/%$name/", $value, $command);
+ }
+
/* Walk through attribute list */
foreach ($this->attributes as $attr){
if (!is_array($this->$attr)){
index 92d0b2a78a470ed4da0cb3ee7fad25745f2d157f..93343090ceb7de6024dd220f86d4d6c2bd26b55f 100644 (file)
foreach($tmp['zoneUpdates'] as $dn => $attrs){
$ldap->cd($dn);
$ldap->modify($attrs);
+ $this->handle_post_events("modify",array("dn" => $dn));
new log("modfiy","unknown/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
show_ldap_error($ldap->get_error(), sprintf(_("Updating of system server/dns with dn '%s' failed."),$this->dn));
}
foreach($tmp['del'] as $dn => $del){
$ldap->cd($dn);
$ldap->rmdir_recursive($dn);
+ $this->handle_post_events("remove",array("dn" => $dn));
new log("remove","unknown/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
show_ldap_error($ldap->get_error(), sprintf(_("Removing of system server/dns with dn '%s' failed."),$this->dn));
}
if($ldap->fetch()){
$ldap->cd($dn);
$ldap->modify ($attrs);
+ $this->handle_post_events("modify",array("dn" => $dn));
show_ldap_error($ldap->get_error(), sprintf(_("Saving of system server/dns with dn '%s' failed."),$this->dn));
}else{
$ldap->cd($dn);
$ldap->add($attrs);
+ $this->handle_post_events("create",array("dn" => $dn));
show_ldap_error($ldap->get_error(), sprintf(_("Saving of system server/dns with dn '%s' failed."),$this->dn));
}
}
diff --git a/plugins/admin/systems/class_servDNSeditZone.inc b/plugins/admin/systems/class_servDNSeditZone.inc
index 1605df4b399a5a05f077c1bdaae8d9f58e8738ed..c71fdf67b3bab1c0eabb4f96499a585d677e851e 100644 (file)
$smarty->assign("AllowZoneEdit" , true);
if(isset($_POST['EditZoneEntries'])){
$this->dialog= new servDNSeditZoneEntries($this->config,$this->dn,$this->ZoneObject);
+ $this->dialog->parent = $this;
}
}
diff --git a/plugins/admin/systems/class_servDNSeditZoneEntries.inc b/plugins/admin/systems/class_servDNSeditZoneEntries.inc
index a485f8b11f906c4f7ee510a569d8cf05fa3f3832..7eace297ac85e493bc416f8a1f77a09e80a08f13 100644 (file)
$todo = array();
+
/* Create todolist
*/
foreach($this->Devices as $name => $dev){