This commit is contained in:
Gnieark 2016-06-20 16:00:05 +02:00
parent 8adb38e2cf
commit 189148ab46

View File

@ -242,10 +242,15 @@ switch ($_POST['act']){
break; break;
case "fight": case "fight":
if($_POST['fullLogs'] == 'true'){ if($_POST['fullLogs'] == 'true'){
$fullLogs = true; $WantFullLogs = true;
}else{ }else{
$fullLogs = false; $WantFullLogs = false;
} }
if(!isset($fullLogs)){
$fullLogs = "";
}
if(count($_SESSION['strikes'][1]) == count($_SESSION['strikes'][2])){ if(count($_SESSION['strikes'][1]) == count($_SESSION['strikes'][2])){
//player 1 has to fight //player 1 has to fight
$currentPlayer=1; $currentPlayer=1;
@ -281,12 +286,12 @@ switch ($_POST['act']){
); );
$anwserPlayer=get_IA_Response($currentBot['url'],$botParamsToSend); $anwserPlayer=get_IA_Response($currentBot['url'],$botParamsToSend);
$anwserPlayerJson=$anwserPlayer['responseArr']; $anwserPlayerJson=$anwserPlayer['responseArr'];
if($fullLogs){ if($WantFullLogs){
$fullLogs='Arena send to '.$currentBot['name'].'<em>'.htmlentities($anwserPlayer['messageSend']).'</em><br /> $fullLogs.='Arena send to '.$currentBot['name'].'<em>'.htmlentities($anwserPlayer['messageSend']).'</em><br />
HTTP status: <em>'.htmlentities($anwserPlayer['httpStatus']).'</em><br /> HTTP status: <em>'.htmlentities($anwserPlayer['httpStatus']).'</em><br />
Bot anwser: <em>'.htmlentities($anwserPlayer['response']).'</em><br />'; Bot anwser: <em>'.htmlentities($anwserPlayer['response']).'</em><br />';
}else{ }else{
$fullLogs=""; $fullLogs.="";
} }