history.php (432B)
1 <?php 2 3 include "helpers.php"; 4 include "backend.php"; 5 include "error.php"; 6 7 // Just relay the request we got from the JavaScript 8 $response = get_to_backend("/history", $_GET); 9 10 if (200 != $response["status_code"]){ 11 echo build_error($response, 12 "Backend error", 13 $response["status_code"]); 14 return; 15 } 16 17 // Give the response "verbatim" back. 18 echo $response["body"]; 19 ?>