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

    
include("includes/config.php");
    
    
$pkod ereg_replace("[^0-9]","",$_SESSION['protect']);
    
$img imagecreate(50,22);
    
$bgcolor imagecolorallocate($img,255,245,203);
    
$fon imagecolortransparent($img,$bgcolor);
    
    
imagefill($img,0,0,$fon);
    
    
$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));
    
$color4 imagecolorallocate($img,mt_rand(0,204),mt_rand(0,204),mt_rand(0,204));
    
    
imagettftext($img,16,mt_rand(1,10),mt_rand(1,2),mt_rand(17,20),$color1,"img/font.ttf",$pkod[0]);
    
imagettftext($img,16,mt_rand(1,10),mt_rand(13,14),mt_rand(17,20),$color2,"img/font.ttf",$pkod[1]);
    
imagettftext($img,16,mt_rand(1,10),mt_rand(25,26),mt_rand(17,20),$color3,"img/font.ttf",$pkod[2]);
    
imagettftext($img,16,mt_rand(1,10),mt_rand(37,38),mt_rand(17,20),$color4,"img/font.ttf",$pkod[3]);
    
    
header("Content-type: image/gif");
    
imagegif($img);
    
imagedestroy($img);

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