账号通
    

账号  

密码  

3988

查看

5

回复
主题:[求助]官方请进关于kesionCMS使用SSL证书问题 [收藏主题] 转到:  
信阳网站建设 当前离线

2

主题

0

广播

0

粉丝
添加关注
级别:学前班

用户积分:4 分
登录次数:2 次
注册时间:2020/10/21
最后登录:2020/10/21
信阳网站建设 发表于:2020/10/21 14:29:40   | 显示全部帖子 查看该作者主题 楼主 
科汛在线商城系统(NET)
打开文件KS_Cls/Kesion.CommonCls.asp,搜索”GetAutoDomain“大约在574行,将函数GetAutoDomain和GetCurrentURL分别替换为如下代码:

  1. Public Function GetAutoDomain()
  2. Dim TempPath
  3. If Request.ServerVariables("SERVER_PORT") = "80" Or Request.ServerVariables("SERVER_PORT") = "443" Then
  4. GetAutoDomain = Request.ServerVariables("SERVER_NAME")
  5. Else
  6. GetAutoDomain = Request.ServerVariables("SERVER_NAME") & ":" & Request.ServerVariables("SERVER_PORT")
  7. End If
  8. If Instr(UCASE(GetAutoDomain),"/W3SVC")<>0 Then
  9.    GetAutoDomain=Left(GetAutoDomain,Instr(GetAutoDomain,"/W3SVC"))
  10. End If
  11. If Request.ServerVariables("SERVER_PORT") = "443" Then
  12. GetAutoDomain = "https://" & GetAutoDomain
  13. Else
  14. GetAutoDomain = "http://" & GetAutoDomain
  15. End If
  16. End Function
  17. '取得当前完整URL
  18. Public Function GetCurrentURL()
  19. Dim Url
  20. Dim ServerPort,ServerName,ScriptName,QueryString
  21. ServerName = Request.ServerVariables("SERVER_NAME")
  22. ServerPort = Request.ServerVariables("SERVER_PORT")
  23. ScriptName = Request.ServerVariables("SCRIPT_NAME")
  24. QueryString = Request.ServerVariables("QUERY_STRING")
  25. If ServerPort = "443" Then
  26. Url="https://"&ServerName
  27. Else
  28. Url="http://"&ServerName
  29. End If
  30. If ServerPort <> "80" And ServerPort <> "443" Then Url = Url & ":" & ServerPort
  31. Url=Url&ScriptName
  32. If QueryString <>"" Then Url=Url&"?"& QueryString
  33. GetCurrentURL=Url
  34. End Function


 
  支持(0) | 反对(0) 回到顶部顶端 回到底部底部
信阳网站建设 当前离线

2

主题

0

广播

0

粉丝
添加关注
级别:学前班

用户积分:4 分
登录次数:2 次
注册时间:2020/10/21
最后登录:2020/10/21
信阳网站建设 发表于:2020/10/21 14:32:09   | 显示全部帖子 查看该作者主题 沙发 
很久没写asp了,语法都忘记差不多了,感觉不像PHP那样写的自在,不过可以用嘿嘿
 
  支持(0) | 反对(0) 回到顶部顶端 回到底部底部
<上一主题 | 下一主题 >
Powered By KesionCMS Version X1
厦门科汛软件有限公司 © 2006-2016 页面执行0.07373秒 powered by KesionCMS 9.0