diff --git a/html/index.php b/html/index.php
index deed18c..0a1f8ee 100644
--- a/html/index.php
+++ b/html/index.php
@@ -50,7 +50,7 @@ if(isset($_GET['arena'])){
$asideSectionContent='
infos:
'.$lang['DEV-YOUR-OWN-BOT'].'
'.$lang['DOC_SPECS_LINKS'].'
Scores
';
foreach($hist as $sc){
- $asideSectionContent.=''.$sc['bot1'].' VS '.$sc['bot2'].'
+ $asideSectionContent.='
- '.$sc['bot1']." ".$lang['VICTORIES'].":".$sc['player1Wins'].'
- '.$sc['bot2']." ".$lang['VICTORIES'].":".$sc['player2Wins'].'
@@ -123,7 +123,45 @@ if(isset($_GET['arena'])){
$cssAdditionalScript="";
$jsAdditionalScript="";
break;
-
+ case "aboutBot":
+ if(!isset($_GET['params'])){
+ error(404,"Page does not exists");
+ die;
+ }
+ $rs=mysqli_query($lnMysql,
+ "SELECT id,game,url,description,date_inscription
+ FROM bots
+ WHERE name='".mysqli_real_escape_string($lnMysql,$_GET['params'])."'
+ AND active='1'");
+ if(!$r=mysqli_fetch_row($rs)){
+ error(404,"Page doesn't exist");
+ die;
+ }
+ $theBot=array(
+ 'id' => $r[0],
+ 'game' => $r[1],
+ 'url' => $r[2],
+ 'description' => $r[3],
+ 'date_inscription' => $r[4]
+ );
+
+ $siteTitle=htmlentities($_GET['params']);
+ $siteDescription=htmlentities($_GET['params'])." bot details";
+ $mainSectionScript="../src/aboutBot.php";
+ $hist=get_battles_history($r[0]);
+ $asideSectionContent='Scores
';
+ foreach($hist as $sc){
+ $asideSectionContent.=''.$sc['bot1'].' VS '.$sc['bot2'].'
+
+ - '.$sc['bot1']." ".$lang['VICTORIES'].":".$sc['player1Wins'].'
+ - '.$sc['bot2']." ".$lang['VICTORIES'].":".$sc['player2Wins'].'
+ - '.$lang['DRAW'].":".$sc['draws'].'
+
';
+ }
+ $cssAdditionalScript="";
+ $jsAdditionalScript="";
+
+ break;
default:
error(404,"Not found");
break;
diff --git a/src/aboutBot.php b/src/aboutBot.php
new file mode 100644
index 0000000..66e3121
--- /dev/null
+++ b/src/aboutBot.php
@@ -0,0 +1,14 @@
+
+ $r[0],
+ 'game' => $r[1],
+ 'url' => $r[2],
+ 'description' => $r[3],
+ 'date_inscription' => $r[4]
+ );
+*/
+echo $theBot['description'];
+?>
+
\ No newline at end of file
diff --git a/src/home.php b/src/home.php
index 6f40369..d3ce6cc 100644
--- a/src/home.php
+++ b/src/home.php
@@ -17,5 +17,4 @@
-
-
+
\ No newline at end of file