Strik Posted October 12, 2009 Share Posted October 12, 2009 (edited) 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 October 12, 2009 by Strik 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.