'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 '' . 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 '