本文整理汇总了PHP中openSRS_base类的典型用法代码示例。如果您正苦于以下问题:PHP openSRS_base类的具体用法?PHP openSRS_base怎么用?PHP openSRS_base使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了openSRS_base类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: opensrs_TransferSync
function opensrs_TransferSync($params)
{
$regusername = $params['Username'];
$regpassword = $params['Password'];
$regprivatekey = $params['PrivateKey'];
if ($params['TestMode']) {
$mode = "test";
$protocol = "XCP";
} else {
$mode = "live";
$protocol = "XCP";
}
$server_ip = isset($_SERVER['SERVER_ADDR']) ? $_SERVER['SERVER_ADDR'] : $_SERVER['LOCAL_ADDR'];
require_once dirname(__FILE__) . "/openSRS_base.php";
$domainid = $params['domainid'];
$domain = $params['domain'];
$username = opensrs_getusername($domain);
$password = opensrs_getpassword($domainid, $domain);
$O = new openSRS_base($mode, $protocol, $regusername, $regprivatekey);
$opensrscookie = "";
$error = "";
$cmd = array("object" => "COOKIE", "action" => "SET", "registrant_ip" => $server_ip, "attributes" => array("domain" => $domain, "reg_username" => $username, "reg_password" => $password));
$result = $O->send_cmd($cmd);
logModuleCall("opensrssync", "Get Domain Info", $cmd, $result, "", array($username, $password));
if ($result['is_success'] != "1") {
return array("error" => $result['response_text']);
}
$opensrscookie = $result['attributes']['cookie'];
$expirydate = $result['attributes']['expiredate'];
$expirydate = explode(" ", $expirydate);
$expirydate = $expirydate[0];
$rtn = array();
$rtn['active'] = true;
$rtn['expirydate'] = $expirydate;
return $rtn;
}
开发者ID:billyprice1,项目名称:whmcs,代码行数:36,代码来源:opensrs.php
示例2: __construct
public function __construct($formatString, $dataObject)
{
parent::__construct($dataObject);
$this->_dataObject = $dataObject;
$this->_process();
}
开发者ID:carriercomm,项目名称:WHMCS-OpenSRSPro-Module,代码行数:6,代码来源:opensrspro.php
示例3: __destruct
public function __destruct()
{
parent::__destruct();
}
开发者ID:Ryan-Nolan,项目名称:boxbilling,代码行数:4,代码来源:cookieSet.php
注:本文中的openSRS_base类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论