Jump to content

NameSilo Registrar Module - ID Protection change implementation by us


Recommended Posts

As Namesilo didn't implemented ID PROTECTION enabling or disabling via admin area or client area we decided to implement it ourselves.

Just edit namesilo.php file

 

and add this code before ?>

 

/*****************************************/
/* ID Protection */
/*****************************************/
function namesilo_IDProtectToggle($params) {
   # Set Appropriate API Server
   $apiServerUrl = ($params['Test_Mode'] == 'on') ? TEST_API_SERVER : LIVE_API_SERVER;
   # Set Appropriate API Key
   $apiKey = ($params['Test_Mode'] == 'on') ? $params['Sandbox_API_Key'] : $params['Live_API_Key'];
# Register Variables
$tld = urlencode($params["tld"]);
$sld = urlencode($params["sld"]);
# Determine ID Protection Status and Run Appropriate Call
	if($params["protectenable"]){
$postfields["protect-privacy"] = "true";
$idprotect = "on";
	# Transaction Call
	$values = namesilo_transactionCall("Standard", $apiServerUrl . "/api/addPrivacy?version=1&type=xml&key=$apiKey&domain=$sld.$tld");
}
else {
$postfields["protect-privacy"] = "false";
$idprotect = "";
	# Transaction Call
	$values = namesilo_transactionCall("Standard", $apiServerUrl . "/api/removePrivacy?version=1&type=xml&key=$apiKey&domain=$sld.$tld");
}
   # Return Results
   return $values;
}

 

Or simply upload a file with implemented changes

/http://pastebin.com/QxnAdecf

 

Now ID protection changing is working like charm from admin and client area.

We sent an email to Namesilo to implement our code in the module, we hope we will get positive response.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated