Mercurial > hg > webaudioevaluationtool
comparison keygen.php @ 2151:4071db9216b7
Python 2.x server can perform intermediate saves.
author | Nicholas Jillings <nickjillings@users.noreply.github.com> |
---|---|
date | Wed, 09 Mar 2016 13:12:02 +0000 |
parents | 90212e9e9295 |
children | ba6b9e1aaef5 |
comparison
equal
deleted
inserted
replaced
2150:5df4616b6e7f | 2151:4071db9216b7 |
---|---|
5 | 5 |
6 $key_requested = $_GET['key']; | 6 $key_requested = $_GET['key']; |
7 | 7 |
8 $xml_good = "<response><state>OK</state><key>".$key_requested."</key></response>"; | 8 $xml_good = "<response><state>OK</state><key>".$key_requested."</key></response>"; |
9 $xml_bad = "<response><state>NO</state><key>".$key_requested."</key></response>"; | 9 $xml_bad = "<response><state>NO</state><key>".$key_requested."</key></response>"; |
10 $xml_bad = "<response><state>ERROR</state><key>".$key_requested."</key></response>"; | 10 $xml_error = "<response><state>ERROR</state><key>".$key_requested."</key></response>"; |
11 if (is_array($saves)) | 11 if (is_array($saves)) |
12 { | 12 { |
13 foreach($saves as $filename) { | 13 foreach($saves as $filename) { |
14 $xml_string = file_get_contents($filename, FILE_TEXT); | 14 $xml_string = file_get_contents($filename, FILE_TEXT); |
15 $xml_object = simplexml_load_string($xml_string); | 15 $xml_object = simplexml_load_string($xml_string); |