-=[ Mr. Bumblebee ]=-
_Indonesia_
<?php
header("Content-type: image/png");
$w = isset($_GET['w']) ? intval($_GET['w']) : 140;
$h = isset($_GET['h']) ? intval($_GET['h']) : 30;
if ($w <= 0 || $w > 1000) $w = 140;
if ($h <= 0 || $h > 400) $h = 30;
$im = imagecreatetruecolor($w, $h);
$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, $w, $h, $dark_pink);
$scode = isset($_GET['scode']) ? $_GET['scode'] : '';
$view_code = md5($scode);
$view_code = substr($view_code, 2, 5);
$view_code = strtoupper($view_code);
$font = $_SERVER['DOCUMENT_ROOT'] . '/codefont/gulim.ttc';
$size = 13;
$angle = -2;
$y = 22;
$x = 5;
if (function_exists('imagettftext') && is_readable($font)) {
imagettftext($im, $size, $angle, $x, $y, $black, $font, $view_code);
} else {
// Fallback when GD FreeType is missing
imagestring($im, 5, $x, 8, $view_code, $black);
}
imagepng($im);
imagedestroy($im);
?>
Copyright © 2017 || Recoded By Mr.Bumblebee