2006-12-02 04:36:16 +00:00
|
|
|
<?php
|
2013-05-20 17:10:38 -07:00
|
|
|
/**
|
2009-11-17 10:46:35 +00:00
|
|
|
* e107 website system
|
|
|
|
*
|
2009-11-18 01:06:08 +00:00
|
|
|
* Copyright (C) 2008-2009 e107 Inc (e107.org)
|
2009-11-17 10:46:35 +00:00
|
|
|
* Released under the terms and conditions of the
|
|
|
|
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
|
|
|
*
|
|
|
|
*
|
2011-07-01 12:30:18 +00:00
|
|
|
* $URL$
|
|
|
|
* $Id$
|
2013-05-20 17:10:38 -07:00
|
|
|
* @DEPRECATED FILE
|
2009-11-17 10:46:35 +00:00
|
|
|
*/
|
|
|
|
|
2008-12-10 16:37:17 +00:00
|
|
|
if (!defined('e107_INIT'))
|
|
|
|
{
|
|
|
|
exit;
|
|
|
|
}
|
2013-05-20 17:10:38 -07:00
|
|
|
/**
|
2020-12-21 10:00:28 -08:00
|
|
|
* @deprecated
|
2020-12-17 05:52:54 -08:00
|
|
|
* Use e107::getParser()->toAvatar() instead.
|
2013-05-20 17:10:38 -07:00
|
|
|
*/
|
2008-12-10 16:37:17 +00:00
|
|
|
function avatar($avatar)
|
|
|
|
{
|
2020-12-21 10:00:28 -08:00
|
|
|
trigger_error('<b>'.__METHOD__.' is deprecated.</b> Use e107::getParser()->toAvatar() instead.', E_USER_DEPRECATED); // no LAN
|
|
|
|
|
2017-01-02 14:08:34 -08:00
|
|
|
$data = array('user_image' => $avatar);
|
|
|
|
|
2021-01-09 09:09:12 -08:00
|
|
|
return e107::getParser()->toAvatar($data, array('type'=>'url', 'w'=>100, 'h'=>100));
|
2020-12-17 05:52:54 -08:00
|
|
|
|
2006-12-02 04:36:16 +00:00
|
|
|
}
|
2008-12-10 16:37:17 +00:00
|
|
|
|