<?php
!defined('A')&&die("<meta http-equiv='refresh' content=0;url='/'>");if(_2=='img'){
FN("title","验证码难度设置");
global $z,$i,$title;
$r=$z->R("setting");
_F("top");?>
<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>
<?php
for($i=1;$i<10;$i++)
	echo '<tt></tt><label><input type="radio" value="'.$i.'" '.($r['yzm']==$i?'checked':'').' name="yzm"> '.$i.'级</label>';
?>
</dd>
<tt></tt></ul>
<input name="cgi" type="hidden" value="setting" />
<ul>
<big><input type="submit" value="保 存 设 置"/></big>
<tt></tt></ul>
<ul>
<dt>说明;</dt>
<dd><p>这里的验证码难度设置并不是设置验证码的长度，而是几个验证码字符组合在一起时候辨认的难度，数字级别越大，验证码识别的难度越高。如果需要设置验证码的长度，请点击<a href="<?php echo URL?>admin/sz<?php echo HZ?>"><img src="system/img/setting_1.png"><b>站点设置</b></a>。</p></dd>
<tt></tt></ul>
<tt></tt>
</form>
</fieldset>
<?php
_F("end");}else{$b='';if(!defined('_3'))define('_3',4);$a=intval(_3)<3||intval(_3)>20?4:intval(_3);unset($_SESSION["YZ"]);$c=M.S.strtoupper(S);for($i=0;$i<$a;$i++){$d=mt_rand(0,strlen($c)-1);$b.=$c[$d];}$_SESSION["YZ"]=$b;$e=imagecreate($a*18,22);$c=array(imagecolorallocate($e,0xf3,0x61,0x61),imagecolorallocate($e,0x53,0x68,0xbd),imagecolorallocate($e,0x6b,0xc1,0x46));$y=$c[mt_rand(0,2)];imagefill($e,0,0,imagecolorallocate($e,0xf5,0xf5,0xf5));for($i=0;$i<$a;$i++)imagettftext($e,mt_rand(14,14+YZM),mt_rand(-YZM*10,YZM*10),ceil(16-YZM/2)*$i+mt_rand(0,5/YZM),18+mt_rand(-YZM,YZM),$y,T(array(Q.D.E,B)),$b[$i]);imagepng($e);imagedestroy($e);}