<?php
header ("Content-type: image/png");
$image = imagecreatefrompng("bg.png");

$stats = file_get_contents("http://sitemasters.be/login/userdata.php?userid=".$_REQUEST['userid']);
$stats = explode("\n", $stats);

$black = imagecolorallocate($image, 0, 0, 0);

imagestring($image, 3, 2, 25, "Username: ".$stats[0], $black);
imagestring($image, 3, 2, 37, "Forum topics: ".$stats[1], $black);
imagestring($image, 3, 2, 49, "Forum berichten: ".$stats[2], $black);
imagestring($image, 3, 2, 61, "Scripts: ".$stats[3]." - Tutorials: ".$stats[4], $black);

imagepng($image);
imagedestroy($image);
?>