[急死我了]希望大家多帮帮忙!就一个小忙,跪求~~~感谢!!所有虎币求助~

[复制链接]
我有一个商城程序~都是完整的,后台有个[网站参数设置]功能,但里面任何资料都改不了!其他的功能都可以改!就这个里面改不了!我估计是代码把这个设置了!摸索了半天还是不行,特来求助大家啊!!望大家能够帮帮忙!!急着想用,谢谢!我把代码发下来给大家看看:
<!--#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
小弟不胜言谢~~~~~把所有虎币都给他!!!
在线等~~~
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏
收藏0
本帖违规,我要举报
举报本帖
免责声明:
本站资源均来源于网络或是会员上传,版权和著作权归原作者所有,如有不愿意被转载,请点击这里通知我们第一时间删除!
所有资源仅供下载后在本地学习研究参考使用!您必须在下载资源后的24个小时之内,从您的电脑中彻底删除。
所有资源不能用于任何商业和非法目的,否则一切后果请用户自负。如您需要商用,请支持和购买正版,本站不对您的使用负任何责任!
会员所发布的信息中如有涉及到具体的第三方个人(单位/公司)隐私、商业秘密等,侵犯其权益,对其构成不良影响的,本站有权不做通知直接删除!

精彩评论6

跳转到指定楼层
6#
fynaa 发表于 2008-3-18 13:09:54 | 只看该作者
看看你的代码:

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")&"|"

修改站点信息记录的第一项,是不是掉了 .form  ????
完整的应该是
rs("F_SiteInfo")=checkstr(request.form("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")&"|"
#地窖
 楼主| nogya 发表于 2008-3-13 10:22:46 | 只看该作者
我看了几个小时都没找到原因~~~~55555555555555555555
#地板
jinxibing 发表于 2008-3-12 12:09:43 | 只看该作者
找出修改页面就可以,查看一下就清楚了..
#板凳
 楼主| nogya 发表于 2008-3-12 09:46:18 | 只看该作者
楼上的朋友!!能不能帮我解决!!实在不行我把程序发给你们!你们帮我搞搞!!谢谢了1!
加我QQ:21209885
#沙发
百迈中国 发表于 2008-3-12 08:59:44 | 只看该作者
找出修改页面就可以,查看一下就清楚了..
#楼主
double 发表于 2008-3-11 14:20:10 | 只看该作者
你删的那段只是检测你的管理级别而已,只要你的登陆信息正确,有没有都无所谓,对解决你的问题没帮助。

但是如果叫我这样看,我也不明白怎么修改,因为我不熟悉这样修改,我通常都是边演示边修改的:lol

因为这个页面显示出错,不代表就是他错了,有可能是他的包含文件出错

[ 本帖最后由 double 于 2008-3-11 14:22 编辑 ]
您需要登录后才可以回帖 登录 | 注册帐号

本版积分规则

  • 金点子勋章

    金点子勋章
  • 超级版主勋章

    超级版主勋章
  • 优秀管理者勋章

    优秀管理者勋章
  • 中坚力量勋章

    中坚力量勋章
  • 搜虎美女勋章

    搜虎美女勋章
  • 特殊贡献勋章

    特殊贡献勋章

关注0

粉丝3

帖子1

发布主题
15年专注源码提供
侵权投诉处理

点击这里投诉侵权

周一至周日10:00-21:00

反馈建议/违规信息举报

webmaster@souho.net 在线客服咨询

扫描二维码关注我们

严禁任何人以任何形式在本站发表与我国法律相抵触的言论!本站资源仅供本地学习研究,禁止用于任何违法犯罪活动!

搜虎源码所有资源来自网络收集整理,版权和著作权归原作者所有,仅供本地研究学习。若有侵权,请联系管理员及时删除!

所有资源严禁用于任何商业目的,否则一切后果请用户自负。如您需要商用,请支持和购买正版,本站不对您的使用负任何责任!

如会员所发布的信息中有涉及到具体的第三方个人(单位/公司)隐私、商业秘密等,侵犯其权益,对其构成不良影响的,本站有权不做通知将该信息予以直接删除处理!

网站备案号: 鄂ICP备17009394号-2