Jeanzinh0

Avatar image

Jan 1st, 2019
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.03 KB | None | 0 0
  1. <?php
  2. /*=========================================================+
  3. || # HabboCMS - Sistema de administración de contenido Habbo.
  4. |+=========================================================+
  5. || # Copyright © 2010 Kolesias123. All rights reserved.
  6. || # http://www.infosmart.com.mx
  7. || # Partes Copyright © 2009 Yifan Lu. All rights reserved.
  8. || # http://www.yifanlu.com
  9. || # Base Copyright © 2007-2008 Meth0d. All rights reserved.
  10. || # http://www.meth0d.org
  11. |+=========================================================+
  12. || # InfoSmart 2010. The power of Proyects.
  13. || # Este es un Software de código libre, libre edición.
  14. |+=========================================================+
  15. || # Todas las imagenes, scripts y temas
  16. || # Copyright (C) 2010 Sulake Ltd. All rights reserved.
  17. |+=========================================================*/
  18.  
  19.  
  20. function FilterText($str, $advanced = false) {
  21.     $str = htmlspecialchars(trim($str), ENT_QUOTES);
  22.     return $str;
  23. }
  24. $no_rea = true;
  25. $no_maintenance = true;
  26.  
  27. require_once('../../app/management/config.php');
  28.  
  29. Header("Content-type: image/png");
  30. ini_set('user_agent', 'Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20100101 Firefox/17.0');
  31. error_reporting(0);
  32.  
  33. $figure = $_GET['figure'];
  34. $size = $_GET['size'];
  35. $direction = $_GET['direction'];
  36. $head_direction = $_GET['head_direction'];
  37. $gesture = $_GET['gesture'];
  38. $action = $_GET['action'];
  39. $user = FilterText($_GET['user']);
  40.  
  41. if(!empty($figure))
  42. {
  43.     $real_figure = $figure;
  44. }
  45. else if(!empty($user))
  46. {
  47. //Dont know if exists a userData function
  48.     $real_figure = userData("figure", $user);
  49. }
  50.  
  51. if(empty($size))
  52. {
  53.     $size = "b";
  54. }
  55.  
  56. if(empty($direction))
  57. {
  58.     $direction = "3";
  59. }
  60.  
  61. if(empty($head_direction))
  62. {
  63.     $head_direction = "3";
  64. }
  65.  
  66. if(empty($gesture))
  67. {
  68.     $gesture = "sml";
  69. }
  70.    
  71.  
  72. echo file_get_contents('http://www.habbo.com/habbo-imaging/avatarimage?figure='.$real_figure.'&size='.$size.'&direction='.$direction.'&head_direction='.$head_direction.'&gesture='.$gesture.'&action='.$action);
  73. ?>
Advertisement
Add Comment
Please, Sign In to add comment