File size: 684B
<?
Error_Reporting(E_ALL & ~E_NOTICE);
Error_Reporting (ERROR | WARNING);
include("func.php");
include("set.php");
include("start.php");
if($mode=="load")
{
if(file_exists("$dir_temp/$code.lc"))
{
$fp=@file_get_contents("$dir_temp/$code.lc");
$fp=@explode("|",$fp);
$code=$fp[1];
} else $code="Error";
}
else
{
$code=base64_decode($code);
}
$img=imageCreate(50,15);
$black=imagecolorallocate($img,0,0,0);
$red=imagecolorallocate($img,255,0,0);
$white=imagecolorallocate($img,255,255,255);
imagettftext($img, 10, 0, 8, 11, $white, "img/comicbd.ttf","$code");
Header("Content-type: image/png");
imagePNG($img);
imageDestroy($img);
?>