New Paste

 

Administrate




Pastebin on unaen.org

PasteID: 389
Pasted by copec, 2021-05-24 22:07:31 GMT
Expires Never
Paste size 589 b
Tools Raw   Download
 
  1. (defun disable-dns-plesk (server-name servers-config domain)  
  2.   (let ((server-config (gethash server-name servers-config)))  
  3.     (when server-config  
  4.       (with-accessors ((ip ip) (api-key api-key) (site-ids site-ids) (site-alias-ids site-alias-ids)) server-config  
  5. 	  (drakma:http-request (uri->string *plesk-xml-uri-defaults* :host ip)  
  6. 			       :method :post  
  7. 			       :additional-headers (api-key->header api-key)  
  8. 			       :content (disable-dns-plesk-xml-packet (or (gethash domain site-ids)  
  9. 									  (gethash domain site-alias-ids)))  
  10. 			       :content-type "text/xml")))))  
  11.  
 
 
 
 
Written by Xan Manning, 2010.