Вход Регистрация
Файл: o5on.ru/chislo.php
Строк: 30
<?php
header
("Cache-Control: no-cache, must-relative");
$chislo=rand(10000,99999);

$r=rand(0,0);
$img=imagecreatefromgif("fon/$r.gif");

$d1 substr($chislo0,1);
$r=rand(0,4);
$img_d=imagecreatefromgif("dig/$r.gif");
imagecopy($img$img_d,rand(-3,3), rand(-4,4), $d1*200,  2030);

$d1 substr($chislo1,1);
$r=rand(0,4);
$img_d=imagecreatefromgif("dig/$r.gif");
imagecopy($img$img_d,rand(-3,3)+20rand(-4,4), $d1*200,  2030);

$d1 substr($chislo2,1);
$r=rand(0,4);
$img_d=imagecreatefromgif("dig/$r.gif");
imagecopy($img$img_d,rand(-3,3)+40rand(-4,4), $d1*200,  2030);

$d1 substr($chislo3,1);
$r=rand(0,4);
$img_d=imagecreatefromgif("dig/$r.gif");
imagecopy($img$img_d,rand(-3,3)+60rand(-4,4), $d1*200,  2030);

$d1 substr($chislo4,1);
$r=rand(0,4);
$img_d=imagecreatefromgif("dig/$r.gif");
imagecopy($img$img_d,rand(-3,3)+80rand(-4,4), $d1*200,  2030);

//imagecopy($img, $img1, int dst_x, int dst_y, int src_x, int src_y, int src_w, int src_h)
header("Content-type: image/gif");
imagegif($img);




$fp=fopen("chislo.txt","w");
flock($fp,LOCK_EX);
fputs($fp,$chislo);
flock($fp,LOCK_UN);
fclose($fp);
echo 
$chislo;

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