<%@ Language=VBScript %>
<!--#include virtual="/inc-freehost-function/FreeHostFunctionMain.asp"-->
<%
If session("CDNAUID")="" Then
	ef=True
	ec="授权非法，有可能是超时造成的。"
ElseIf Request.Form ("newpassword")="" Then
	ef=True
	ec="新密码为空！"
ElseIf Request.Form ("newpassword")<>Request.Form ("renewpassword") Then
	ef=True
	ec="密码不一致！"
ElseIf RegExpTest("[^A-Za-z0-9]",Request.Form ("newpassword")) Then
	ef=True
	ec="密码中有非法字符！"
end if

if not ef then
Set conn=Server.CreateObject("ADODB.Connection")
	conn.Open Application("FreeHostDBlink")
	Set dsph = Server.CreateObject("ADODB.Recordset")	
	Sql="Select * from FreeHost.FreeHost_Product_CDN where id='"&session("CDNAUID")&"'"
			if Instr(1,sql, ";", 1)>0 or Instr(1,sql, "--", 1)>0 then
Response.Write "非法字符！"
Response.End
end if
	dsph.Open Sql,conn,1,3
if dsph.Eof then
	ef=True
	ec="不存在的CDN产品ID！"
end if
end if

if not ef then
%>

<!--#include virtual="/inc-freehost-function/template-CDNadm-top.asp"-->
　修改CDN独立管理密码

<%
dsph("ftppassword")=Trim(Request.Form ("newpassword"))
'response.write "新密码："&sqlpassword
dsph.update
dsph.close

%>
<br>
<br>　<br>　
保存成功。
<br>
<br>
　<a href="selfCDNmodify.asp?id=<%=session("CDNAUID")%>"><font color="#000000">[返回]</font></a>
<!--#include virtual="/inc-freehost-function/template-CDNadm-end.asp"-->
<%end if
if ef then
Response.Redirect "e.asp?e="&ec
end if%>
