Advertisement
Guest User

get iconos en lightirc

a guest
Feb 6th, 2012
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.85 KB | None | 0 0
  1. <?php
  2. $nick = $_GET["getImage"];
  3. if ($nick == "admin") {
  4. header('Content-Disposition: Attachment;filename=/c/icons/admin.png');
  5. header('Content-type: image/png');
  6. }
  7. elseif ($nick == "halfop") {
  8. header('Content-Disposition: Attachment;filename=/c/icons/halfop.png');
  9. header('Content-type: image/png');
  10. }
  11. elseif($nick == "operator") {
  12. header('Content-Disposition: Attachment;filename=/c/icons/operator.png');
  13. header('Content-type: image/png');
  14. }
  15. elseif($nick == "voice") {
  16. header('Content-Disposition: Attachment;filename=/c/icons/voice.png');
  17. header('Content-type: image/png');
  18. }
  19. elseif($nick == "owner") {
  20. header('Content-Disposition: Attachment;filename=/c/icons/owner.png');
  21. header('Content-type: image/png');
  22. }
  23. else {
  24. header('Content-Disposition: Attachment;filename=/c/icons/troll.png');
  25. header('Content-type: image/png');
  26. }
  27. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement