Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function update($mascot) {
- global $status, $server, $room, $font, $mascot;
- if($mascot=="rockhopper") {
- global $rh_image, $rh_image_path, $rh_color;
- $image = $rh_image;
- $image_path = $rh_image_path;
- $color = $rh_color;
- }
- if($mascot=="penguinband") {
- global $pb_image, $pb_image_path, $pb_color;
- $image = $pb_image;
- $image_path = $pb_image_path;
- $color = $pb_color;
- }
- if($mascot=="cadence") {
- global $cad_image, $cad_image_path, $cad_color;
- $image = $cad_image;
- $image_path = $cad_image_path;
- $color = $cad_color;
- }
- Header ("Content-type: image/png");
- imagettftext($image, 13, 0,95,63,$color,$font,$status);
- imagettftext($image, 12, 0,95,93,$color,$font,$server);
- imagettftext($image, 12, 0,95,123,$color,$font,$room);
- ImagePNG ($image,$image_path);
- ImageDestroy ($image);
- pubTweet($mascot);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement