|
|
|
@ -7,7 +7,7 @@ include_once(ROOT_PATH.'/include/elo.inc.php');
|
|
|
|
|
include_once(ROOT_PATH.'/include/semaphore.inc.php');
|
|
|
|
|
|
|
|
|
|
function getClanRanking() {
|
|
|
|
|
$qry = mysql_query('SELECT id from clan ORDER by elo desc LIMIT 10');
|
|
|
|
|
$qry = mysql_query('SELECT id, elo from clan ORDER by elo desc LIMIT 10');
|
|
|
|
|
$clan_ids = array();
|
|
|
|
|
while($res = mysql_fetch_row($qry))
|
|
|
|
|
$clan_ids[] = $res;
|
|
|
|
@ -17,7 +17,8 @@ function getClanRanking() {
|
|
|
|
|
|
|
|
|
|
function distributeClanPrices(array $prices, array $results) {
|
|
|
|
|
$n = min(count($prices), count($results));
|
|
|
|
|
|
|
|
|
|
echo "Resultate";
|
|
|
|
|
print_r($results);
|
|
|
|
|
for($i = 0; $i<$n; $i++) {
|
|
|
|
|
$points = $prices[$i];
|
|
|
|
|
foreach($results[$i] as $winner) {
|
|
|
|
@ -116,4 +117,4 @@ if(!semaphoreUP($ressource)) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
?>
|
|
|
|
|
?>
|
|
|
|
|