botsArena/src/scores.php

23 lines
817 B
PHP
Raw Normal View History

2016-06-10 18:35:28 +02:00
<?php
2016-06-19 23:09:59 +02:00
#- BEGIN LICENSE BLOCK ---------------------------------------
#
# This file is part of botsArena.
#
# Copyright (C) Gnieark et contributeurs
# Licensed under the GPL version 3.0 license.
# See LICENSE file or
# http://www.gnu.org/licenses/gpl-3.0-standalone.html
#
# -- END LICENSE BLOCK -----------------------------------------
2016-06-10 18:33:18 +02:00
$hist=get_battles_history($currentArena);
2016-06-10 18:35:28 +02:00
2016-06-10 18:33:18 +02:00
foreach($hist as $sc){
2016-06-10 18:36:47 +02:00
echo '<article><h3><a href="/p/aboutBot/'.urlencode(htmlentities($sc['bot1'])).'">'.$sc['bot1'].'</a> VS <a href="/p/aboutBot/'.urlencode(htmlentities($sc['bot2'])).'">'.$sc['bot2'].'</a></h3>
2016-06-10 18:33:18 +02:00
<ul>
<li>'.$sc['bot1']." ".$lang['VICTORIES'].":".$sc['player1Wins'].'</li>
<li>'.$sc['bot2']." ".$lang['VICTORIES'].":".$sc['player2Wins'].'</li>
<li>'.$lang['DRAW'].":".$sc['draws'].'</li>
2016-06-10 18:36:47 +02:00
</ul></article>';
2016-06-10 18:33:18 +02:00
}