Advertisement
Guest User

Untitled

a guest
May 4th, 2014
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.89 KB | None | 0 0
  1. <?php
  2. header('Content-Type: image/png;');
  3.  
  4. $im = @imagecreatefrompng('samp.png') or die("Cannot select the correct image. Please contact the webmaster.");
  5.  
  6. $text_color = imagecolorallocate($im, 30,30,30);
  7.  
  8. //Fontsize
  9. <span style="font-weight:bolder;">echo $text_level;</span>
  10.  
  11. //$text_name = "Name";
  12. $text_name = isset($_GET['name']) ? 'Name: ' . $_GET['name'] : 'Kein Name';  
  13. $text_level = isset($_GET['level']) ? "Level: " . $_GET['level'] : 'Kein Level';  
  14. $text_fraktion = isset($_GET['fraktion']) ? "Fraktion: " . $_GET['fraktion'] : 'Keine Fraktion';  
  15. $text_handy = isset($_GET['handy']) ? "Handnr: " . $_GET['handy'] : 'Falsche Eingabe!';  
  16.  
  17.  
  18. imagestring($im, 4, 5, 5,  $text_name, $text_color);
  19. imagestring($im, 4, 5, 25,  $text_level, $text_color);
  20. imagestring($im, 4, 5, 45,  $text_fraktion, $text_color);
  21. imagestring($im, 4, 5, 65,  $text_handy, $text_color);
  22.  
  23. imagepng($im);
  24. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement