Файл: sys/fnc/medal.php
Строк: 24
<?
function medal($user=NULL)
{
$ank=mysql_fetch_array(mysql_query("SELECT * FROM `user` WHERE `id` = $user LIMIT 1"));
################################################################################
################################################################################
if($ank['rating']>=10 && $ank['rating']<=30)echo " <img src='/images/medal_silver.gif'>";
if($ank['rating']>=31 && $ank['rating']<=50)echo " <img src='/images/medal_silver.gif'><img src='/images/medal_bronze.gif'>";
if($ank['rating']>=51 && $ank['rating']<=100)echo " <img src='/images/medal_silver.gif'><img src='/images/medal_bronze.gif'><img src='/images/medal_gold.gif'>";
if($ank['rating']>=101 && $ank['rating']<=9999999999999999999)echo " <img src='/images/medal_silver.gif'><img src='/images/medal_bronze.gif'><img src='/images/medal_gold.gif'> <img src='/images/vip.png'>";
################################################################################
}
?>