Mercurial > hg > webaudioevaluationtool
comparison php/requestKey.php @ 2628:9c7501dac617
#49. Correct string concat
author | Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk> |
---|---|
date | Thu, 19 Jan 2017 11:25:11 +0000 |
parents | 0bce959c42ed |
children | 6324f500beb3 |
comparison
equal
deleted
inserted
replaced
2627:0bce959c42ed | 2628:9c7501dac617 |
---|---|
17 header("Pragma: no-cache"); | 17 header("Pragma: no-cache"); |
18 | 18 |
19 // Get the current test URL | 19 // Get the current test URL |
20 $testURL = ""; | 20 $testURL = ""; |
21 if (isset($_GET['url'])) { | 21 if (isset($_GET['url'])) { |
22 $testURL = $_GET["url"]; | 22 $testURL = "../".$_GET["url"]; |
23 } | 23 } |
24 | 24 |
25 $saves = glob("../saves/*.xml"); | 25 $saves = glob("../saves/*.xml"); |
26 | 26 |
27 $key = ""; | 27 $key = ""; |
56 // TODO: | 56 // TODO: |
57 // Generate the XML Base file and save it | 57 // Generate the XML Base file and save it |
58 $doc_struct = new SimpleXMLElement('<waetresult/>'); | 58 $doc_struct = new SimpleXMLElement('<waetresult/>'); |
59 $doc_struct->addAttribute("key",$key); | 59 $doc_struct->addAttribute("key",$key); |
60 // Add the root | 60 // Add the root |
61 if (file_exists("../".$testURL)) { | 61 if (file_exists($testURL)) { |
62 $test_proto = new SimpleXMLElement(file_get_contents($testURL, FILE_TEXT)); | 62 $test_proto = new SimpleXMLElement(file_get_contents($testURL, FILE_TEXT)); |
63 $doc_struct->addChild($test_proto); | 63 $doc_struct->addChild($test_proto); |
64 } | 64 } |
65 // Add start time | 65 // Add start time |
66 // Add IP Address information | 66 // Add IP Address information |