Файл: OldBlog by Axer/blog/captcha.php
Строк: 7
<?
//session_start();
$rand=rand(0,1);
if ($rand=='0'){
$bukafki1 = '12345';
$symbols1 = 2;
$val1=substr(str_shuffle($bukafki1),0, $symbols1);
$znak='прибавьте';
$bukafki2 = '123456789';
$symbols2 = 1;
$val2=substr(str_shuffle($bukafki2),0, $symbols2);
$capt=$val1+$val2;}
else {$bukafki1 = '12345';
$symbols1 = 2;
$val1=substr(str_shuffle($bukafki1),0, $symbols1);
$znak='отнимите';
$bukafki2 = '123456789';
$symbols2 = 1;
$val2=substr(str_shuffle($bukafki2),0, $symbols2);
$capt=$val1-$val2;}
$_SESSION['capt']=$capt;
?>