Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- header('Content-Type: image/png;');
- $im = @imagecreatefrompng('samp.png') or die("Cannot select the correct image. Please contact the webmaster.");
- $text_color = imagecolorallocate($im, 30,30,30);
- //Fontsize
- <span style="font-weight:bolder;">echo $text_level;</span>
- //$text_name = "Name";
- $text_name = isset($_GET['name']) ? 'Name: ' . $_GET['name'] : 'Kein Name';
- $text_level = isset($_GET['level']) ? "Level: " . $_GET['level'] : 'Kein Level';
- $text_fraktion = isset($_GET['fraktion']) ? "Fraktion: " . $_GET['fraktion'] : 'Keine Fraktion';
- $text_handy = isset($_GET['handy']) ? "Handnr: " . $_GET['handy'] : 'Falsche Eingabe!';
- imagestring($im, 4, 5, 5, $text_name, $text_color);
- imagestring($im, 4, 5, 25, $text_level, $text_color);
- imagestring($im, 4, 5, 45, $text_fraktion, $text_color);
- imagestring($im, 4, 5, 65, $text_handy, $text_color);
- imagepng($im);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement