Вход Регистрация
Файл: OldBlog by Axer/blog/captcha2.php
Строк: 18
<?php 
session_start
(); 
$ch = array("a","b","c","D","e","F","G","h","i","J","k","L","m","n","O","4","1","Z""B""9""2");//цифры и буквы капчи капчи 
$cap ''
for(
$i=0$i 6$i++){ 
$cap .= $ch[rand(020)]; 

$_SESSION['cap'] = $cap
$img imagecreate('60''30'); 
$back imagecolorallocate($imgrand(100255), rand(100255), rand(100255)); 
$black imagecolorallocate($imgrand(0255), rand(0255), rand(0255)); 
imagestring($imgrand(39), rand(06), rand(06), $cap$black); 
header('Content-type: image/png'); 
imagepng($img); 
imagedestroy($img); 
?>
Онлайн: 0
Реклама