Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. function update($mascot) {
  2. global $status, $server, $room, $font, $mascot;
  3.  
  4. if($mascot=="rockhopper") {
  5. global $rh_image, $rh_image_path, $rh_color;
  6. $image = $rh_image;
  7. $image_path = $rh_image_path;
  8. $color = $rh_color;
  9. }
  10. if($mascot=="penguinband") {
  11. global $pb_image, $pb_image_path, $pb_color;
  12. $image = $pb_image;
  13. $image_path = $pb_image_path;
  14. $color = $pb_color;
  15. }
  16. if($mascot=="cadence") {
  17. global $cad_image, $cad_image_path, $cad_color;
  18. $image = $cad_image;
  19. $image_path = $cad_image_path;
  20. $color = $cad_color;
  21. }
  22. Header ("Content-type: image/png");
  23. imagettftext($image, 13, 0,95,63,$color,$font,$status);
  24. imagettftext($image, 12, 0,95,93,$color,$font,$server);
  25. imagettftext($image, 12, 0,95,123,$color,$font,$room);
  26. ImagePNG ($image,$image_path);
  27. ImageDestroy ($image);
  28. pubTweet($mascot);
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement