Вход Регистрация
Файл: regimg.php
Строк: 24
<?php
$code 
'';
$code .= rand(09);
$code .= rand(09);
$code .= rand(09);
$code .= rand(09);
$fo = @fopen('regcodeimg.reg''w+');
@
fputs($fo$code);
@
fclose($fo);
$img = @ImageCreate(5020);
$color1 = @ImageColorAllocate($img255255255);
$color2 imagecolorallocate($img,rand(0,204),rand(0,204),rand(0,204));
@
ImageFilledRectangle($img005020$color1);
@
ImageString($img572$code$color2);
for (
$i=0$i<5$i++){
            
$temp_color=imagecolorallocate($img,rand(0,204),rand(0,204),rand(0,204));
            
$pos=array(rand(0,42),rand(0,18),rand(0,42),rand(0,18));
            
imageline($img,$pos[0],$pos[1],$pos[2],$pos[3],$temp_color);
            }
Header("Cache-Control: no-cache");
Header("Content-type: image/png");
ImageGIF($img);
ImageDestroy($img);
?>
Онлайн: 0
Реклама