Mercurial > hg > webaudioevaluationtool
comparison save.php @ 2129:ef2ef224fd02
Better solve for #1629
author | Nicholas Jillings <nickjillings@users.noreply.github.com> |
---|---|
date | Tue, 23 Feb 2016 16:59:59 +0000 |
parents | 098aaf69bdbe |
children | 124e6c702845 |
comparison
equal
deleted
inserted
replaced
2128:098aaf69bdbe | 2129:ef2ef224fd02 |
---|---|
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); |