代码拉取完成,页面将自动刷新
<%
dim connstr
Dim strSQLServerName
Dim strSQLDBUserName
Dim strSQLDBPassword
Dim strSQLDBName
strSQLServerName = "(local)" '服务器名称或地址
strSQLDBUserName = "pinluo" '数据库帐号
strSQLDBPassword = "123456" '数据库密码
strSQLDBName = "pinluomusic222" '数据库名称
'on error resume next
Set conn = Server.CreateObject("ADODB.Connection")
connstr = "Provider=SQLOLEDB.1;Persist Security Info=False;Server=" & strSQLServerName & ";User ID=" & strSQLDBUserName & ";Password=" & strSQLDBPassword & ";Database=" & strSQLDBName & ";"
conn.open connstr
%>
<%
'
'☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆
'★ ★
'☆ 品络音乐程序系统1.0 ☆
'★ ★
'☆ 空间域名: 品络 www.pinluo.com ☆
'★ ★
'☆ 程序制作: 草札 www.caozha.com ☆
'★ ★
'☆ 优惠券: 穷店 www.qiongdian.com ☆
'★ ★
'★ 源码基于Apache-2.0免费开源,请保留声明和链接! ★
'☆ ☆
'☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆
'
'
'***********************************************
'过程名:checksql
'作 用:过滤恶意字符以及html语法
'参 数:str ----待处理的字符串
' strtype ----过滤方式,1为数字,2为html过滤,3为不过滤html
'返回值:过滤了的字符
'***********************************************
Function checksql(str,strtype)
str=""&str
str=Trim(str)
str=replace(str,"'","''")
str = Replace(str, CHR(32), " ")
str = Replace(str, CHR(9), " ")
str=Replace(str, CHR(10) & CHR(10), "</P><P> ")
str=Replace(str, CHR(10), "<BR> ")
str=Replace(str, CHR(13), "")
if strtype=1 then
if isNumeric(str) then
str=clng(str)
else
str=1
end if
elseif strtype=2 then
str=replace(str,"<","<")
str=replace(str,">",">")
str=replace(str,CHR(34),""")
str=replace(str," "," ")
str=Replace(str, CHR(39), "'")
elseif strtype=4 then
str=replace(str,"&","&")
else
str=str
end if
checksql=str
end function
'# ---------------------------------------------
'# 函数:LeftStr(text,length)
'# 描述:代替left函数按照中文两个字符,字母一个字符的方式截长
'# 参数: text-字符串,length-要截取的长度
'#----------------------------------------------
Function LeftStr(text,length)
Dim l_t
l_t=""
Dim l_mt
Dim l_l
l_l=0
Dim l_c
For l_i= 1 To Len(text)
l_mt=mid(text,l_i,1)
l_c=Asc(l_mt)
If l_c<0 Then l_c=l_c+65536
If l_c > 255 Then
l_l=l_l+2
Else
l_l=l_l+1
End If
If l_l<=CLng(length) Then
l_t=l_t&l_mt
else
exit for
End If
Next
LeftStr=l_t
End Function
%>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。