1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
<?php
define("IN_MYBB", 1);
include "global.php";
$Username = $mybb->user['username'];
$posts = $mybb->user['postnum'];
$duit = $mybb->user['newpoints'];
$icpic = $mybb->user['avatar'];
$image = imagecreatetruecolor(300,200);
$ip = "Ip Anda: $_SERVER[REMOTE_ADDR]";
$username2 = "Username: $Username";
$duit2 = "Wang: $duit";
$posts2 = "Posts: $posts";
imagestring($image, 10, 20, 40, $username2, 0x00ff00);
imagestring($image, 10, 20, 70, $ip, 0x00ff00);
imagestring($image, 10, 20, 100, $posts2, 0x00ff00);
imagestring($image, 10, 20, 130, $duit2, 0x00ff00);
imagestring($image, 10, 210, 160, "Rc.my", 0xFFFFFF);
imagecopymerge($image,$icpic, 20, 20, 20, 20, 100, 100, 70);
header('Content-Type: image/png');
imagepng($image, null, 9);
imagedestroy($image);
imagedestry($icpic);
?>
|