This commit is contained in:
Gnieark 2016-06-20 18:40:51 +02:00
parent 189148ab46
commit 1638160816
2 changed files with 11 additions and 7 deletions

@ -1 +1 @@
Subproject commit 7c8b786228bb9e1561ff60a2d6f7f6ce91be6fee
Subproject commit 1d85f9ef3ecfc42bbc4f3c70d5e37ca9a65f629a

View File

@ -56,9 +56,9 @@ switch ($_POST['act']){
die;
}
if($_POST['fullLogs'] == 'true'){
$fullLogs = true;
$wantFullLogs = true;
}else{
$fullLogs = false;
$wantFullLogs = false;
}
//check if bots exists
@ -127,7 +127,7 @@ switch ($_POST['act']){
);
$anwserPlayerJson=get_IA_Response($currentBot['url'],$botParamsToSend);
if($fullLogs){
if($wantFullLogs){
$fullLogs='Arena send to '.$currentBot['name'].'<em>'.htmlentities($anwserPlayerJson['messageSend']).'</em><br/>
HTTP status: <em>'.htmlentities($anwserPlayerJson['httpStatus']).'</em><br/>
Bot anwser: <em>'.htmlentities($anwserPlayerJson['response']).'</em><br/>';
@ -241,10 +241,14 @@ switch ($_POST['act']){
break;
case "fight":
if(($_POST['fullLogs'] <> 'true') && ($_POST['fullLogs'] <> 'false')){
error(500, 'wrong POST parameters');
die;
}
if($_POST['fullLogs'] == 'true'){
$WantFullLogs = true;
$wantFullLogs = true;
}else{
$WantFullLogs = false;
$wantFullLogs = false;
}
if(!isset($fullLogs)){