View file modules/user/panel.php

File size: 1.26Kb
<?
/**********************************
*	@package: PerfCMS			  *
*	@year: 2012					  *
*	@author: Artas				  *
*	@link: http://perfcms.ru	  *
**********************************/
if(isset($user)) {
$locate = 'in_cabinet';
$title = $lang->word('user_panel');
require_once(SYS.'/view/header.php');
$tpl->div('title', $lang->word('hello').', <b> '.$user['nick'].'!</b>');
$tpl->div('menu', img('edit_profile.png') .'<a href="/user/edit/">'. $lang->word('edit_profile') .'</a><br/>');
$tpl->div('menu', img('profile.png') .'<a href="/user/'. $user['id'] .'/">'. $lang->word('view_profile') .'</a><br/>');
$tpl->div('menu', img('avatar.png') .'<a href="/user/avatar/">'. $lang->word('user_avatar') .'</a><br/>');
$tpl->div('menu', img('settings.png') .'<a href="/user/settings/">'. $lang->word('settings') .'</a><br/>');
$tpl->div('menu', img('safe.png') .'<a href="/user/security/">'. $lang->word('security') .'</a><br/>');
$tpl->div('menu', img('mail.png') .'<a href="/mail/">'. $lang->word('u_mail') .'</a> '. $stat->mail() .'<br/>');
$tpl->div('menu', img('privacy.png') .'<a href="/user/privacy/">'. $lang->word('privacy') .'</a><br/>');
$tpl->div('block',HICO .'<a href="/">'. $lang->word('home') .'</a>');
require_once(SYS.'/view/footer.php');
} else { go('/'); }
?>