users
[ class tree: users ] [ index: users ] [ all elements ]

Source for file show_user_avatar.php

Documentation is available at show_user_avatar.php

  1. <?php
  2. /**
  3.  * show user avatar
  4.  *
  5.  * @copyright (c) 2004-15 bitweaver.org
  6.  *
  7.  * @package users
  8.  * @subpackage functions
  9.  */
  10.  
  11. /**
  12.  * required setup
  13.  */
  14. include_onceUSERS_PKG_PATH.'userprefs_lib.php' );
  15. // application to display an image from the database with
  16. // option to resize the image dynamically creating a thumbnail on the fly.
  17. // you have to check if the user has permission to see this gallery
  18. if (!isset($_REQUEST["user"])) {
  19.     die;
  20. }
  21. $info $userprefslib->get_user_avatar_img($_REQUEST["user"]);
  22. $type $info["avatar_file_type"];
  23. $content $info["avatar_data"];
  24. header ("Content-type: $type");
  25. echo "$content";
  26. ?>

Documentation generated on Wed, 29 Jul 2015 13:57:27 +0000 by phpDocumentor 1.5.0-lsces