Jump to content

How to get values from suscriptionid field?


Strik

Recommended Posts

Hello friends,

 

I'm trying to get values from Subscription ID field in domains section using this functtion in registrar plugin:

 

function getDomainUserPass()
{
if(isset($_SESSION['data']['subscriptionid']))
{
	$user_pass = $GLOBALS['subscriptionid'];
}
else
{
	$user_pass = $_SESSION['data']['subscriptionid'];
}

$auth = explode("/", $user_pass);
return $auth;
}

 

And use user/password as:

 

function rone_username()
 {
   $domainAuth = getDomainUserPass();
   $username = $domainAuth[0];
   return $username;
 }

 function rone_password()
 {
   $domainAuth = getDomainUserPass();
   $password = $domainAuth[1];
   return $password;
 }

 

This works, but only on domain details page in Admin area. If I go to another page like "Manage contact details" I see (in debug mode) that username and password empty.

 

I want to get values from Subscription ID field - username/password, like done in "opensrsexisting" registrar plugin.

 

Any suggestions and code examples would be very appreciated.

Edited by Strik
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