diff --git a/html/imgs/Arenes-Nimes.jpg b/html/imgs/Arenes-Nimes.jpg
new file mode 100644
index 0000000..cba7732
Binary files /dev/null and b/html/imgs/Arenes-Nimes.jpg differ
diff --git a/src/arenas/Battleship/public.php b/src/arenas/Battleship/public.php
index 7914490..c9627e5 100644
--- a/src/arenas/Battleship/public.php
+++ b/src/arenas/Battleship/public.php
@@ -1,4 +1,10 @@
+
+Cette arène est en cours de maintenance, elle sera de nouveau prête dans les prochains jours
+
+
+
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/src/arenas/connectFour/functions.php b/src/arenas/connectFour/functions.php
index 7b7f051..09b1f14 100644
--- a/src/arenas/connectFour/functions.php
+++ b/src/arenas/connectFour/functions.php
@@ -1,23 +1,4 @@
';
- return json_decode($output,TRUE);
-}
function get_Post_Params($botsCount){
$keysBots=array('bot1','bot2');
foreach($keysBots as $botKey){
diff --git a/src/arenas/tictactoe/functions.php b/src/arenas/tictactoe/functions.php
index c1ebddd..4e04812 100644
--- a/src/arenas/tictactoe/functions.php
+++ b/src/arenas/tictactoe/functions.php
@@ -34,23 +34,3 @@ function get_Bots_Array(){
return $bots;
}
*/
-function get_IA_Response($iaUrl,$postParams){
- //send params JSON as body
-
- $data_string = json_encode($postParams);
-
- $ch = curl_init($iaUrl);
- curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
- curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
- curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
- curl_setopt($ch, CURLOPT_POSTFIELDS, $data_string);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- curl_setopt($ch, CURLOPT_HTTPHEADER, array(
- 'Content-Type: application/json',
- 'Content-Length: ' . strlen($data_string))
- );
- $output= curl_exec($ch);
- curl_close($ch);
- //echo $iaUrl." ".$data_string." ".$output.'
';
- return json_decode($output,TRUE);
-}
\ No newline at end of file
diff --git a/src/functions.php b/src/functions.php
index 0ea3b07..9b2caca 100644
--- a/src/functions.php
+++ b/src/functions.php
@@ -331,4 +331,25 @@ function does_arena_exist($string,$arenasArr){
}
}
return false;
+}
+
+function get_IA_Response($iaUrl,$postParams){
+ //send params JSON as body
+
+ $data_string = json_encode($postParams);
+
+ $ch = curl_init($iaUrl);
+ curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
+ curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
+ curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
+ curl_setopt($ch, CURLOPT_POSTFIELDS, $data_string);
+ curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
+ curl_setopt($ch, CURLOPT_HTTPHEADER, array(
+ 'Content-Type: application/json',
+ 'Content-Length: ' . strlen($data_string))
+ );
+ $output= curl_exec($ch);
+ curl_close($ch);
+ //echo $iaUrl." ".$data_string." ".$output.'
';
+ return json_decode($output,TRUE);
}
\ No newline at end of file