<?php
/*======================================================================*\
|| #################################################################### ||
|| # EoT-Clan BC2 Server Stats                                        # ||
|| # ---------------------------------------------------------------- # ||
|| # Dieses Copyright darf nicht entfernt werden                      # ||
|| # This file may not be redistributed in whole or significant part. # ||
|| # -----------------BC2 Server Stats is a free Software-------------# ||
|| #                      http://eot-clan.net                         # ||
|| #################################################################### ||
\*======================================================================*/
if ($data[$key.'_kills'] >= 15){
      	$bron = '<img src="http://'.$_SERVER['HTTP_HOST'].'/'.$url['1'].'/img/stars/s_bron.png" border="0" title="bronzestar"/>';
      	$needB = '';
      }else{
      	$bron = '<img class="inactive" src="http://'.$_SERVER['HTTP_HOST'].'/'.$url['1'].'/img/stars/s_bron.png" border="0" title="bronzestar"/>';
      	$needB = (15-$data[$key.'_kills']).lang_stars_kills_bron.'<br />';
      }
      
      if ($data[$key.'_kills'] >= 25){
      	$silv = '<img src="http://'.$_SERVER['HTTP_HOST'].'/'.$url['1'].'/img/stars/s_silv.png" border="0" title="silvstar"/>';
        $needS = '';
      }else{
      	$silv = '<img class="inactive" src="http://'.$_SERVER['HTTP_HOST'].'/'.$url['1'].'/img/stars/s_silv.png" border="0" title="silvstar"/>';
      	$needS = (25-$data[$key.'_kills']).lang_stars_kills_silv.'<br />';
      }
      
      
      if ($data[$key.'_kills'] >= 50){
      	$gold = '<img src="http://'.$_SERVER['HTTP_HOST'].'/'.$url['1'].'/img/stars/s_gold.png" border="0" title="goldstar"/>';
      	$needG = '';
      	    if ($data[$key.'_kills'] >= 50 && $data[$key.'_kills'] <= 99){
      	      $count = '<sub><span style="font-size:8px;">1</sub></span>';
      	      $needG = (100-$data[$key.'_kills']).lang_stars_kills_gold.' 2<br />';
             }elseif ($data[$key.'_kills'] >= 100 && $data[$key.'_kills'] <= 149){
             	$count = '<sub><span style="font-size:8px;">2</sub></span>';
             	$needG = (150-$data[$key.'_kills']).lang_stars_kills_gold.' 3<br />';
             }elseif ($data[$key.'_kills'] >= 150 && $data[$key.'_kills'] <= 199){
             	$count = '<sub><span style="font-size:8px;">3</sub></span>';
             	$needG = (200-$data[$key.'_kills']).lang_stars_kills_gold.' 4<br />';
             }elseif ($data[$key.'_kills'] >= 200 && $data[$key.'_kills'] <= 249){
             	$count = '<sub><span style="font-size:8px;">4</sub></span>';
             	$needG = (250-$data[$key.'_kills']).lang_stars_kills_gold.' 5<br />';
             }elseif ($data[$key.'_kills'] >= 250 && $data[$key.'_kills'] <= 299){
             	$count = '<sub><span style="font-size:8px;">5</sub></span>';
             	$needG = (300-$data[$key.'_kills']).lang_stars_kills_gold.' 6<br />';
             }elseif ($data[$key.'_kills'] >= 300 && $data[$key.'_kills'] <= 349){
             	$count = '<sub><span style="font-size:8px;">6</sub></span>';
             	$needG = (350-$data[$key.'_kills']).lang_stars_kills_gold.' 7<br />';
             }elseif ($data[$key.'_kills'] >= 350 && $data[$key.'_kills'] <= 399){
             	$count = '<sub><span style="font-size:8px;">7</sub></span>';
             	$needG = (400-$data[$key.'_kills']).lang_stars_kills_gold.' 8<br />';
             }elseif ($data[$key.'_kills'] >= 400 && $data[$key.'_kills'] <= 449){
             	$count = '<sub><span style="font-size:8px;">8</sub></span>';
             	$needG = (450-$data[$key.'_kills']).lang_stars_kills_gold.' 9<br />';
             }elseif ($data[$key.'_kills'] >= 450){
             	$count = '<sub><span style="font-size:8px;">9</sub></span>';
            }      
      }else{
      	$gold = '<img class="inactive" src="http://'.$_SERVER['HTTP_HOST'].'/'.$url['1'].'/img/stars/s_gold.png" border="0" title="goldstar"/>';
      	$count = '<sub><span style="font-size:8px;">0</sub></span>';
      	$needG = (50-$data[$key.'_kills']).lang_stars_kills_gold.' 1<br />';
      }
      
      if ($data[$key.'_kills'] >= 500){
      	$plat = '<img src="http://'.$_SERVER['HTTP_HOST'].'/'.$url['1'].'/img/stars/s_plat.png" border="0" title="platstar"/>';
        $needP = '';
      }else{
      	$plat = '<img class="inactive" src="http://'.$_SERVER['HTTP_HOST'].'/'.$url['1'].'/img/stars/s_plat.png" border="0" title="platstar"/>';
      	$needP = (500-$data[$key.'_kills']).lang_stars_kills_plat.'<br />';
      }
		