<%
if Request.Form("Method_Type") = "Write_Configuration" then
Err_Msg = ""
if Request.Form("strMailServer") = "" and Request.Form("strEmail") = "1" then
Err_Msg = Err_Msg & "
You Must Enter the Address of your Mail Server
"
end if
if ((lcase(left(Request.Form("strMailServer"), 7)) = "http://") or (lcase(left(Request.Form("strMailServer"), 8)) = "https://") or Request.Form("strMailServer") = "") and Request.Form("strEmail") = "1" then
Err_Msg = Err_Msg & "
Do not prefix the Mail Server Address with http://, https:// or file://
"
end if
if Request.Form("strSender") = "" then
Err_Msg = Err_Msg & "
You Must Enter the Email Address of the Forum Administrator
"
else
if EmailField(Request.Form("strSender")) = 0 and Request.Form("strSender") <> "" then
Err_Msg = Err_Msg & "
You Must enter a valid email address for the Forum Administrator
"
end if
end if
if Err_Msg = "" then
'## Forum_SQL
for each key in Request.Form
if left(key,3) = "str" or left(key,3) = "int" then
strDummy = SetConfigValue(1, key, ChkString(Request.Form(key),"SQLstring"))
end if
next
Application(strCookieURL & "ConfigLoaded") = ""
%>