Просмотр файла GuesTBook By TeRRin/data/capatcha_1.php
<?php session_start(); $_SESSION['code'] = mt_rand(00001,99999); $img = imagecreatetruecolor(70, 35); imagefill($img, 0, 0, imagecolorallocate($img, 255, 255, 255)); imagettftext($img, 12, 0, 20, 20, imagecolorallocate($img, 0, 0, 0),'abg.ttf', $_SESSION['code']); header('Content-type: image/jpeg'); imagejpeg($img, null, mt_rand(10,70)); ?>