Размер файла: 1.09Kb
<?php
/**********************************
* @package: PerfCMS *
* @year: 2012 *
* @author: Artas *
* @link: http://perfcms.pp.ua *
**********************************/
$title = $lang->word('user_avatar');
$locate = 'in_profile';
require_once(SYS.'/view/header.php');
$tpl->div('title', '<b>'.$lang->word('user_avatar').'</b>');
?>
<div class="post">
<? echo avatar($user['nick']); ?>
<? echo $lang->word('choose_avatar'); ?>:<br/>
<form action="/user/load_avatar/" method="post" enctype="multipart/form-data">
<input type="file" accept="image/*" name="avatar" /><br/>
<input value="<? echo $lang->word('send'); ?>" type="submit" />
</form>
<? if(avatar($user['nick']) != '<img src="/files/avatars/no_photo.png" alt="No photo" /><br/>') {
echo '<a href="/user/delete_avatar/">'.$lang->word('delete').' '. $lang->word('current_user_avatar') .'</a>';
}
?>
</div>
<?
$tpl->div('block', NAV .'<a href="/user/panel/">'.$lang->word('user_panel').'</a><br/>'
. HICO .'<a href="/">'. $lang->word('home').'</a>');
require_once(SYS .'/view/footer.php');
?>