get_smiley.php 580 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /**
  3. * ElggChat - Pure Elgg-based chat/IM
  4. *
  5. * Action to get Google Talk based smileys
  6. *
  7. * @package elggchat
  8. * @author ColdTrick IT Solutions
  9. * @copyright Coldtrick IT Solutions 2009
  10. * @link http://www.coldtrick.com/
  11. * @version 0.4
  12. */
  13. $base_folder = "thewire/_graphics/";
  14. $smiley = get_input("smiley");
  15. if($smiley){
  16. $filename = $CONFIG->pluginspath . $base_folder . $smiley;
  17. $contents = @file_get_contents($filename);
  18. header("Cache-Control: no-cache, no-store, must-revalidate");
  19. echo $contents;
  20. }
  21. exit();
  22. ?>