'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 '
' . functions::display_menu($menu) . '
'; //Уведомление о дне рожденья if ($user['dayb'] == date('j', time()) && $user['monthb'] == date('n', time())) { echo '
' . $lng['birthday'] . '!!!
'; } // Информация о юзере $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 '
' . $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'); ?> // Ссылка на сообщества пользователя $totussoo = mysql_num_rows(mysql_query("SELECT * FROM `soo_users` WHERE `user_id` = '". $user['id'] ."'")); echo '
Сообщества ('.$totussoo.')