%
if Request("method") = 1 then
articleid = Request.form("articleid")
face = Request.form("face")
content = Qcdn.checkStr(Trim(Request.form("content")))
username = Qcdn.checkStr(Trim(Request.form("username")))
password = Qcdn.checkStr(Trim(Request.form("password")))
if Request.Cookies("qcdn")("user_name") = "" then
password = md5(password,16)
end if
ip = Request.ServerVariables("REMOTE_ADDR")
Sql = "select Unid from article_User where username = '"& username &"' and password = '"& password &"'"
set rs = conn.execute(sql)
if rs.eof and rs.bof then
response.write ""
rs.close : set rs = nothing
response.end
else
sql = "Insert into article_remark(articleid,username,content,faceid,intime,ip)values("& articleid &",'"& username &"','"& content &"',"& face &",Now(),'"& ip &"')"
conn.execute(sql)
Response.write ""
response.end
end if
elseif Request("method") = 2 then
if Session("flag") = "" or Session("Admin_Name") = "" then
Session("flag") = ""
Session("Admin_Name") = ""
Errmsg = "
你不是系统管理员。"
call Qcdn.Err_List(errmsg,1)
Response.end
end if
unid = CLng(Request("unid"))
Unid = qcdn.sqlcheck(Unid)
sql = "update article_info set Audit = 0 where Unid in ("& unid &")"
conn.execute(sql)
Response.Write("")
Response.End()
elseif Request("method") = 3 then
unid = CLng(Request("unid"))
Response.Write("")
Response.End()
end if
if Request("Unid") = "" then
Errmsg = "发现异常错误。传递的文章编号为空。"
call Qcdn.Err_List(errmsg,3)
Response.End()
else
Unid = CLng(Request("Unid"))
Unid = qcdn.sqlcheck(Unid)
end if
ad = Request("ad")
Sql = "Select title,content,Nclassid,classid,Nkey,hits,writer,writefrom,Intime,Popedom from article_info where Unid = " & Unid
Set Rs = conn.execute(Sql)
if Rs.eof and Rs.bof then
Errmsg = "发现异常错误。错误编号为: error 108。请和管理员联系解决问题。"
call Qcdn.Err_List(errmsg,3)
Response.End()
else
Popedom = Rs(9)
if AddPopedom then
if Popedom = 1 then
if Request.Cookies("qcdn")("user_name") = "" then
Response.write ("")
Response.end
end if
end if
end if
sql = "Update article_info set hits=hits+1 where Unid = " & Unid
Conn.execute(sql)
title = Rs(0)
content = Rs(1)
Nclassid = Rs(2)
classid = Rs(3)
Nkey = Rs(4)
hits = Rs(5)
writer = Rs(6)
writefrom = Rs(7)
Intime = Rs(8)
end if
Rs.close
%>
|
<%=NetName%> → <%=Qcdn.Classlist(Classid)%> → <%=Qcdn.Classlist(Nclassid)%>
|
<%=Qcdn.HTMLcode(title)%>
|
<%
if AddWriter then
Response.write("作者:")
if writer<>"" then
response.Write(writer)
response.write("")
end if
end if
if ad = 1 then
if Session("flag") = "" or Session("Admin_Name") = "" then
Session("flag") = ""
Session("Admin_Name") = ""
Errmsg = "你没有登录系统。你以登陆超时。点击这里重新登陆"
call Qcdn.Err_List(errmsg,1)
Response.end
end if
Response.write("审核 修改")
end if
%>
|
<%=Qcdn.Ubbcode(content)%>
|
来源:
<%if writefrom<>"" then response.Write(writefrom)%>
阅读:<%=hits%> 次
日期:<%=Intime%>
|
|
<%
if AddScroll then
Response.write ""
Response.write "【 双击滚屏 】 "
end if
if EmailFlag<>0 then
Response.write "【 推荐朋友 】 "
end if
if AddComment then
Response.write "【 评论 】 "
end if
if AddFavorite then
Response.write "【 收藏 】 "
end if
if AddPrint then
Response.write "【 打印 】 "
end if
if AddClose then
Response.write "【 关闭 】"
end if
%>
【 字体:大 中
小 】 |
<%
sql = "Select Unid,title from article_info where Unid = "& Unid-1
Set Rs = conn.execute(sql)
if Rs.eof and Rs.bof then
Response.write "上一篇:已经没有了。"
else
Response.write "上一篇:"& Qcdn.HTMLcode(rs(1)) &""
end if
%>
<%
rs.close
sql = "Select Unid,title from article_info where Unid = "& Unid+1
Set Rs = conn.execute(sql)
if Rs.eof and Rs.bof then
Response.write "下一篇:已经没有了。"
else
Response.write "下一篇:"& Qcdn.HTMLcode(rs(1)) &""
end if
rs.close
%>
|
|
| >> 相关文章 |
|
<%
sql = "Select top 8 Unid,title from article_info where Nkey = '"& Nkey &"' and Audit = 0 and Unid<>"& Unid &" order by Unid desc"
Set Rs = conn.execute(sql)
if Rs.eof and Rs.bof then
Response.Write("没有相关文章。")
else
do while not rs.eof
Response.Write("")
rs.movenext
loop
end if
rs.close
%>
|
<%if AddComment then%>
| 发表评论 |
<%end if%>