Menu

[r13]: / e9-core / avatar.class.php  Maximize  Restore  History

Download this file

27 lines (21 with data), 337 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
class e_avatar
{
function default_avatar()
{
return 'no-avatar.png';
}
function correct_url( &$str )
{
global $_url;
if ( !$str )
$str = e_avatar::default_avatar();
if (
substr( $str, 0, 7 ) != 'http://'
&& substr( $str, 0, 8 ) != 'https://'
)
$str = $_url['img'] . $str;
return $str;
}
};
?>