Файл: modules/user/avatar.php
Строк: 21
<?php
if(isset($user)) {
$title = $lang->word('user_avatar');
$locate = 'in_profile';
require_once(SYS.'/view/header.php');
$tpl->div('title', ''.$lang->word('user_avatar').'');
$tpl->div('menu', ''.$lang->word('avatar').'');
?>
<div class="post">
<? echo avatar($user['nick']); ?></div>
<div class="post">
<? 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>
</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');
} else { go('/'); }
?>