From: hickert Date: Thu, 8 Jun 2006 10:30:40 +0000 (+0000) Subject: Added posts to service tabs X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d40479479fbca29a0c704213f6033c3a11266a67;p=gosa.git Added posts to service tabs git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3712 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/systems/class_goCupsServer.inc b/plugins/admin/systems/class_goCupsServer.inc index 924519abf..47fc45dbc 100644 --- a/plugins/admin/systems/class_goCupsServer.inc +++ b/plugins/admin/systems/class_goCupsServer.inc @@ -66,6 +66,7 @@ class goCupsServer extends plugin{ $ldap->add($this->attrs); } show_ldap_error($ldap->get_error()); + $this->handle_post_events("remove"); } @@ -82,6 +83,12 @@ class goCupsServer extends plugin{ $ldap->cd($this->dn); $ldap->add($this->attrs); } + if($this->initially_was_account){ + $this->handle_post_events("modify"); + }else{ + $this->handle_post_events("add"); + } + show_ldap_error($ldap->get_error()); } diff --git a/plugins/admin/systems/class_goFaxServer.inc b/plugins/admin/systems/class_goFaxServer.inc index d83331606..934bc6c09 100644 --- a/plugins/admin/systems/class_goFaxServer.inc +++ b/plugins/admin/systems/class_goFaxServer.inc @@ -68,6 +68,7 @@ class goFaxServer extends plugin{ $ldap->add($this->attrs); } show_ldap_error($ldap->get_error()); + $this->handle_post_events("remove"); } @@ -84,6 +85,11 @@ class goFaxServer extends plugin{ $ldap->cd($this->dn); $ldap->add($this->attrs); } + if($this->initially_was_account){ + $this->handle_post_events("modify"); + }else{ + $this->handle_post_events("add"); + } show_ldap_error($ldap->get_error()); } diff --git a/plugins/admin/systems/class_goFonServer.inc b/plugins/admin/systems/class_goFonServer.inc index e42080179..4d0fca755 100644 --- a/plugins/admin/systems/class_goFonServer.inc +++ b/plugins/admin/systems/class_goFonServer.inc @@ -71,6 +71,7 @@ class goFonServer extends plugin{ $ldap->add($this->attrs); } show_ldap_error($ldap->get_error()); + $this->handle_post_events("remove"); } @@ -88,6 +89,11 @@ class goFonServer extends plugin{ $ldap->add($this->attrs); } show_ldap_error($ldap->get_error()); + if($this->initially_was_account){ + $this->handle_post_events("modify"); + }else{ + $this->handle_post_events("add"); + } } diff --git a/plugins/admin/systems/class_goGlpiServer.inc b/plugins/admin/systems/class_goGlpiServer.inc index 7491ea640..14938f41d 100644 --- a/plugins/admin/systems/class_goGlpiServer.inc +++ b/plugins/admin/systems/class_goGlpiServer.inc @@ -70,6 +70,7 @@ class goGlpiServer extends plugin{ $ldap->add($this->attrs); } show_ldap_error($ldap->get_error()); + $this->handle_post_events("remove"); } @@ -87,6 +88,11 @@ class goGlpiServer extends plugin{ $ldap->add($this->attrs); } show_ldap_error($ldap->get_error()); + if($this->initially_was_account){ + $this->handle_post_events("modify"); + }else{ + $this->handle_post_events("add"); + } } diff --git a/plugins/admin/systems/class_goImapServer.inc b/plugins/admin/systems/class_goImapServer.inc index 8ad0d12da..1ae6556b9 100644 --- a/plugins/admin/systems/class_goImapServer.inc +++ b/plugins/admin/systems/class_goImapServer.inc @@ -103,6 +103,7 @@ class goImapServer extends plugin{ $ldap->add($this->attrs); } show_ldap_error($ldap->get_error()); + $this->handle_post_events("remove"); } function save() @@ -120,6 +121,12 @@ class goImapServer extends plugin{ $ldap->add($this->attrs); } show_ldap_error($ldap->get_error()); + if($this->initially_was_account){ + $this->handle_post_events("modify"); + }else{ + $this->handle_post_events("add"); + } + } diff --git a/plugins/admin/systems/class_goKrbServer.inc b/plugins/admin/systems/class_goKrbServer.inc index e5beef125..5c96c3362 100644 --- a/plugins/admin/systems/class_goKrbServer.inc +++ b/plugins/admin/systems/class_goKrbServer.inc @@ -69,6 +69,7 @@ class goKrbServer extends plugin{ $ldap->add($this->attrs); } show_ldap_error($ldap->get_error()); + $this->handle_post_events("remove"); } @@ -86,6 +87,11 @@ class goKrbServer extends plugin{ $ldap->add($this->attrs); } show_ldap_error($ldap->get_error()); + if($this->initially_was_account){ + $this->handle_post_events("modify"); + }else{ + $this->handle_post_events("add"); + } } diff --git a/plugins/admin/systems/class_goLdapServer.inc b/plugins/admin/systems/class_goLdapServer.inc index ce2e2c77b..888483dfb 100644 --- a/plugins/admin/systems/class_goLdapServer.inc +++ b/plugins/admin/systems/class_goLdapServer.inc @@ -67,6 +67,7 @@ class goLdapServer extends plugin{ $ldap->add($this->attrs); } show_ldap_error($ldap->get_error()); + $this->handle_post_events("remove"); } @@ -84,6 +85,12 @@ class goLdapServer extends plugin{ $ldap->add($this->attrs); } show_ldap_error($ldap->get_error()); + if($this->initially_was_account){ + $this->handle_post_events("modify"); + }else{ + $this->handle_post_events("add"); + } + } diff --git a/plugins/admin/systems/class_goLogDBServer.inc b/plugins/admin/systems/class_goLogDBServer.inc index 6c0ab3a56..254abe369 100644 --- a/plugins/admin/systems/class_goLogDBServer.inc +++ b/plugins/admin/systems/class_goLogDBServer.inc @@ -69,6 +69,7 @@ class goLogDBServer extends plugin{ $ldap->add($this->attrs); } show_ldap_error($ldap->get_error()); + $this->handle_post_events("remove"); } @@ -86,6 +87,11 @@ class goLogDBServer extends plugin{ $ldap->add($this->attrs); } show_ldap_error($ldap->get_error()); + if($this->initially_was_account){ + $this->handle_post_events("modify"); + }else{ + $this->handle_post_events("add"); + } } diff --git a/plugins/admin/systems/class_goMailServer.inc b/plugins/admin/systems/class_goMailServer.inc index bb0a9347a..c80075151 100644 --- a/plugins/admin/systems/class_goMailServer.inc +++ b/plugins/admin/systems/class_goMailServer.inc @@ -503,6 +503,7 @@ class goMailServer extends plugin{ $ldap->add($this->attrs); } show_ldap_error($ldap->get_error()); + $this->handle_post_events("remove"); } @@ -570,6 +571,12 @@ class goMailServer extends plugin{ $ldap->add($this->attrs); } show_ldap_error($ldap->get_error()); + if($this->initially_was_account){ + $this->handle_post_events("modify"); + }else{ + $this->handle_post_events("add"); + } + } diff --git a/plugins/admin/systems/class_goNtpServer.inc b/plugins/admin/systems/class_goNtpServer.inc index 3f423dea7..21bab4276 100644 --- a/plugins/admin/systems/class_goNtpServer.inc +++ b/plugins/admin/systems/class_goNtpServer.inc @@ -90,6 +90,7 @@ class goNtpServer extends plugin{ $ldap->add($this->attrs); } show_ldap_error($ldap->get_error()); + $this->handle_post_events("remove"); } @@ -111,6 +112,11 @@ class goNtpServer extends plugin{ $ldap->add($this->attrs); } show_ldap_error($ldap->get_error()); + if($this->initially_was_account){ + $this->handle_post_events("modify"); + }else{ + $this->handle_post_events("add"); + } } diff --git a/plugins/admin/systems/class_goShareServer.inc b/plugins/admin/systems/class_goShareServer.inc index ac6c5408b..010c18cad 100644 --- a/plugins/admin/systems/class_goShareServer.inc +++ b/plugins/admin/systems/class_goShareServer.inc @@ -168,6 +168,7 @@ class goShareServer extends plugin{ $ldap->add($this->attrs); } show_ldap_error($ldap->get_error()); + $this->handle_post_events("remove"); } @@ -201,6 +202,11 @@ class goShareServer extends plugin{ $ldap->add($this->attrs); } show_ldap_error($ldap->get_error()); + if($this->initially_was_account){ + $this->handle_post_events("modify"); + }else{ + $this->handle_post_events("add"); + } } diff --git a/plugins/admin/systems/class_goSyslogServer.inc b/plugins/admin/systems/class_goSyslogServer.inc index 8011baff6..3ef9c860f 100644 --- a/plugins/admin/systems/class_goSyslogServer.inc +++ b/plugins/admin/systems/class_goSyslogServer.inc @@ -66,6 +66,7 @@ class goSyslogServer extends plugin{ $ldap->add($this->attrs); } show_ldap_error($ldap->get_error()); + $this->handle_post_events("remove"); } @@ -83,6 +84,11 @@ class goSyslogServer extends plugin{ $ldap->add($this->attrs); } show_ldap_error($ldap->get_error()); + if($this->initially_was_account){ + $this->handle_post_events("modify"); + }else{ + $this->handle_post_events("add"); + } } diff --git a/plugins/admin/systems/class_goTerminalServer.inc b/plugins/admin/systems/class_goTerminalServer.inc index 3ddc52c8e..86e2bd820 100644 --- a/plugins/admin/systems/class_goTerminalServer.inc +++ b/plugins/admin/systems/class_goTerminalServer.inc @@ -69,6 +69,7 @@ class goTerminalServer extends plugin{ $ldap->add($this->attrs); } show_ldap_error($ldap->get_error()); + $this->handle_post_events("remove"); } @@ -91,6 +92,11 @@ class goTerminalServer extends plugin{ $ldap->add($this->attrs); } show_ldap_error($ldap->get_error()); + if($this->initially_was_account){ + $this->handle_post_events("modify"); + }else{ + $this->handle_post_events("add"); + } }