PITBULL,
<?php
//-------------функции ника (с онлайном и аватаром)-------------//
function nikus($ius)
{
global $user;
if (isset($ius)) $ius = intval($ius);
$result = mysql_query(\"SELECT * FROM `users` WHERE `id` = \'$ius\' LIMIT 1\"
;
$nik = mysql_fetch_assoc($result);
if (!empty($nik[\'id\'])) {
if ($nik[\'sex\'] == 2) $_sex = \'М\';
elseif ($nik[\'sex\'] == 1) $_sex = \'Ж\';
else $_sex = \'Не установлен\';
$gorod = mysql_fetch_array(mysql_query(\"SELECT `city_name` FROM `geo_cities` WHERE `city_id` = \'$nik[city]\' LIMIT 1\"
);
$name = $nik[\'user\'];
if ($nik[\'color\'] == 1) $name = GradientLetter($name, \'000000\', \'FF0000\');
elseif ($nik[\'color\'] == 2) $name = GradientLetter($name, \'000000\', \'00FF00\');
elseif ($nik[\'color\'] == 3) $name = GradientLetter($name, \'000000\', \'DDE4DA\');
elseif ($nik[\'color\'] == 4) $name = GradientLetter($name, \'000000\', \'0000FF\');
elseif ($nik[\'color\'] == 5) $name = GradientLetter($name, \'FF0000\', \'A80AEA\');
elseif ($nik[\'color\'] == 6) $name = GradientLetter($name, \'0000FF\', \'0ADFEC\');
elseif ($nik[\'color\'] == 7) $name = GradientLetter($name, \'FCD05B\', \'E665F9\');
elseif ($nik[\'color\'] == 8) $name = GradientLetter($name, \'C3C3C3\', \'2020EF\');
elseif ($nik[\'color\'] == 9) $name = GradientLetter($name, \'4ECF0F\', \'FAB600\');
elseif ($nik[\'color\'] == 10) $name = GradientLetter($name, \'F3F016\', \'3A2FC8\');
elseif ($nik[\'color\'] == 11) $name = GradientLetter($name, \'E80A24\', \'F9BB14\');
elseif ($nik[\'color\'] == 12) $name = GradientLetter($name, \'46A6F7\', \'0AD90A\');
elseif ($nik[\'color\'] == 13) $name = GradientLetter($name, \'EA18F7\', \'000000\');
if ($nik[\'onl\'] + 200 > time()) $_on = \'<img src=\"/ico/online.gif\" alt=\"on\"/> \';
$rot = mysql_fetch_array(mysql_query(\"SELECT `rotate`, `block` FROM `albums` WHERE `user` = \'$nik[id]\' AND `type` = \'f\' AND `path` = \'$nik[img]\'\"
);
if ($rot[1] == 1) $Foto = \'<img src=\"/ico/block_photo.gif\" width=\"35\" height=\"35\" alt=\"\"/>\';
else $Foto = \'<img src=\"/resize.php?img=\'.$nik[\'img\'].\'&width=35&height=0&i=\'.$rot[0].\'\" alt=\"\"/> \';
if ($user[\'avka\'] == 1) {
$foto = (!empty($nik[\'img\']))
? $Foto
: \'<img src=\"/ico/no_avatar.gif\" alt=\"\"/> \';
}
$gorod[0] = (!empty($gorod[0])) ? \', \' . $gorod[0] : \', Не указан\';
$BirthEx = explode(\'.\', $nik[\'birth\']);
$Birth = ($BirthEx[0] . \'.\' . $BirthEx[1] == date(\'j.n\')) ? \' <img src=\"/ico/sh.gif\" alt=\"\"/>\' : \'\';
return $foto . \'<a href=\"/\' . $nik[\'id\'] . \'\">\' . $name . \'</a> (<b>\' . $_sex . \'/\' . calc_age($nik[\'birth\']) . \'</b>
\' . $gorod[0] . \' \' . $_on . $Birth;
} else {
return \'Удален\';
}
}
?> вот еле нашел))) тоже с телефона))