Abhängigkeit von contacts-Modul reduziert
Bernd Wurst

Bernd Wurst commited on 2018-01-30 09:19:02
Zeige 2 geänderte Dateien mit 2 Einfügungen und 2 Löschungen.

... ...
@@ -75,7 +75,7 @@ foreach ($user_domains as $domain)
75 75
     $punycode = '';
76 76
   }
77 77
   $domainname = "{$domain->fqdn}{$punycode}";
78
-  if ($_SESSION['role'] & ROLE_CUSTOMER && update_possible($domain->id)) {
78
+  if (have_module('contacts') && $_SESSION['role'] & ROLE_CUSTOMER && update_possible($domain->id)) {
79 79
       $domainname = internal_link('update', $domainname, 'id='.$domain->id);
80 80
   }
81 81
   output("  <tr><td>{$domainname}</td><td>{$regdate}</td><td>{$features}</td></tr>\n");
... ...
@@ -15,7 +15,6 @@ Nevertheless, in case you use a significant part of this code, we ask (but not r
15 15
 */
16 16
 
17 17
 require_once('inc/debug.php');
18
-require_once('domainapi.php');
19 18
 
20 19
 
21 20
 function mailman_subdomains($domain)
... ...
@@ -82,6 +81,7 @@ function web_in_use($domain)
82 81
 
83 82
 function domain_ownerchange($fqdn, $owner, $admin_c) 
84 83
 {
84
+    require_once('domainapi.php');
85 85
     $cid = (int) $_SESSION['customerinfo']['customerno'];
86 86
     db_query("UPDATE kundendaten.domains SET owner=?, admin_c=? WHERE CONCAT_WS('.', domainname, tld)=? AND kunde=?", array($owner, $admin_c, $fqdn, $cid));
87 87
     api_upload_domain($fqdn);
88 88