<?php
!defined('ADMIN')&&die("<meta http-equiv='refresh' content=0;url='/'>");
if(ADMIN<15)Js_to("没有权限！",URL._1.D.L.D);
FN("title","站点设置");
global $z,$i,$title;
$r=GL($z->R("setting"),4);
_F("top");
?>
<style>
var i{ display:block; width:100%;height:1px;overflow:hidden}
</style>
<tt id="tw"></tt>
<fieldset>
<legend><h1><b><var><img src="system/img/left.gif" /></var><dfn class="hide"><img src="system/img/right.gif" /></dfn></b>　<a href="<?php echo URL._1.D._2.D?>"><?php echo $title?></a></h1></legend>
<form action="" method="post" class="form">
<tt style="height:10px"></tt>
<ul>
<dt>网站名称:</dt>
<dd><li><input name="name" value="<?php echo $r['name']?>" class="w7" /></li></dd>
<tt></tt></ul>
<ul>
<dt>缓存更新:</dt>
<dd><li><input name="hc" value="<?php echo intval($r['hc'])?>" /> 秒</li></dd>
<tt></tt></ul>
<ul>
<dt>默认后缀:</dt>
<dd>
<select size="1" name="hz">
<?php
$hz=array('.html','.htm','.php','.asp','.jsp','.cgi','/','.aspx','.shtml','');
foreach($hz as $v)
	echo '<option '.($r['hz']==$v?' selected':'').' value="'.$v.'">'.($v?$v:'无').'</option>';
