Вход Регистрация
Файл: ewar/protect.php
Строк: 36
<?php

    
include("includes/config.php");
    
    
$pkod ereg_replace("[^0-9]","",$_SESSION['protect']);
    
$img imagecreate(52,22);
    
$bgcolor imagecolorallocate($img,65,65,65);
    
$line_color imagecolorallocate($img,000,000,000);
    
$color1 imagecolorallocate($img,mt_rand(0,204),mt_rand(0,204),mt_rand(0,204));
    
$color2 imagecolorallocate($img,mt_rand(0,204),mt_rand(0,204),mt_rand(0,204));
    
$color3 imagecolorallocate($img,mt_rand(0,204),mt_rand(0,204),mt_rand(0,204));
    
    
imagettftext($img,16,mt_rand(1,10),mt_rand(7,10),mt_rand(19,21),$color1,"img/font.ttf",$pkod[0]);
    
imagettftext($img,16,mt_rand(1,10),mt_rand(20,22),mt_rand(19,21),$color2,"img/font.ttf",$pkod[1]);
    
imagettftext($img,16,mt_rand(1,10),mt_rand(31,34),mt_rand(19,21),$color3,"img/font.ttf",$pkod[2]);
    
imageline($img,0,0,52,0,$line_color);
    
imageline($img,0,0,0,22,$line_color);
    
imageline($img,51,0,51,22,$line_color);
    
imageline($img,0,21,52,21,$line_color);
    
    
header("Content-type: image/gif");
    
    
imagegif ($img);
    
imagedestroy($img);

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