<!-- #include file="../../admin/conn.asp" -->
<!-- #include file="../../admin/admin.asp" -->

<%call ling()
Call Head%>
<%If Request("SubmitFlag") <> "" Then

       
'----------------------------------------------------------------
'			生成config.asp文件
'----------------------------------------------------------------
dim YD_Config1,YD_File1

YD_File1= Server.MapPath("/inc/pz/wzpeizhi.asp")'生成config.asp文件路径

YD_Config1="<%"


YD_Config1=YD_Config1+chr(13)&chr(10)&"wzfb="""&Request.Form("wzfb")&""""
YD_Config1=YD_Config1+chr(13)&chr(10)&"%"&">"
Call CreatedTextFiles(YD_File1,YD_Config1)
Call cardz("配置成功","wzpeizhi.asp?sid="&sid&"&amp;saytk="&saytk&"")

Response.Write "成功设置！正在返回..."
Else
Call saycardd("配置")
%>
<%if saytk>1 then
Response.write "<form name=""form"" method=""post"" action=""wzpeizhi.asp?SubmitFlag=true&amp;sid="&sid&"&amp;saytk="&saytk&""">"%>
发表文章配置:<br/><select name="wzfb" value="<%=wzfb%>">
<option value="1">所有人包括游客可发表</option>
<option value="2" >仅会员和社区管理可发表</option>
<option value="3" >仅社区管理可发表</option>
<option value="4" >统统不许发只有后台可发表</option>
</select><br/>
<%response.write "<input type=""submit"" name=""Submit"" value=""配置文件""></form>"%>
<%else%>
发表文章配置:<br/><select name="wzfb<%=minute(now)%><%=second(now)%>" value="<%=wzfb%>">
<option value="1">所有人包括游客可发表</option>
<option value="2" >仅会员和社区管理可发表</option>
<option value="3" >仅社区管理可发表</option>
<option value="4" >所有人禁止仅后台发表</option>
</select><br/>

<anchor>[配置文件]
<go href="wzpeizhi.asp?SubmitFlag=true&amp;sid=<%=sid%>&amp;saytk=<%=saytk%>" method="post">

<postfield name="wzfb" value="$(wzfb<%=minute(now)%><%=second(now)%>)"/>
</go>
</anchor>
<%end if%>
<%end if%>

|<a href="/admin/bfsave.asp?sid=<%=sid%>&amp;saytk=<%=saytk%>&amp;turl=pz/wzpeizhi.asp&amp;zurl=bfconfig/wzpeizhi.asp&amp;url=<%=replace(r_url,"&","@@")%>&amp;add=1">备份</a>|<a href="/admin/bfsave.asp?sid=<%=sid%>&amp;saytk=<%=saytk%>&amp;turl=bfconfig/wzpeizhi.asp&amp;zurl=../inc/pz/wzpeizhi.asp&amp;url=<%=replace(r_url,"&","@@")%>">恢复</a>
<br/>

<br/>
<a href="/admin/saytkpz.asp?sid=<%=sid%>&amp;saytk=<%=saytk%>">[配置中心]</a><br/>
<a href="/admin/Configsell.asp?sid=<%=sid%>&amp;saytk=<%=saytk%>">[高级配置]</a><br/>
<a href="/admin/index.asp?sid=<%=sid%>&amp;saytk=<%=saytk%>">[后台管理]</a><br/>
<%call headsay()%>
