'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'); /* Подпись на форуме/Приветствие в анкете Начало первого блока -----Обновление подписи----- */ if (isset($_POST['submit'])) { $user['podpis'] = isset($_POST['podpis']) ? functions::check(mb_substr($_POST['podpis'], 0, 100)) : ''; $updatepodpis = mysql_query("UPDATE `users` SET `podpis` = '" . $user['podpis'] . "' WHERE `id` = '" . $user['id'] . "'"); if($updatepodpis) echo '
Подпись обновлена
'; } /* Подпись на форуме/Приветствие в анкете Конец первого блока */ 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 '
' . functions::display_menu($menu) . '
'; //Уведомление о дне рожденья if ($user['dayb'] == date('j', time()) && $user['monthb'] == date('n', time())) { echo '
' . $lng['birthday'] . '!!!
'; } /* Подпись на форуме/Приветствие в анкете Начало второго блока -----Вывод подписи----- */ if (!empty($user['podpis'])) echo ''; /* -----Форма ввода подписи----- */ if (!isset($ban['1']) && !isset($ban['3'])) { if($user['id']==$user_id){ echo '
'; echo ''; 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 ($user['postforum'] != 0) { $arank = $user['postforum']; if ($arank <= 10) $arank = 'На сайте: Новичок'; elseif ($arank <= 100) $arank = 'На сайте: Пользователь'; elseif ($arank <= 300) $arank = 'На сайте: Житель'; elseif ($arank <= 500) $arank = 'На сайте: Местный'; elseif ($arank <= 750) $arank = 'На сайте: Свой человек'; elseif ($arank <= 1000) $arank = 'На сайте: Резидент'; elseif ($arank <= 2000) $arank = 'На сайте: Гуру'; elseif ($arank <= 3000) $arank = 'На сайте: VIP'; elseif ($arank >= 3001) $arank = 'На сайте: ВЕТЕРАН'; echo '
'; } if ($user['rights'] == 0) { echo '' . $arank . ''; } else { echo 'На сайте: АдминСостав'; } if (!empty($user['status'])) echo '' . $user['status'] . ''; echo ''; // Если юзер ожидает подтверждения регистрации, выводим напоминание if ($rights >= 7 && !$user['preg'] && empty($user['regadm'])) { echo '
' . $lng_profile['awaiting_registration'] . '
'; } // Карма 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 '
'; } else if ($karma < 0) { $images = ($user['karma_plus'] ? ceil($user['karma_minus'] / $user['karma_plus']) : $user['karma_minus']) > 10 ? '-2' : '-1'; echo '
'; } else { $images = 0; echo ''; } // Меню выбора $total_photo = mysql_result(mysql_query("SELECT COUNT(*) FROM `cms_album_files` WHERE `user_id` = '" . $user['id'] . "'"), 0); echo '

' . '

 ' . $lng['information'] . '
' . '
 ' . $lng_profile['activity'] . '
' . '
 ' . $lng['statistics'] . '
'; $bancount = mysql_result(mysql_query("SELECT COUNT(*) FROM `cms_ban_users` WHERE `user_id` = '" . $user['id'] . "'"), 0); if ($bancount) echo '
 ' . $lng['infringements'] . ' (' . $bancount . ')
'; echo '
' . '
 ' . $lng['photo_album'] . ' (' . $total_photo . ')
' . '
 ' . $lng['guestbook'] . ' (' . $user['comm_count'] . ')
'; //echo '
 ' . $lng['blog'] . ' (0)
'; if ($user['id'] != $user_id) { echo '
 ' . $lng['contacts_in'] . '
'; if (!isset($ban['1']) && !isset($ban['3'])) echo '
 ' . $lng['write'] . '
'; } echo '

'; echo ''; } require_once('../incfiles/end.php'); ?>