<!--#include file="../include/safe.asp"-->
<!--#include file="../include/Check_Sql.asp"-->

<%
dim conn,connstr
on error resume next
connstr="dbq="+server.mappath("include/#adsf#@$.mdb")+";defaultdir=;driver={microsoft access driver (*.mdb)};"
set conn=server.createobject("adodb.connection")
conn.open connstr

sub CloseConn()
	conn.close
	set conn=nothing
end sub

dim oyaya_title,oyaya_url,oyaya_keywords,oyaya_description,newspage,newsNumber,newNumber,leftnewNumber,hotnewNumber,allnewNumber
set rsw=server.CreateObject("adodb.recordset")
rsw.Open "select top 1 * from WebBasicInfo",conn,1,1
oyaya_title=Rsw("W_WebSiteName")
oyaya_url=Rsw("W_WebSiteUrl")
oyaya_keywords=Rsw("W_WebSiteKeyword")
	oyaya_description=Rsw("W_WebSiteIntr")
	W_WebSiteCopyInfo=Rsw("W_WebSiteCopyInfo")
	author=rsw("oyaya_Copyright")
	W_Powered=rsw("W_Powered")
	W_PoweredVer=rsw("W_PoweredVer")
	oyaya_link=rsw("oyaya_link")
gonggao=Rsw("gonggao")
Comment=rsw("Comment")
rsw.Close
set rsw=nothing

set book=conn.execute("select * from book_setup")
sitename=book("sitename")
admin=book("admin")
password=book("password")
maxlength=cint(book("maxlength"))
view=book("view")
pages=cint(book("pages"))
html=cint(book("html"))
mailyes=cint(book("mailyes"))
book_jianju=cint(book("book_jianju"))
huifutishi=cstr(book("huifutishi"))
huifucolor=cstr(book("huifucolor"))
bad=cstr(book("bad"))
set book=nothing


'检查用户输入的内容中是否含有非法字符
function checktxt(txt)
chrtxt="33|34|35|36|37|38|39|40|41|42|43|44|47|58|59|60|61|62|63|91|92|93|94|96|123|124|125|126|128"
chrtext=split(chrtxt,"|")
for c=0 to ubound(chrtext)
txt=replace(txt,chr(chrtext(c)),"")
next
checktxt=txt
end function
%>