View file imgkod.php

File size: 364B
<?php
//Сессия
require_once('config.php');
if(!@$_SESSION['kod'])
	{
	$_SESSION['kod']=rand(100009,999999);
	}
	$kod=$_SESSION['kod'];
$img=imageCreate(60, 30);
imagecolorallocate($img, 255, 255, 255) ;
$black = imageColorAllocate($img, 0, 0,0);
imagestring($img,8,rand(1,2),0,$kod,$black);
header("Content-type: image/gif");
imagegif($img);
?>