<!-- #include file="../admin/check_master.asp" -->
<!--#include file="../inc/conn.asp" -->
<%
str0="select * from config where kind=2"
set rs0=Server.CreateObject("ADODB.Recordset")
if request("domain")<>"" then
   set rs=Server.CreateObject("ADODB.Recordset")
   str="select * from config where kind=2"
   rs.Open str,Conn,1,3
   if rs.eof then
      sql="insert into config(content,kind) values('"&request("domain")&"',2)"
   else
      sql="update config set content='"&request("domain")&"' where kind=2"
   end if
   conn.execute(sql)
   rs.close
   set rs=nothing
   response.write "<br><br><br><br><br><center>设置完成</center>"
end if
rs0.Open str0,Conn,1,3
if not rs0.eof then
content=rs0("content")
end if
rs0.close
set rs0=nothing
conn.close
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>图片类型设置</title>
<link href="../css/XMWUYE.CSS" rel="stylesheet" type="text/css">
</head>

<body>
<div align="center">
  <p>&nbsp;</p>
  <p>此处设置论坛站点允许上传的图片类型（即发贴回贴中允许上传的图片类型）</p>
  <p>注意：多个类型一定要用“|”分开</p>
  <form name="form1" method="post" action="">
    请输入图片类型: 
    <input name="domain" type="text" id="domain" value="<%=content%>" size="30">
    <input type="submit" name="Submit" value="提交">
  </form>
  <p>&nbsp;</p>
</div>
</body>
</html>
