eZpvLsOYk4
AL_1

<?php

header("Content-type:image/jpeg");



$array=array();

$array = explode("||", $_GET[text]);

        function imagettftext_cr(&$im, $size, $angle, $x, $y, $color, $fontfile, $text)

        {

            // retrieve boundingbox

            $bbox = imagettfbbox($size, $angle, $fontfile, $text);

            // calculate deviation

            $dx = ($bbox[2]-$bbox[0])/2.0 - ($bbox[2]-$bbox[4])/2.0;        // deviation left-right

            $dy = ($bbox[3]-$bbox[1])/2.0 + ($bbox[7]-$bbox[1])/2.0;        // deviation top-bottom

            // new pivotpoint

            $px = $x-$dx;

            $py = $y-$dy;

            return imagettftext($im, $size, $angle, $px, $y, $color, $fontfile, $text);

        }

		

if($_GET[x]!="" && $_GET[y]!=null){

$image = imagecreate($_GET[x],$_GET[y]);

}else{

$image = imagecreate(500,90);

}

if($_GET['bk_r'] != "" && $_GET['bk_g'] != "" &&$_GET['bk_b'] != ""){

  $black = imagecolorallocate($image,$_GET['bk_r'],$_GET['bk_g'],$_GET['bk_b']);

}else{

  $black = imagecolorallocate($image,66,134,244);

}

if($_GET['mn_r'] != "" && $_GET['mn_g'] != "" &&$_GET['mn_b'] != ""){

  $white = imagecolorallocate($image,$_GET['mn_r'],$_GET['mn_g'],$_GET['mn_b']);

}else{

  $white = imagecolorallocate($image,255,255,255);

}

if($_GET['sh_r'] != "" && $_GET['sh_g'] != "" &&$_GET['sh_b'] != ""){

  $grey_shade = imagecolorallocate($image,$_GET['sh_r'],$_GET['sh_g'],$_GET['sh_b']);

}else{

  $grey_shade = imagecolorallocate($image,40,40,40);

}





$text = $array[rand(0,sizeof($array)-1)];



// Local font files, relative to script

$otherFont = 'minecraft.ttf';

$font = 'minecraft.ttf';



if($_GET['name'] == ""){ $name = "AL_1";}else{$name= $_GET['name'];}

$name = substr($name, 0, 25);    





//BG text for Name

while($i<10){

imagettftext_cr($image,rand(2,40),rand(0,50),rand(10,500),rand(0,200),$grey_shade,$font,$name);

$i++;

}

//BG text for saying

while($i<10){

imagettftext_cr($image,rand(0,40),rand(90,180),rand(100,500),rand(200,500),$grey_shade,$font,$text);

$i++;

}



// Main Text

imagettftext_cr($image,35,0,250,46,$white,$font,$name);

imagettftext_cr($image,10,0,250,76,$white,$otherFont,$text);

imagejpeg($image);

?>