comparison save.php @ 563:27a96b51255c Dev_main

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 3ddf4feceab7
children 6833d8c2b52e
comparison
equal deleted inserted replaced
562:3ddf4feceab7 563:27a96b51255c
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);