Location: PHPKode > scripts > Minecraft Admin > minecraft-admin/includes/image.php
<?php
imagefilledrectangle($im, 0, 0, 399, 29, $white);
$my_img      = imagecreate(600, 100);
$background  = imagecolorallocate($my_img, 0, 0, 255);
$text_colour = imagecolorallocate($my_img, 255, 255, 0);
$line_colour = imagecolorallocate($my_img, 128, 255, 0);



$output      = utf8_decode(shell_exec('/etc/init.d/minecraft status'));
$output      = str_replace("craftbukkit.jar", "Minecraft", $output);
imagestring($my_img, 6, 20, 25, $output, $text_colour);






$output = utf8_decode(shell_exec('/etc/init.d/minecraft command "list"'));
$output = str_replace("craftbukkit.jar", "Minecraft", $output);
$output = str_replace("[0m", "", $output);
$sage   = explode(']', $output);
$text   = explode(':', $sage[1]);
imagestring($my_img, 4, 200, 10, $text[0].':', $text_colour);
imagestring($my_img, 4, 250, 50, $text[1], $text_colour);






imagesetthickness($my_img, 5);
imageline($my_img, 20, 45, 190, 45, $line_colour);
header("Content-type: image/png; charset=utf-8");
imagepng($my_img);
imagecolordeallocate($line_color);
imagecolordeallocate($text_color);
imagecolordeallocate($background);
imagedestroy($my_img);
?>
Return current item: Minecraft Admin