0byt3m1n1
Path:
/
data
/
applications
/
aps
/
tikiwiki
/
3.2.0-5
/
standard
/
htdocs
/
[
Home
]
File: tiki-show_user_avatar.php
<?php // $Id: /cvsroot/tikiwiki/tiki/tiki-show_user_avatar.php,v 1.10 2007-03-06 19:29:52 sylvieg Exp $ // Copyright (c) 2002-2007, Luis Argerich, Garland Foster, Eduardo Polidor, et. al. // All Rights Reserved. See copyright.txt for details and a complete list of authors. // Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. require 'tiki-setup.php'; if( $prefs['feature_userPreferences'] != 'y' ) { $smarty->assign('msg', tra("This feature is disabled").": feature_userPreferences"); $smarty->display("error.tpl"); die; } global $userprefslib; include_once ('lib/userprefs/userprefslib.php'); // application to display an image from the database with // option to resize the image dynamically creating a thumbnail on the fly. // you have to check if the user has permission to see this gallery if (!isset($_REQUEST["user"])) { die; } $info = $userprefslib->get_user_avatar_img($_REQUEST["user"]); $type = $info["avatarFileType"]; $content = $info["avatarData"]; header ("Content-type: $type"); echo "$content"; ?>