星外系统新网接口改造
星外系统修改
第一步:
修改网站目录下的Global.asa文件,将下列代码
Application("API2Check")="http://api.xinnet.com/domain/api.gb?method=check"
Application("API2Register")="http://api.xinnet.com/domain/api.gb?method=Register"
Application("API2Renew")="http://api.xinnet.com/domain/api.gb?method=DomainRenew"
Application("API2GetProductKey")="http://api.xinnet.com/domain/api.gb?method=GetProductKey"
Application("API2ChangeProductKey")="http://api.xinnet.com/domain/api.gb?method=ChangeProductKey"
修改为:
Application("API2Check")="http://api.22.cn/domain/api.aspx?method=check"
Application("API2Register")="http://api.22.cn/domain/api.aspx?method=Register"
Application("API2Renew")="http://api.22.cn/domain/api.aspx?method=DomainRenew"
Application("API2GetProductKey")="http://api.22.cn/domain/api.aspx?method=GetProductKey"
Application("API2ChangeProductKey")="http://api.22.cn/domain/api.aspx?method=ChangeProductKey"
	第二步:
 
修改文件 Inc-freehost-function/FreeHostDomain.asp
查找
dns1="dns-ch.xinnet.com"
dns2="dns-ch2.xinnet.com"
将其修改为:
dns1="dns1.everdns.com"
dns2="dns2.everdns.com"
	第三步:
 
分别在adm,agent,user下的domainadm2.asp和dns下的dnslogin.asp文件中
在文件最后添加
<script language="jscript" runat="server">
var utf8=function(str){
return encodeURIComponent(str);
}
</script>
将elseif dsdom("Domain_API")=2 then
到elseif dsdom("Domain_API")=3 then之间的代码替换为
urlD="http://www.everdns.com?domain="&utf8(dsdom("domain"))&"&pwd="&session("inipass")
	第四步:
 
最后,在后台设置页面,新网接口处填写用户数字ID,通过MD5加密后的API密码
          
        
    
                                
                                    
                                    
                                    
                                    
                            
                                    
                                    
                                    
                                    
            
    
            
  
请先 登录后发表评论 ~