saSHADE,
###############################
######### Функция ника ########
###############################
function nick($id){
$users = mysql_fetch_array(mysql_query("SELECT * FROM `users` WHERE `id` = '".$id."' LIMIT 1"
);
$repausers = mysql_result(mysql_query('select count(`id`) from `repa_user` where `komy` = "'.$id.'" and `repa` = "+"'),0);
if($users['g_r']==date('Y') && $users['m_r']==date('n') && $users['d_r']==date('j'));
//-----Если пол == 1(мужской)-----//
if($users['level'] == 0)
{
if($users['sex'] == 1)
{
//-----Если онлайн-----//
if($users['viz'] > time()-360)
{
$p = '<img src="'.$HOME.'/images/onl/on_1.gif" alt="*" title="Онлайн" />';
} else {
$p = '<img src="'.$HOME.'/images/onl/off_1.gif" alt="*" title = "Оффлайн"/>';
}
}
}
//-----Если пол == 2(жен)-----//
if($users['level'] == 0)
{
if($users['sex'] == 2)
{
if($users['viz'] > time()-360)
{
$p = '<img src="'.$HOME.'/images/onl/on_0.gif" alt="*" title = "Онлайн"/>';
} else {
$p = '<img src="'.$HOME.'/images/onl/off_0.gif" alt="*" title = "Оффлайн"/>';
}
}
}
#########################
###Модер пацан##############
elseif($users['level'] == 1)
{
if($users['sex'] == 1)
{
if($users['viz'] > time()-360)
{
$p = '<img src="'.$HOME.'/images/onl/mod_on_1.gif" alt="*" title = "Онлайн"/>';
} else {
$p = '<img src="'.$HOME.'/images/onl/mod_off_1.gif" alt="*" title = "Оффлайн"/>';
}
}
}
#####################################################
#########################
###Модер баба##############
if($users['level'] == 1)
{
if($users['sex'] == 2)
{
if($users['viz'] > time()-360)
{
$p = '<img src="'.$HOME.'/images/onl/mod_on_0.gif" alt="*" title = "Онлайн"/>';
} else {
$p = '<img src="'.$HOME.'/images/onl/mod_off_0.gif" alt="*" title = "Оффлайн"/>';
}
}
}
#####################################################
#########################
###Админ пацан##############
elseif($users['level'] >= 2)
{
if($users['sex'] == 1)
{
if($users['viz'] > time()-360)
{
$p = '<img src="'.$HOME.'/images/onl/admin_1.gif" alt="*" title = "Онлайн"/>';
} else {
$p = '<img src="'.$HOME.'/images/onl/off_1.gif" alt="*" title = "Оффлайн"/>';
}
}
}
#####################################################
#########################
###Админ баба##############
if($users['level'] >= 2)
{
if($users['sex'] == 2)
{
if($users['viz'] > time()-360)
{
$p = '<img src="'.$HOME.'/images/onl/admin_0.gif" alt="*" title = "Онлайн"/>';
} else {
$p = '<img src="'.$HOME.'/images/onl/off_0.gif" alt="*" title = "Оффлайн"/>';
}
}
}
{
$p = '<img src="'.$HOME.'/images/bd3.png" alt="*" />';
}
if($repausers['repa'] >= 5 && $repausers['repa'] <= 9)$ur = '<img src="'.$HOME.'/images/medals/bron.png" alt="*" />';
if($repausers['repa'] >= 10 && $repausers['repa'] <= 14)$ur = '<img src="'.$HOME.'/images/medals/silver.png" alt="*" />';
if($repausers['repa'] >= 15 && $repausers['repa'] <= 9999999999999)$ur = '<img src="'.$HOME.'/images/medals/zol.png" alt="*" />';
return (empty($users)?'[Удален]':''.$p.' <a href="/user_'.$users['id'].'"><font color="'.$users['color_nick'].'"><b>'.$users['login'].' '.$ur.'</b></font></a>');
}
###############################