Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- header('Content-type: image/png');
- $image = imagecreatefrompng("picture.png");
- $file = fopen('users/' . $_GET['user'] . '.score', 'r');
- $score = fread($file, filesize('users/' . $_GET['user'] . '.score'));
- fclose($file);
- $file = fopen('users/' . $_GET['user'] . '.hours', 'r');
- $hours = fread($file, filesize('users/' . $_GET['user'] . '.score'));
- fclose($file);
- $black = imagecolorallocate($image, 0, 0, 0);
- imagettftext($image, 15, 0, 15, 45, $black, 'BAUHS93.TTF', $_GET['user']);
- imagettftext($image, 15, 0, 15, 60, $black, 'BAUHS93.TTF', 'Score: ' . $score);
- imagettftext($image, 15, 0, 15, 75, $black, 'BAUHS93.TTF', 'Hours: ' . $hours);
- imagepng($image);
- imagedestroy($image);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement