num_rows(); if ($resultat > 0) { $torrents = "\n" . "\n"; while ($a = $cache->fetch_assoc()) { $cat = "$a[catname]"; $torrents .= "" ."\n"; } $torrents .= "
".$tracker_lang['name']."
" . $a["name"] . "
"; } if ($user["ip"] && (get_user_class() >= UC_MODERATOR || $user["id"] == $CURUSER["id"])) { $addr = $user["ip"]; } if ($user[added] == "0000-00-00 00:00:00") $joindate = 'N/A'; else $joindate = "$user[added] (" . get_elapsed_time(sql_timestamp_to_unix_timestamp($user["added"])) . " ".$tracker_lang['ago'].")"; $lastseen = $user["last_access"]; if ($lastseen == "0000-00-00 00:00:00") $lastseen = $tracker_lang['never']; else { $lastseen .= " (" . get_elapsed_time(sql_timestamp_to_unix_timestamp($lastseen)) . " ".$tracker_lang['ago'].")"; } $res = sql_query("SELECT COUNT(*) FROM comments WHERE user = " . $user[id]) or sqlerr(__FILE__, __LINE__); $arr3 = mysql_fetch_row($res); $torrentcomments = $arr3[0]; if ($user["gender"] == "1") $gender = "\"Парень\""; elseif ($user["gender"] == "2") $gender = "\"Девушка\""; ///////////////// BIRTHDAY MOD ///////////////////// if ($user[birthday] != "0000-00-00") { //$current = date("Y-m-d", time()); $current = date("Y-m-d", time() + $CURUSER['tzoffset'] * 60); list($year2, $month2, $day2) = explode('-', $current); $birthday = $user["birthday"]; $birthday = date("Y-m-d", strtotime($birthday)); list($year1, $month1, $day1) = explode('-', $birthday); if($month2 < $month1) { $age = $year2 - $year1 - 1; } if($month2 == $month1) { if($day2 < $day1) { $age = $year2 - $year1 - 1; } else { $age = $year2 - $year1; } } if($month2 > $month1) { $age = $year2 - $year1; } } ///////////////// BIRTHDAY MOD ///////////////////// stdhead("Просмотр профиля " . $user["username"]); $enabled = $user["enabled"] == 'yes'; print("

". "

$user[username]" . get_user_icons($user, true) . "

\n"); if (!$enabled) print("

Этот аккаунт отключен

\n"); elseif ($CURUSER["id"] <> $user["id"]) { $r = sql_query("SELECT id FROM friends WHERE userid=$CURUSER[id] AND friendid = $id") or sqlerr(__FILE__, __LINE__); $friend = mysql_num_rows($r); $r = sql_query("SELECT id FROM blocks WHERE userid=$CURUSER[id] AND blockid = $id") or sqlerr(__FILE__, __LINE__); $block = mysql_num_rows($r); if ($friend) print("

(Убрать из друзей)

\n"); elseif($block) print("

(Убрать из блокированых)

\n"); else { print("

(Добавить в друзья)"); print(" - (Добавить в блокированные)

\n"); } } begin_main_frame(); ?> = UC_MODERATOR) print("\n"); if ($addr){ print("\n"); } //} if ($user["avatar"]) print("\n"); if ($user["enabled"] == 'no') print("\n"); if ($user["enabled"] == 'yes') print("\n"); /*if ($user["enabled"] == 'yes') print("\n"); */ print("\n"); /// $res = @sql_query("SELECT url, useragent FROM sessions WHERE uid=$user[id] ORDER BY time DESC ") or sqlerr(__FILE__, __LINE__); $rows = mysql_fetch_array($res); if (get_user_class() >= UC_MODERATOR) { if($rows['url']) print("\n"); /* $stats = explode(" ", $rows['useragent']); if($rows['useragent']) print("\n"); */ } /// if($user["birthday"]!='0000-00-00') { print("\n"); $birthday = date("d.m.Y", strtotime($birthday)); print("\n"); } if($user['country']) print("\n"); $txlst = mysql_query("SELECT COUNT(*) FROM thanks WHERE userid=" . $user[id]) or sqlerr();; $list1 = mysql_fetch_row($txlst); $count1 = $list1[0]; $txlst3 = mysql_query("SELECT COUNT(*) FROM thanks WHERE touid=" . $user[id]) or sqlerr();; $list3 = mysql_fetch_row($txlst3); $count3 = $list3[0]; print("\n"); print("\n"); print(""); if ($torrentcomments && (($user["class"] > UC_GUEST && $user["id"] == $CURUSER["id"]) || get_user_class() >= UC_MODERATOR)) print("\n"); else print("\n"); ?> \n"); if ($invitetree) print("\n"); if ($user["info"]) print("\n"); if ($CURUSER["id"] != $user["id"]) if (get_user_class() >= UC_MODERATOR) $showpmbutton = 1; elseif ($user["acceptpms"] == "yes") { $r = sql_query("SELECT id FROM blocks WHERE userid = $user[id] AND blockid = $CURUSER[id]") or sqlerr(__FILE__,__LINE__); $showpmbutton = (mysql_num_rows($r) == 1 ? 0 : 1); } elseif ($user["acceptpms"] == "friends") { $r = sql_query("SELECT id FROM friends WHERE userid = $user[id] AND friendid = $CURUSER[id]") or sqlerr(__FILE__,__LINE__); $showpmbutton = (mysql_num_rows($r) == 1 ? 1 : 0); } if ($showpmbutton) print(""); print("
Зарегистрирован
Последнее посещение
Email$user[email]
IP$addr
Аватар
Уровень \"Забанен\"
Уровень" . get_user_class_name($user["class"]) . "
". ($user["title"] != "" ? " {$user['title']}" : "") . "
Уровень  . get_user_class_name($user[
". ($user["title"] != "" ? " {$user["title"]}" : "") . "
Пол$gender
Сейчас находится".$rows['url']."
Сейчас использует Браузер".$stats[0]."
Возраст$age
Дата Рождения$birthday
Адресс".htmlspecialchars($user['country'])."
Отблагодарил$count1 раз(а)
Поблагодарили$count3 раз(а)
Комментариев$torrentcomments
$torrentcomments
Добавленные новости
$torrents
Приглашенные
$invitetree
" . format_comment($user["info"]) . "
\n"); if (get_user_class() >= UC_MODERATOR && $user["class"] < get_user_class()) { begin_frame("Редактирование пользователя", true); print("
\n"); print("\n"); print("\n"); print("\n"); print("\n"); print("\n"); $avatar = htmlspecialchars($user["avatar"]); print("\n"); // we do not want mods to be able to change user classes or amount donated... if ($CURUSER["class"] < UC_ADMINISTRATOR) { print("\n"); } else { print("\n"); } if (get_user_class() == UC_MODERATOR && $user["class"] > UC_JOURNALIST) print(""); else { print("\n"); } print("\n"); $modcomment = htmlspecialchars($user["modcomment"]); print("\n"); print("\n"); $warned = $user["warned"] == "yes"; print(""); if ($warned) { $warneduntil = $user['warneduntil']; if ($warneduntil == '0000-00-00 00:00:00') print("\n"); else { print("\n"); } } else { print("\n"); print(""); } print("\n"); if ($enabled) print(""); else print(""); /////////////////////////Ban Chat PM////////////////////////////////////////////////// if ($CURUSER["class"] < UC_MODERATOR ) { print("\n"); print("\n"); } else { print("\n"); print("\n"); } /////////////////////////Ban Chat PM////////////////////////////////////////////////// if ($CURUSER["class"] < UC_ADMINISTRATOR) print(""); else print(""); print(""); print("\n"); print("
Заголовок
Аватар
ДонорДа Нет
Класс
Сбросить день рожденияДаНет
История пользователя
Добавить заметку
Предупреждение " . ( $warned ? "ДаНет" : "Нет" ) ."На неограниченый срок
До $warneduntil"); print(" (" . mkprettytime(strtotime($warneduntil) - gmtime()) . " осталось)
Предупредить на        Комментарий в ЛС:
ВключенДа Нет
Причина отключения: 
Причина включения: 
Бан в чатеДа Нет
Бан ЛСДа Нет
Удалить
\n"); print("\n"); print("
\n"); end_frame(); } end_main_frame(); stdfoot();