annotate save.php @ 1076:1d4d4d50ce62

Scripts: generate_report slightly more robust against missing duration values
author Brecht De Man <BrechtDeMan@users.noreply.github.com>
date Tue, 22 Sep 2015 18:19:38 +0200
parents 61a211d3a567
children de9a0a740b6e 7b0ce3a9ddc1
rev   line source
n@845 1 <?php
n@845 2 head('Access-Control-Allow-Origin: *');
n@845 3 $postText = file_get_contents('php://input');
n@845 4 $datetime = date('ymdHis');
n@845 5 $xmlfile = "save".$datetime.".xml";
n@845 6 $fileHandle = fopen("saves/".$xmlfile, 'w');
n@845 7 fwrite($fileHandle, $postText);
n@845 8 fclose($fileHandle);
n@845 9 ?>