<?
function ava_flirt($id)
{
$its=intval($id);
$ank=mysql_fetch_assoc(mysql_query("SELECT * FROM `user` WHERE `id` = '".$its."' LIMIT 1"
);
$ava_u = mysql_fetch_array(mysql_query("SELECT * FROM `gallery_foto` WHERE `avatar` = '1' AND `id_user` = '$ank[id]' LIMIT 1"
);
if (is_file(H."sys/gallery/128/".$ava_u['id'].".".$ava_u['ras'].""
)
{
echo "<img src='/foto/foto128/".$ava_u['id'].".".$ava_u['ras']."' alt='Simptom' height='150' />";
}else{
echo "<img src='img/ava.png' alt='Simptom' height='150'>";
}
}
function mini_ava_flirt($id)
{
$its=intval($id);
$ank=mysql_fetch_array(mysql_query("SELECT * FROM `user` WHERE `id` = '".$its."' LIMIT 1"
);
$ava_u=mysql_fetch_array(mysql_query("SELECT * FROM `gallery_foto` WHERE `avatar` = '1' AND `id_user` = '$ank[id]' LIMIT 1"
);
if (is_file(H."sys/gallery/128/".$ava_u['id'].".".$ava_u['ras'].""
)
{
echo "<img src='/foto/foto128/".$ava_u['id'].".".$ava_u['ras']."' alt='Simptom' height='150' />";
}else{
echo "<img src='img/ava.png' alt='Simptom' height='150'>";
}
}
?>
Кароче не могу выставить чтоб высвечивало тех кто в онлайне и с авой поставленой помогите плиз
(((