rewriterules - ajout des pages de documentation

This commit is contained in:
gnieark 2015-11-29 20:22:12 +01:00
parent 16889fb2e4
commit 2c44fe1e51
3 changed files with 8 additions and 3 deletions

View File

@ -128,7 +128,10 @@ if($currentArena == ""){
default: default:
//battle history for this arena //battle history for this arena
$hist=get_battles_history($currentArena); $hist=get_battles_history($currentArena);
echo '<aside id="history"><h2>Scores</h2>'; echo '<aside id="history">
<h2>infos:</h2>
<a href="/'.$currentArena.'/doc">'.$lang['DEV_DOC_SPECS_LINKS'].'</a>
<h2>Scores</h2>';
foreach($hist as $sc){ foreach($hist as $sc){
echo '<h3>'.$sc['bot1'].' VS '.$sc['bot2'].'</h3> echo '<h3>'.$sc['bot1'].' VS '.$sc['bot2'].'</h3>
<ul> <ul>

View File

@ -7,5 +7,6 @@ $lang=array(
'VICTORIES' => 'victories', 'VICTORIES' => 'victories',
'DRAW' => 'drawn match', 'DRAW' => 'drawn match',
'MAKE_DUEL' => 'Organise a duel', 'MAKE_DUEL' => 'Organise a duel',
'FIGHT' => 'Fight!' 'FIGHT' => 'Fight!',
'DEV_DOC_SPECS_LINKS' =>'Program your own bot, and send it on this arena. Read tle technicals specifications'
); );

View File

@ -10,6 +10,7 @@ $lang=array(
'VICTORIES' => 'victoires', 'VICTORIES' => 'victoires',
'DRAW' => 'matchs nuls', 'DRAW' => 'matchs nuls',
'MAKE_DUEL' => 'Provoquer un duel', 'MAKE_DUEL' => 'Provoquer un duel',
'FIGHT' => 'Baston!' 'FIGHT' => 'Baston!',
'DEV_DOC_SPECS_LINKS' =>'Devellopez votre bot et envoyez le dans cette arène. Voici les spécifications techniques'
); );