Browse code

Logging beim Eintragen und Löschen externer Domains

Bernd Wurst authored on18/02/2018 20:44:33
Showing1 changed files
... ...
@@ -298,6 +298,7 @@ function insert_domain_external($domain, $dns = false, $mail = true)
298 298
     }
299 299
     $tld = $info['domainSuffix'];
300 300
     $domainname = str_replace(".$tld", "", $info['domainNameUnicode']);
301
+    logger(LOG_WARNING, 'modules/domains/include/domains', 'domains', 'Inserting external domain '.$info['domainNameUnicode']." DNS:{$dns} / Mail:{$mail}");
301 302
     
302 303
     db_query("INSERT INTO kundendaten.domains (status, kunde, useraccount, domainname, tld, billing, provider, dns, mail, mailserver_lock) VALUES 
303 304
         ('external', ?, ?, ?, ?, 'external', 'other', 0, ?, 1)", array($cid, $uid, $domainname, $tld, ($mail ? 'auto' : 'none')));
... ...
@@ -315,6 +316,7 @@ function insert_domain_external($domain, $dns = false, $mail = true)
315 316
 function delete_domain($id)
316 317
 {
317 318
     $cid = (int) $_SESSION['customerinfo']['customerno'];
319
+    logger(LOG_WARNING, 'modules/domains/include/domains', 'domains', 'Deleting domain '.$id);
318 320
     db_query("DELETE FROM kundendaten.domains WHERE id=? AND kunde=?", array($id, $cid)); 
319 321
 }
320 322