From 401d99c378700adff93c5d9f751d401949b7e790 Mon Sep 17 00:00:00 2001
From: Nigel Kukard <nkukard@lbsd.net>
Date: Sat, 5 Sep 2015 09:20:49 +0000
Subject: [PATCH] Don't create contact on domain transfer

---
 modules/registrars/cozaepp/cozaepp.php | 48 --------------------------
 1 file changed, 48 deletions(-)

diff --git a/modules/registrars/cozaepp/cozaepp.php b/modules/registrars/cozaepp/cozaepp.php
index e1df03f..38153e7 100644
--- a/modules/registrars/cozaepp/cozaepp.php
+++ b/modules/registrars/cozaepp/cozaepp.php
@@ -669,54 +669,6 @@ function cozaepp_TransferDomain($params) {
 			return $values;
 		}
 
-		$values["status"] = $msg;
-
-		# Create contact details
-		$request = $client->request($xml = '
-<epp:epp xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:epp="urn:ietf:params:xml:ns:epp-1.0"
-		xmlns:contact="urn:ietf:params:xml:ns:contact-1.0" xsi:schemaLocation="urn:ietf:params:xml:ns:epp-1.0 epp-1.0.xsd">
-	<epp:command>
-		<epp:create>
-			<contact:create xsi:schemaLocation="urn:ietf:params:xml:ns:contact-1.0 contact-1.0.xsd">
-				<contact:id>'.$contactid.'</contact:id>
-				<contact:postalInfo type="loc">
-					<contact:name>'.$RegistrantFirstName.' '.$RegistrantLastName.'</contact:name>
-					<contact:addr>
-						<contact:street>'.$RegistrantAddress1.'</contact:street>
-						<contact:street>'.$RegistrantAddress2.'</contact:street>
-						<contact:city>'.$RegistrantCity.'</contact:city>
-						<contact:sp>'.$RegistrantStateProvince.'</contact:sp>
-						<contact:pc>'.$RegistrantPostalCode.'</contact:pc>
-						<contact:cc>'.$RegistrantCountry.'</contact:cc>
-					</contact:addr>
-				</contact:postalInfo>
-				<contact:voice>'.$RegistrantPhone.'</contact:voice>
-				<contact:fax></contact:fax>
-				<contact:email>'.$RegistrantEmailAddress.'</contact:email>
-				<contact:authInfo>
-					<contact:pw>AxA8AjXbAH'.rand().rand().'</contact:pw>
-				</contact:authInfo>
-			</contact:create>
-		</epp:create>
-	</epp:command>
-</epp:epp>
-');
-		# Parse XML result
-		$doc= new DOMDocument();
-		$doc->loadXML($request);
-		logModuleCall('Cozaepp', 'TransferDomain', $xml, $request);
-
-		$coderes = $doc->getElementsByTagName('result')->item(0)->getAttribute('code');
-		$msg = $doc->getElementsByTagName('msg')->item(0)->nodeValue;
-		if($coderes == '1000') {
-			$values['contact'] = 'Contact Created';
-		} else if($coderes == '2302') {
-			$values['contact'] = 'Contact Already exists';
-		} else {
-			$values["error"] = "TransferDomain/contact-create($contactid): Code ($coderes) $msg";
-			return $values;
-		}
-
 	} catch (Exception $e) {
 		$values["error"] = 'TransferDomain/EPP: '.$e->getMessage();
 		return $values;
-- 
GitLab