星外系统接入爱名网接口
方法1
修改文件 Inc-freehost-function/FreeHostDomain.asp
查找http://api.hichina.com/wwwnetcn.aspx,将其改为http://api.22.cn/wwwnetcn.aspx
(有在该文件中,有3个地方有这个连接,都要改)
查找dns1="dns7.hichina.com",将连同下面的dns2="dns8.hichina.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>
找到如下这行代码:
urlD="http://diy.hichina.com/cgi-bin/login"将代码语句注释,用
urlD="http://www.everdns.com?domain="&utf8(dsdom("domain"))&"&pwd="&session("inipass")替代
修改文件/style/info/domainchecknet.asp文件
查找http://panda.www.net.cn/cgi-bin/check_muitl.cgi
将其替换为:http://api.22.cn/wwwnetcn_check_muitl.aspx
最后,在后台设置页面,万网接口处填写用户数字ID,通过MD5加密后的API密码,用户注册邮箱
方法2
修改网站目录下的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="www.everdns.com"
dns2="www.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密码
          
        
    
                                
                                    
                                    
                                    
                                    
                            
                                    
                                    
                                    
                                    
            
    
            
  
请先 登录后发表评论 ~