Файл: sys/info/avatar.php
Строк: 24
<?php
include_once H.'sys/classes/avatar_mod.class.php';
if ($user['id'] == $ank['id']) {
$avaus = "<a href='/user/avatar'>";
$avaus_end = "</a>";
} else {
$avaus = null;
$avaus_end = null;
}
echo $avaus . "<div class='list-group-item'>";
avatar_mod::head($ank['id']);
avatar($ank['id'], $set['avatar_w_ank'], $set['avatar_s_ank'], 0, null);
avatar_mod::foot($ank['id']);
echo "</div>" . $avaus_end;
if ($user['id'] != $ank['id'] and is_file(H . 'files/avatars/' . $ank['id'] . '.png') and user_access('ava_dell')) {
echo "<div class='list-group-item'><a href='" . APANEL . "/avatar_del.php?id=" . $ank['id'] . "'><span class='fa fa-trash-o fa-fw'></span> " . lang('Удалить аватар') . "</a></div>";
}