我有一个商城程序~都是完整的,后台有个[网站参数设置]功能,但里面任何资料都改不了!其他的功能都可以改!就这个里面改不了!我估计是代码把这个设置了!摸索了半天还是不行,特来求助大家啊!!望大家能够帮帮忙!!急着想用,谢谢!我把代码发下来给大家看看:
<!--#include file=\"../Conn.asp\"-->
<!--#include file=\"../Include/Char.asp\" -->
<!--#include file=\"../Include/const.asp\" -->
<!--#include file=\"Admin_IsLogin.asp\" -->
<%
if Request.QueryString(\"action\")=\"save\" then
set rs=server.createobject(\"adodb.recordset\")
sql=\"select F_SiteInfo from T_Config where F_ID=1\"
rs.open sql,conn,1,3
rs(\"F_SiteInfo\")=checkstr(request(\"site_title\"))&\"|\"&checkstr(request.form(\"site_url\"))&\"|\"&checkstr(request.form(\"site_mail\"))&\"|\"&checkstr(request.form(\"site_logo\"))&\"|\"&checkstr(request.form(\"site_banner\"))&\"|\"&checkstr(request.form(\"copyright\"))&\"|\"&checkstr(request.form(\"upfile\"))&\"|\"&checkstr(request.form(\"template\"))&\"|\"&checkstr(request.form(\"admin_pagesize\"))&\"|\"&request.form(\"runtime\")&\"|\"&checkstr(request.form(\"guestbook\"))&\"|\"&checkstr(request.form(\"pagesize\"))&\"|\"&checkstr(request.form(\"uploadsize\"))&\"|\"&checkstr(lcase(request.form(\"file_ext\")))&\"|\"&request.form(\"editmode\")&\"|\"&request.form(\"editfso\")&\"|\"
rs.update
clearapp()\'清除cache内容
rs.close
set rs=nothing
Response.Redirect \"admin_Config.asp\"
end if
%>
<html>
<head>
<title></title>
<meta http-equiv=\"Content-Type\" c>
<link href=\"Images/Style.css\" rel=\"stylesheet\" type=\"text/css\">
</head>
<BODY leftMargin=0 topMargin=0 marginwidth=\"0\" marginheight=\"0\">
<TABLE width=100% height=96% border=0 align=\"center\" cellPadding=0
cellSpacing=0 >
<TBODY>
<TR>
<TD width=\"100%\" valign=\"top\" align=\"center\">
<%
admin_flag=\",0|2|0,\"
if instr(session(\"flag\"),admin_flag)=0 or isnull(session(\"flag\"))=true then
Response.write \"<br><br><br><br><b><font color=red>对不起,您没有管理本页面的权限!</font></B>\"
Response.end
end if
%>
<br>
<form name=\"form1\" method=\"post\" action=\"admin_Config.asp?action=save\">
<table class=tableBorder width=\"95%\" border=\"0\" align=\"center\" cellpadding=\"5\" cellspacing=\"1\">
<tr>
<th height=21 colspan=\"17\" >【网站基本设置】</th>
</tr>
<tr>
<td class=forumRow height=\"20\" width=\"22%\">网站标题:</td>
<td class=forumRowHighlight height=\"20\" colspan=\"7\" width=\"78%\">
<input type=\"text\" name=\"site_title\" size=\"35\" class=INPUT value=\"<%=site_info(0)%>\">
<label for=HighLight ></label> </td>
</tr>
<tr>
<td class=forumRow height=\"20\" width=\"22%\">网站URL:</td>
<td class=forumRowHighlight height=\"20\" colspan=\"7\" width=\"78%\">
<input type=\"text\" name=\"site_url\" class=INPUT value=\"<%=site_info(1)%>\" size=\"35\">
</td>
</tr>
<tr>
<td class=forumRow height=\"20\" width=\"22%\">站长信箱:</td>
<td class=forumRowHighlight height=\"20\" colspan=\"7\" width=\"78%\">
<input type=\"text\" name=\"site_mail\" size=\"35\" class=INPUT value=\"<%=site_info(2)%>\">
</td>
</tr>
<tr>
<td class=forumRow width=\"22%\" height=\"20\">网站LOGO</td>
<td class=forumRowHighlight height=\"20\" colspan=\"7\" width=\"78%\">
<input type=\"text\" name=\"site_logo\" size=\"35\" class=INPUT value=\"<%=site_info(3)%>\">
</td>
</tr>
<tr>
<td class=forumRow height=\"20\" width=\"22%\">网站Banner</td>
<td class=forumRowHighlight height=\"20\" colspan=\"7\" width=\"78%\">
<textarea name=\"site_banner\" cols=\"45\" class=INPUT rows=\"3\"><%=site_info(4)%></textarea>
</td>
</tr>
<tr>
<td class=forumRow width=\"22%\" height=\"20\">版权信息:</td>
<td class=forumRowHighlight height=\"20\" colspan=\"7\" width=\"78%\">
<input type=\"text\" name=\"copyright\" size=\"35\" class=INPUT value=\"<%=site_info(5)%>\">
</td>
</tr>
<tr>
<td class=forumRow height=\"20\" width=\"22%\">上传文件目录:</td>
<td class=forumRowHighlight height=\"20\" colspan=\"7\" width=\"78%\">
<input type=\"text\" name=\"upfile\" size=\"35\" class=INPUT value=\"<%=site_info(6)%>\">
</td>
</tr>
<tr>
<td class=forumRow height=\"20\" width=\"22%\">模板文件目录:</td>
<td class=forumRowHighlight height=\"20\" colspan=\"7\" width=\"78%\">
<input type=\"text\" name=\"template\" size=\"35\" class=INPUT value=\"<%=site_info(7)%>\">
</td>
</tr>
<tr>
<td class=forumRow height=\"20\" width=\"22%\">页面记录数:</td>
<td class=forumRowHighlight height=\"20\" colspan=\"7\" width=\"78%\">后台:
<input type=\"text\" name=\"admin_pagesize\" size=\"2\" class=INPUT value=\"<%=site_info(8)%>\">
前台:
<input type=\"text\" name=\"pagesize\" size=\"2\" class=INPUT value=\"<%=site_info(11)%>\">
</td>
</tr>
<tr>
<td class=forumRow height=\"20\" width=\"22%\">页面执行时间:</td>
<td class=forumRowHighlight height=\"20\" colspan=\"7\" width=\"78%\">
<input type=\"radio\" name=\"runtime\" value=\"1\" <%if cint(site_info(9))=1 then response.write \"checked\" end if%>>
显示
<input type=\"radio\" name=\"runtime\" value=\"0\" <%if cint(site_info(9))=0 then response.write \"checked\" end if%>>
不显示 </td>
</tr>
<tr>
<td class=forumRow height=\"26\" width=\"22%\">过滤字符:</td>
<td class=forumRowHighlight height=\"26\" colspan=\"7\" width=\"78%\">
<input type=\"text\" name=\"guestbook\" size=\"50\" class=INPUT value=\"<%=site_info(10)%>\">
使用逗号\",\"分隔 </td>
</tr>
<tr>
<td class=forumRow height=\"20\" width=\"22%\">上传文件大小限制:</td>
<td class=forumRowHighlight height=\"20\" colspan=\"7\" width=\"78%\">
<input type=\"text\" name=\"uploadsize\" size=\"3\" class=INPUT value=\"<%=site_info(12)%>\">
kb </td>
</tr>
<tr>
<td class=forumRow height=\"20\" width=\"22%\">上传文件类型</td>
<td class=forumRowHighlight height=\"20\" colspan=\"7\" width=\"78%\">
<input type=\"text\" name=\"file_ext\" size=\"35\" class=INPUT value=\"<%=site_info(13)%>\">
</td>
</tr>
<tr>
<td class=forumRow height=\"20\" width=\"22%\">默认编辑模式</td>
<td class=forumRowHighlight height=\"20\" colspan=\"7\" width=\"78%\">
<input type=\"radio\" name=\"editmode\" value=\"1\" <%if cint(site_info(14))=1 then response.write \"checked\" end if%>>
HTML模式
<input type=\"radio\" name=\"editmode\" value=\"0\" <%if cint(site_info(14))=0 then response.write \"checked\" end if%>>
UBB模式</td>
</tr>
<tr>
<td class=forumRow height=\"20\" width=\"22%\">文章生成静态网页</td>
<td class=forumRowHighlight height=\"20\" colspan=\"7\" width=\"78%\">
<input type=\"radio\" name=\"editfso\" value=\"1\" <%if cint(site_info(15))=1 then response.write \"checked\" end if%>>
生成页
<input type=\"radio\" name=\"editfso\" value=\"0\" <%if cint(site_info(15))=0 then response.write \"checked\" end if%>>
不生成</td>
</tr>
<tr>
<td class=forumRow height=\"20\" width=\"22%\"> </td>
<td class=forumRow height=\"20\" colspan=\"7\" width=\"78%\"> <input type=\"submit\" name=\"Submit\" value=\"提交\" class=button>
<input type=\"reset\" name=\"Submit2\" value=\"重置\" class=button> </td>
</tr>
</table>
</form>
</TD>
</TR>
</TBODY>
</TABLE>
</body>
</html>
有人先告诉我删除
<%
admin_flag=\",0|2|0,\"
if instr(session(\"flag\"),admin_flag)=0 or isnull(session(\"flag\"))=true then
Response.write \"<br><br><br><br><b><font color=red>对不起,您没有管理本页面的权限!</font></B>\"
Response.end
end if
%>
就可以了,但是我删除了还是改不了!!!
大家帮帮忙啊1!!我QQ:21209885
小弟不胜言谢~~~~~把所有虎币都给他!!!
在线等~~~ |