(10 июн 2014, 17:37) (
0/
0)
[
0]
<?php function nick($id){
$users = $pdo->query(\"SELECT *
FROM `users` WHERE `id` = \'\".$id.\"\'
LIMIT 1\"smile;
$users = $users->fetch();
if($users[\'sex\'] == 1){
if($users[\'viz\'] > time()-360){$p =
1234;
}else{$p = \'<img src=\"\'.$HOME.\'/
images/onl/man_of.png\" alt=\"*\" title
=
\"Оффлайн\"/>\';}}elseif($users[\'sex\']
== 2){
21: if($users[\'viz\'] > time()-360){$p
=
123;}else{$p = \'<img src=\"\'.$HOME.\'/
images/onl/j_of.png\" alt=\"*\" title =
\"Оффлайн\"/>\';
}
}
return (empty
($users)?\'[Удален]\':\'\'.$p.\' <a href=\"/
user_\'.$users[\'id\'].\'\"><font color=\"\'.
$users[\'color_nick\'].\'\"><b>\'.$users
[\'login\'].\'</b></font></a>\');
} ?>