summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: af2e8af)
raw | patch | inline | side by side (parent: af2e8af)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 6 Sep 2010 07:05:36 +0000 (07:05 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 6 Sep 2010 07:05:36 +0000 (07:05 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@19511 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/systems/admin/systems/class_termDNS.inc | patch | blob | history |
diff --git a/gosa-plugins/systems/admin/systems/class_termDNS.inc b/gosa-plugins/systems/admin/systems/class_termDNS.inc
index c3806820105ab012dc51e1928edf2d20c0de74eb..f6ddf4f6bb5ad87a2f99a0a92b26161a35854e3f 100644 (file)
/* Check for autonet button */
if (isset($_POST['autonet']) && ($this->acl_is_writeable("ipHostNumber") || $this->acl_is_writeable("macAddress"))){
- $d= new gosaSupportDaemon(TRUE, 0.5);
- $res= $d->_send("<xml><header>gosa_network_completition</header>".
- "<source>GOSA</source><target>GOSA</target><hostname>".$this->cn."</hostname></xml>", TRUE);
- if (isset($res['XML']['IP']) && $this->acl_is_writeable("ipHostNumber")){
- $this->ipHostNumber= $res['XML']['IP'];
- }
- if (isset($res['XML']['MAC']) && $this->acl_is_writeable("macAddress")){
- $this->macAddress= $res['XML']['MAC'];
- }
+ if(class_available("gosaSupportDaemon")){
+ $d= new gosaSupportDaemon(TRUE, 0.5);
+ $res= $d->_send("<xml><header>gosa_network_completition</header>".
+ "<source>GOSA</source><target>GOSA</target><hostname>".$this->cn."</hostname></xml>", TRUE);
+ if (isset($res['XML']['IP']) && $this->acl_is_writeable("ipHostNumber")){
+ $this->ipHostNumber= $res['XML']['IP'];
+ }
+ if (isset($res['XML']['MAC']) && $this->acl_is_writeable("macAddress")){
+ $this->macAddress= $res['XML']['MAC'];
+ }
+ }
}