View Single Post
  #1  
Old 11th April 2016, 03:06
CAGADA's Avatar
CAGADA CAGADA is offline
Senior Member
 
Join Date: Jan 2011
P2P
Posts: 17
Default user class color V3 top10.php
how add user class color in the top10.php (user) ?

Code:
$HTMLOUT.= "<br /><br /><h2>Top 10 Downloaders</h2>";
$result = sql_query("SELECT username, downloaded FROM users WHERE enabled = 'yes' ORDER BY downloaded DESC LIMIT 10");
$counted = mysqli_num_rows($result);
if ($counted == "10") {
    $arr = mysql_fetch_rowsarr($result);
    $user1 = $arr[0]['username'];
    $user2 = $arr[1]['username'];
    $user3 = $arr[2]['username'];
    $user4 = $arr[3]['username'];
    $user5 = $arr[4]['username'];
    $user6 = $arr[5]['username'];
    $user7 = $arr[6]['username'];
    $user8 = $arr[7]['username'];
    $user9 = $arr[8]['username'];
    $user10 = $arr[9]['username'];
    $upped1 = $arr[0]['downloaded'];
    $upped2 = $arr[1]['downloaded'];
    $upped3 = $arr[2]['downloaded'];
    $upped4 = $arr[3]['downloaded'];
    $upped5 = $arr[4]['downloaded'];
    $upped6 = $arr[5]['downloaded'];
    $upped7 = $arr[6]['downloaded'];
    $upped8 = $arr[7]['downloaded'];
    $upped9 = $arr[8]['downloaded'];
    $upped10 = $arr[9]['downloaded'];
    $HTMLOUT.= "$imgstartbar&amp;chds=0,$upped1&amp;chxr=1,0,$upped1&amp;chd=t:$upped1,$upped2,$upped3,$upped4,$upped5,$upped6,$upped7,$upped8,$upped9,$upped10&amp;chxt=x,y,x&amp;chxl=0:|$user1|$user2|$user3|$user4|$user5|$user6|$user7|$user8|$user9|$user10|1:||||||||||".mksize($upped1)."|2:|(".mksize($upped1).")|(".mksize($upped2).")|(".mksize($upped3).")|(".mksize($upped4).")|(".mksize($upped5).")|(".mksize($upped6).")|(".mksize($upped7).")|(".mksize($upped8).")|(".mksize($upped9).")|(".mksize($upped10).")\" alt=''/>";
} else {
    $HTMLOUT.= "<h4>Insufficient Downloaders (".$counted.")</h4>";
}
Reply With Quote