软件上传问题:




admin_down.asp文件:

修改的地方有俩处:
I:sub joekoe_chk_edit()

源代码:
<td>本站下载:</td>
<td><input type=text name=url value='<%response.write rs("url")%>' size=60 maxlength=200><%response.write redx%></td>
</tr>

…………
<tr>
<td><%response.write tit_fir%>图片:</td>
<td><input type=text name=pic value='<%response.write pic%>' size=40 maxlength=100>   <a href='upload.asp?uppath=<%response.write index_url%>&upname=<%response.write ispic%>&uptext=pic' target=upload_frame>上传图片</a>  <a href='upload.asp?uppath=<%response.write index_url%>&upname=<%response.write left(index_url,1)%>&uptext=remark' target=upload_frame>上传至内容</a></td>
</tr>
<tr>
<td>上传图片:</td>
<td><iframe frameborder=0 name=upload_frame width='100%' height=30 scrolling=no src='upload.asp?uppath=<%response.write index_url%>&upname=<%response.write ispic%>&uptext=pic'></iframe></td>
</tr>

俩段代码不在一起。。现在合二为一:
修改后:

<td>本站下载:</td>
<td><input type=text name=url value='<%response.write rs("url")%>' size=60 maxlength=200><%response.write redx%>  <a href='upload.asp?uppath=down&upname=<%response.write ispic%>&uptext=url' target=upload_frame>点击上传</a></td>
</tr>
<tr>
<td><%response.write tit_fir%>图片:</td>
<td><input type=text name=pic value='<%response.write pic%>' size=60 maxlength=100>   <a href='upload.asp?uppath=down&upname=<%response.write ispic%>&uptext=pic' target=upload_frame>  上传图片</a></td>
</tr>
<tr>
<td>文件上传:</td>
<td><iframe frameborder=0 name=upload_frame width='100%' height=30 scrolling=no src=''></iframe></td>
</tr>

还有一处:
II:sub joekoe_chk_add()
和上面重复^_^

接下来是关键的地方:
upload.asp文件:

311行
if instr(up_text,"pic")>0 then
改为 if instr(up_text,"pic")>0 or instr(up_text,"url")>0 then

文章来自: Original
引用通告: 查看所有引用 | 我要引用此文章
Tags:
相关日志:
评论: 8 | 引用: 3 | 查看次数: 622
发表评论
昵 称:
密 码: 游客发言不需要密码.
内 容:
验证码: 验证码
选 项:
虽然发表评论不用注册,但是为了保护您的发言权,建议您注册帐号.
字数限制 20 字 | UBB代码 关闭 | [img]标签 关闭