%
option explicit
Response.Buffer = true
if session("company_id") <> "" then
dim conn
dim ssql
dim rs
dim offline_payment_info
dim online_payment_info
dim objfs
dim objfile
dim myMBEmail
dim myMBStatus
dim myMBPermission
set objfs = server.CreateObject("scripting.FileSystemObject")
if objfs.FileExists(server.MapPath("../../../../../member/" & Request.Cookies("storename") & "/myMBEmail.txt")) = true then
set objfile = objfs.OpenTextFile(server.MapPath("../../../../../member/" & Request.Cookies("storename") & "/myMBEmail.txt"),1,-1,0)
myMBEmail = objfile.ReadLine
objfile.close
set objfile = nothing
end if
if objfs.FileExists(server.MapPath("../../../../../member/" & Request.Cookies("storename") & "/myMBStatus.txt")) = true then
set objfile = objfs.OpenTextFile(server.MapPath("../../../../../member/" & Request.Cookies("storename") & "/myMBStatus.txt"),1,-1,0)
myMBStatus = objfile.ReadLine
objfile.close
set objfile = nothing
end if
if objfs.FileExists(server.MapPath("../../../../../member/" & Request.Cookies("storename") & "/myMBPermission.txt")) = true then
set objfile = objfs.OpenTextFile(server.MapPath("../../../../../member/" & Request.Cookies("storename") & "/myMBPermission.txt"),1,-1,0)
myMBPermission = objfile.ReadLine
objfile.close
set objfile = nothing
end if
dim my88Code
dim my88Status
dim my88Permission
if objfs.FileExists(server.MapPath("../../../../../member/" & Request.Cookies("storename") & "/my88Code.txt")) = true then
set objfile = objfs.OpenTextFile(server.MapPath("../../../../../member/" & Request.Cookies("storename") & "/my88Code.txt"),1,-1,0)
my88Code = objfile.ReadLine
objfile.close
set objfile = nothing
end if
if objfs.FileExists(server.MapPath("../../../../../member/" & Request.Cookies("storename") & "/my88Status.txt")) = true then
set objfile = objfs.OpenTextFile(server.MapPath("../../../../../member/" & Request.Cookies("storename") & "/my88Status.txt"),1,-1,0)
my88Status = objfile.ReadLine
objfile.close
set objfile = nothing
end if
if objfs.FileExists(server.MapPath("../../../../../member/" & Request.Cookies("storename") & "/my88Permission.txt")) = true then
set objfile = objfs.OpenTextFile(server.MapPath("../../../../../member/" & Request.Cookies("storename") & "/my88Permission.txt"),1,-1,0)
my88Permission = objfile.ReadLine
objfile.close
set objfile = nothing
end if
dim paypalCode
dim paypalStatus
dim paypalPermission
if objfs.FileExists(server.MapPath("../../../../../member/" & Request.Cookies("storename") & "/paypalCode.txt")) = true then
set objfile = objfs.OpenTextFile(server.MapPath("../../../../../member/" & Request.Cookies("storename") & "/paypalCode.txt"),1,-1,0)
paypalCode = objfile.ReadLine
objfile.close
set objfile = nothing
end if
if objfs.FileExists(server.MapPath("../../../../../member/" & Request.Cookies("storename") & "/paypalStatus.txt")) = true then
set objfile = objfs.OpenTextFile(server.MapPath("../../../../../member/" & Request.Cookies("storename") & "/paypalStatus.txt"),1,-1,0)
paypalStatus = objfile.ReadLine
objfile.close
set objfile = nothing
end if
if objfs.FileExists(server.MapPath("../../../../../member/" & Request.Cookies("storename") & "/paypalPermission.txt")) = true then
set objfile = objfs.OpenTextFile(server.MapPath("../../../../../member/" & Request.Cookies("storename") & "/paypalPermission.txt"),1,-1,0)
paypalPermission = objfile.ReadLine
objfile.close
set objfile = nothing
end if
set objfs = nothing
%>
<%
ssql = "select * from tbl_setting"
set rs = server.CreateObject("adodb.recordset")
rs.Open ssql,conn,3,3
if len(trim(rs("offline_payment_info"))) > 0 then
offline_payment_info = replace(rs("offline_payment_info"),"
",vbcrlf, 1, -1, 1)
end if
'if len(trim(rs("online_payment_info"))) > 0 then
'online_payment_info = replace(rs("online_payment_info"),"
",vbcrlf, 1, -1, 1)
online_payment_info = ""
'end if
%>