Просмотр поста

.
Iron_Man
Добавлено: 29.05.2017 / 21:16
sukurich, Не пропускает никого

Добавлено: 29.05.2017 / 21:17
Джон 322

Добавлено: 29.05.2017 / 21:22
global $set_user, $realtime, $user_id, $admp, $home;
    $out = false;
$colornick = mysql_fetch_assoc(mysql_query("select `colornick`,`colornick2` from `users` where `id`='".$user_id."';"));
$colornickk = mysql_fetch_assoc(mysql_query("select `colornick`,`colornick2` from `users` where `id`='".$user['id']."';"));
    if (!$user['id']) {
        $out = '<b>Гость</b>';
        if (!empty($user['name']))
            $out .= ': ' . $user['name'];
        if (!empty($str))
            $out .= ' ' . $str;
    } else {
        if ($set_user['avatar']) {
            $out .= '<table cellpadding="0" cellspacing="0"><tr><td>';
            if (file_exists(('../files/avatar/' . $user['id'] . '.png')))
                $out .= '<img src="../files/avatar/' . $user['id'] . '.png" width="32" height="32" alt="' . $user['name'] . '" />&nbsp;';
            else
                $out .= '<img src="../images/empty.png" width="32" height="32" alt="' . $user['name'] . '" />&nbsp;';
            $out .= '</td><td>';
        }
        if ($user['sex'])
            $out .= '<img src="../theme/' . $set_user['skin'] . '/images/' . ($user['sex'] == 'm' ? 'm' : 'w') . ($user['datereg'] > $realtime - 86400 ? '_new' : '') . '.png" width="16" height="16" align="middle" />&nbsp;';
        else
            $out .= '<img src="../images/del.png" width="12" height="12" align="middle" />&nbsp;';
        $out .= !$user_id || $user_id == $user['id'] ? '<b>'.gradient('' . $user['name'] . '', '' . $colornick['colornick'] . '',''.$colornick['colornick2'].'').'</b>' : '<a href="../str/anketa.php?id=' . $user['id'] . '"><b>'.gradient('' . $user['name'] . '', '' . $colornickk['colornick'] . '',''.$colornickk['colornick2'].'').'</b></a>';


При смене ника, колонка colornick сама очищается, кто может исправить

Добавлено: 29.05.2017 / 21:45
Никто не знает?