.
This commit is contained in:
parent
189148ab46
commit
1638160816
|
@ -1 +1 @@
|
||||||
Subproject commit 7c8b786228bb9e1561ff60a2d6f7f6ce91be6fee
|
Subproject commit 1d85f9ef3ecfc42bbc4f3c70d5e37ca9a65f629a
|
|
@ -56,9 +56,9 @@ switch ($_POST['act']){
|
||||||
die;
|
die;
|
||||||
}
|
}
|
||||||
if($_POST['fullLogs'] == 'true'){
|
if($_POST['fullLogs'] == 'true'){
|
||||||
$fullLogs = true;
|
$wantFullLogs = true;
|
||||||
}else{
|
}else{
|
||||||
$fullLogs = false;
|
$wantFullLogs = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
//check if bots exists
|
//check if bots exists
|
||||||
|
@ -127,7 +127,7 @@ switch ($_POST['act']){
|
||||||
);
|
);
|
||||||
|
|
||||||
$anwserPlayerJson=get_IA_Response($currentBot['url'],$botParamsToSend);
|
$anwserPlayerJson=get_IA_Response($currentBot['url'],$botParamsToSend);
|
||||||
if($fullLogs){
|
if($wantFullLogs){
|
||||||
$fullLogs='Arena send to '.$currentBot['name'].'<em>'.htmlentities($anwserPlayerJson['messageSend']).'</em><br/>
|
$fullLogs='Arena send to '.$currentBot['name'].'<em>'.htmlentities($anwserPlayerJson['messageSend']).'</em><br/>
|
||||||
HTTP status: <em>'.htmlentities($anwserPlayerJson['httpStatus']).'</em><br/>
|
HTTP status: <em>'.htmlentities($anwserPlayerJson['httpStatus']).'</em><br/>
|
||||||
Bot anwser: <em>'.htmlentities($anwserPlayerJson['response']).'</em><br/>';
|
Bot anwser: <em>'.htmlentities($anwserPlayerJson['response']).'</em><br/>';
|
||||||
|
@ -241,12 +241,16 @@ switch ($_POST['act']){
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case "fight":
|
case "fight":
|
||||||
|
if(($_POST['fullLogs'] <> 'true') && ($_POST['fullLogs'] <> 'false')){
|
||||||
|
error(500, 'wrong POST parameters');
|
||||||
|
die;
|
||||||
|
}
|
||||||
if($_POST['fullLogs'] == 'true'){
|
if($_POST['fullLogs'] == 'true'){
|
||||||
$WantFullLogs = true;
|
$wantFullLogs = true;
|
||||||
}else{
|
}else{
|
||||||
$WantFullLogs = false;
|
$wantFullLogs = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!isset($fullLogs)){
|
if(!isset($fullLogs)){
|
||||||
$fullLogs = "";
|
$fullLogs = "";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user