'includes/profile',
'ban' => 'includes/profile',
'edit' => 'includes/profile',
'images' => 'includes/profile',
'info' => 'includes/profile',
'ip' => 'includes/profile',
'guestbook' => 'includes/profile',
'karma' => 'includes/profile',
'office' => 'includes/profile',
'password' => 'includes/profile',
'reset' => 'includes/profile',
'settings' => 'includes/profile',
'stat' => 'includes/profile'
);
$path = !empty($array[$act]) ? $array[$act] . '/' : '';
if (array_key_exists($act, $array) && file_exists($path . $act . '.php')) {
require_once($path . $act . '.php');
} else {
/*
-----------------------------------------------------------------
Анкета пользователя
-----------------------------------------------------------------
*/
$headmod = 'profile,' . $user['id'];
$textl = $lng['profile'] . ': ' . htmlspecialchars($user['name']);
require('../incfiles/head.php');
echo '
' . ($user['id'] != $user_id ? $lng_profile['user_profile'] : $lng_profile['my_profile']) . '
';
// Меню анкеты
$menu = array ();
if ($user['id'] == $user_id || $rights == 9 || ($rights == 7 && $rights > $user['rights']))
$menu[] = '' . $lng['edit'] . '';
if ($user['id'] != $user_id && $rights >= 7 && $rights > $user['rights'])
$menu[] = '' . $lng['delete'] . '';
if ($user['id'] != $user_id && $rights > $user['rights'])
$menu[] = '' . $lng['ban_do'] . '';
if (!empty($menu))
echo '';
//Уведомление о дне рожденья
if ($user['dayb'] == date('j', time()) && $user['monthb'] == date('n', time())) {
echo '';
}
// Информация о юзере
$arg = array (
'lastvisit' => 1,
'iphist' => 1,
'header' => 'ID:' . $user['id'] . ''
);
if($user['id'] != core::$user_id) $arg['footer'] = '' . core::$lng['where'] . ': ' . functions::display_place($user['id'], $user['place']);
echo '' . functions::display_user($user, $arg) . '
';
// Если юзер ожидает подтверждения регистрации, выводим напоминание
if ($rights >= 7 && !$user['preg'] && empty($user['regadm'])) {
echo '';
}
// Карма
if ($set_karma['on']) {
$karma = $user['karma_plus'] - $user['karma_minus'];
if ($karma > 0) {
$images = ($user['karma_minus'] ? ceil($user['karma_plus'] / $user['karma_minus']) : $user['karma_plus']) > 10 ? '2' : '1';
echo '