-=[ Mr. Bumblebee ]=-
_Indonesia_
<?php
// Set the content-type
header("Content-type: image/png");
// Create the image
$im = imagecreatetruecolor($_GET['w'], $_GET['h']);
// Create some colors
$white = imagecolorallocate($im, 255, 255, 255);
$red = imagecolorallocate($im, 255, 0, 0);
$grey = imagecolorallocate($im, 227, 227, 227);
$black = imagecolorallocate($im, 0, 0, 0);
$dark_pink = imagecolorallocate($im,236,212,225);
imagefilledrectangle($im, 0, 0, $_GET['w'], $_GET['h'], $dark_pink);
// The text to draw
$view_code = md5($_GET['scode']);
$view_code = substr($view_code , 2, 5 );
$view_code = strtoupper( $view_code) ;
$i = rand(0,1);
$text1 = iconv( 'EUC-KR' , 'UTF-8' , $view_code ) ;
// Replace path by your own font path
$font = $_SERVER['DOCUMENT_ROOT'] . '/codefont/gulim.ttc';
$size = 13 ;
$angle = -2 ;
$y = 22 ;
$x = 5 ;
// Add some shadow to the text
#imagettftext($im, $size , $angle , ($x+1), ($y+1), '#CCCCCC', $font, $text);
// Add the text
imagettftext($im, $size , $angle , $x , $y , $black, $font, $text1);
// Using imagepng() results in clearer text compared with imagejpeg()
imagepng($im);
imagedestroy($im);
?>
Copyright © 2017 || Recoded By Mr.Bumblebee