Вход Регистрация
Файл: profi_wm/captcha.php
Строк: 19
<?
        
        
        
        
        
          session_start
();
          
          
header("Content-Type: image/png");
          
          
$_SESSION['control'] = rand(0,9).rand(0,9).rand(0,9).rand(0,9);
          
          
$code $_SESSION['control'];
          
          
$img=imagecreatetruecolor(5020);
          
          
$x1=0;
          
          
$x2=60;
          
          
$y1=rand(030);
          
          
$y2=rand(030);
          
          
imagefill($img000xffffff);
          
          
$textcolor imagecolorallocate ($img5382108);
          
          
imageline($img$x1$y1$x2$y2$textcolor);
          
          
$x1=rand(050);
          
          
$x2=rand(050);
          
          
$y1=0;
          
          
$y2=30;
          
          
imageline($img$x1$y1$x2$y2$textcolor);
          
          
imagestring($img4123$code$textcolor);
          
          
imagepng($img);
          
          
imagedestroy($img);          







?>
Онлайн: 0
Реклама