<%@ page contentType="text/html; charset=gb2312"%>
<%@ page import="java.sql.*"%> 
<%@ page import="java.util.*"%>
<%@ page import="java.util.Date"%>
<%@ page import="java.text.*"%>
<%@ include file="../admin/checkmaster.jsp"%>
<%@ include file="../inc/conn.jsp"%>
<%
String sql,id,domain,content;
ResultSet rs;
id = request.getParameter("id");
domain = request.getParameter("domain");
if(domain!=null){
     sql="update config set content='"+domain+"' where kind=2";
     stmt.executeUpdate(sql);
     out.print ("<br><br><br><br><br><center>设置完成</center>");
     }
else{
%>
<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" size="30">
    <input type="submit" name="Submit" value="提交">
  </form>
  <p>&nbsp;</p>
</div>
</body>
</html>
<%}%>