Mercurial > hg > webaudioevaluationtool
comparison save.php @ 1221:310b4640b93d
Better solve for #1629
author | Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk> |
---|---|
date | Tue, 23 Feb 2016 16:59:59 +0000 |
parents | 585e06d319d2 |
children | 124e6c702845 |
comparison
equal
deleted
inserted
replaced
1220:585e06d319d2 | 1221:310b4640b93d |
---|---|
1 <?php | 1 <?php |
2 date_default_timezone_set("Europe/London"); | 2 try{ |
3 date_default_timezone_get(); | |
4 } | |
5 catch(Exception $e){ | |
6 date_default_timezone_set('UTC'); // Sets to UTC if not specified anywhere in .ini | |
7 } | |
3 header('Access-Control-Allow-Origin: *'); | 8 header('Access-Control-Allow-Origin: *'); |
4 header("Content-type: text/xml"); | 9 header("Content-type: text/xml"); |
5 error_reporting(0); | 10 error_reporting(0); |
6 $postText = file_get_contents('php://input'); | 11 $postText = file_get_contents('php://input'); |
7 $sha1_hash = sha1($postText); | 12 $sha1_hash = sha1($postText); |