?>
</select>
</dd>
<tt></tt></ul>
<ul>
<dt>时区设置:</dt>
<dd>
<select size="1" name="sq">
<?php echo wd(SQ)?>
</select>
</dd>
<tt></tt></ul>
<var><tt></tt></var>
<div class="fieldset sp"><big><samp>&#9682;</samp><span class="del">&#9681;</span>文章审核</big>
<tt></tt>
<div>
<ul>
<dt>审核设置:</dt>
<dd>
<select size="1" name="sh">
<option<?php if($r['sh']==1)echo ' selected'?> value="1">不需要审核</option>
<option<?php if($r['sh']==0)echo ' selected'?> value="0">必须经过审核</option>
</select> 会员发帖或投稿，是否需要经过审核
</dd>
</ul>
<var><i></i></var>
</div></div>
<var><tt></tt></var>
<var><tt></tt></var>
<div class="fieldset sp"><big><samp>&#9682;</samp><span class="del">&#9681;</span>评论设置</big>
<tt></tt>
<div>
<ul>
<dt>评论状态:</dt>
<dd>
<select size="1" name="pl_a" onchange="clk_n('.pl_b',this)" id="pl_a">
<option<?php if($r['pl_a']==0)echo ' selected'?> value="0">禁止评论</option>
<option<?php if($r['pl_a']==1)echo ' selected'?> value="1">允许评论</option>
</select>
</dd>
<tt></tt></ul>
<ul class="pl_b <?php if($r['pl_a']==0)echo ' del'?>" id="pl_b">
<dt>审核:</dt>
<dd>
<select size="1" name="pl_b">
<option<?php if($r['pl_b']==0)echo ' selected'?> value="0">评论需要经过审核</option>
<option<?php if($r['pl_b']==1)echo ' selected'?> value="1">评论无需审核</option>
</select>
</dd>
<tt></tt></ul>
<ul class="pl_b">
<dt>评论验证:</dt>
<dd>
<select size="1" onchange="clk_n('#yz_a',this)" id="yz_aa">
<option<?php if($r['yz_a'])echo ' selected'?> value="1">开启评论验证码</option>
<option<?php if(!$r['yz_a'])echo ' selected'?> value="0">关闭评论验证码</option>
</select>
</dd>
<tt></tt></ul>
<ul class="pl_b <?php if($r['pl_a']==0||$r['yz_a']==0)echo ' del'?>" id="yz_a">
<dt>验证码长度:</dt>
<dd><li><input name="yz_a" value="<?php echo intval($r['yz_a'])?>" /> 长度值3-20，0为关闭</li></dd>
<tt></tt></ul>
<ul>
<dt>评论网址:</dt>
<dd>
<select size="1" name="pl_d">
<option<?php if($r['pl_d']==0)echo ' selected'?> value="0">禁止填写评论人主页网址</option>
<option<?php if($r['pl_d']==1)echo ' selected'?> value="1">允许填写评论人主页网址</option>
</select>
</dd>
</ul>
<var><i></i></var>
</div></div>
<ul><tt></tt></ul>
<var><tt></tt></var>
<div class="fieldset sp"><big><samp>&#9682;</samp><span class="del">&#9681;</span>注册设置</big>
<tt></tt>
<div>
<ul>
<dt>会员注册:</dt>
<dd>
<select size="1" name="hy" onchange="clk_n('.hy_b',this)" id="hy" >
<option<?php if($r['hy']==0)echo ' selected'?> value="0">关闭会员注册</option>
<option<?php if($r['hy']==1)echo ' selected'?> value="1">开启会员注册</option>
</select>
</dd>
<tt></tt></ul>
<ul class="hy_b del">
<dt>注册验证:</dt>
<dd >
<select size="1" onchange="clk_n('#yz_b',this)" id="yz_bb">
<option<?php if($r['yz_b']>0)echo ' selected'?> value="1">开启注册验证码</option>
<option<?php if($r['yz_b']==0)echo ' selected'?> value="0">关闭注册验证码</option>
</select>
</dd>
<tt></tt></ul>
<ul class="hy_b" id="yz_b">
<dt>验证码长度:</dt>
<dd><li><input name="yz_b" value="<?php echo intval($r['yz_b'])?>" /> 长度值3-20</li></dd>
<tt></tt></ul>
<ul class="hy_b<?php if($r['hy']==0)echo ' del'?>">
<dt>快速注册:</dt>
<dd>
<select size="1" name="pl_e">
<option<?php if($r['pl_e']==0)echo ' selected'?> value="0">关闭评论带Email会员快速注册</option>
<option<?php if($r['pl_e']==1)echo ' selected'?> value="1">启用评论带Email会员快速注册</option>
</select>
</dd>
</ul>
<var><i></i></var>
</div></div>
<ul><tt></tt></ul>
<var><tt></tt></var>
<div class="fieldset sp"><big><samp>&#9682;</samp><span class="del">&#9681;</span>登录设置</big>
<tt></tt>
<div>
<ul>
<dt>登录验证:</dt>
<dd>
<select size="1" onchange="clk_n('#yz_d',this)" id="yz_c">
<option<?php if($r['yz_c']>0)echo ' selected'?> value="1">开启登录验证码</option>
<option<?php if($r['yz_c']==0)echo ' selected'?> value="0">关闭登录验证码</option>
</select>
</dd>
</ul>
<ul id="yz_d"<?php if($r['yz_c']==0)echo ' class="del"'?>>
<tt></tt>
<dt>验证码长度:</dt>
<dd><li><input name="yz_c" value="<?php echo intval($r['yz_c'])?>" class="w2" /> 长度值3-20，0为关闭</li></dd>
</ul>
<var><i></i></var>
</div></div>
<ul><tt></tt></ul>
<var><tt></tt></var>
<div class="fieldset sp"><big><samp>&#9682;</samp><span class="del">&#9681;</span>访问设置</big>
<tt></tt>
<div>
<ul>
<dt>网站访问:</dt>
<dd>
<select size="1" name="gz_a" onchange="clk_n('#gz_b',this)" id="gz_a">
<option<?php if($r['gz_a']==1)echo ' selected'?> value="1">暂时关闭网站</option>
<option<?php if($r['gz_a']==0)echo ' selected'?> value="0">开启网站</option>
</select>
</dd>
</ul>
<ul id="gz_b"<?php if($r['gz_a']==0)echo ' class="del"'?>>
<tt></tt><dt>关站提示:</dt>
<dd><li><input name="gz_b" value="<?php echo $r['gz_b']?>" class="w8" /></li></dd>
</ul>
<tt></tt>
</div></div>
<ul><tt></tt></ul>
<ul>
<dt>robots.txt:</dt>
<dd><li><textarea name="robots" rows="4" class="w8" placeholder="告诉搜索引擎哪些页面可以抓取，哪些页面不能抓取，不懂请忽略。"><?php echo $r['robots']?></textarea> <img src="system/img/hlp_1.png" onclick="hp('robots')"></li></dd>
<tt></tt></ul>
<input name="cgi" type="hidden" value="setting" />
<ul>
<big><input type="submit" value="保 存 设 置"/></big>
</ul>
<tt></tt>
</form>
</fieldset>
<?php
_F("end");