changeset 2513:4cbd314e5d9f

WIP for #158
author Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk>
date Mon, 24 Oct 2016 10:57:50 +0100
parents 0217c4781e5e
children fb8f43204ae0
files php/keygen.php php/requestKey.php
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/php/keygen.php	Mon Oct 24 10:48:00 2016 +0100
+++ b/php/keygen.php	Mon Oct 24 10:57:50 2016 +0100
@@ -26,8 +26,8 @@
             }
         }
     }
-    $filename = "saves/save-".$key_requested.".xml";
-    $fileHandle = fopen($filename, 'w');
+    $filename = "../saves/save-".$key_requested.".xml";
+    $fileHandle = fopen($filename, 'c');
     if ($fileHandle == FALSE) {
         echo $xml_error;
         return;
--- a/php/requestKey.php	Mon Oct 24 10:48:00 2016 +0100
+++ b/php/requestKey.php	Mon Oct 24 10:57:50 2016 +0100
@@ -41,7 +41,7 @@
     }
 }
 
-$filename = "saves/save-".$key.".xml";
+$filename = "../saves/save-".$key.".xml";
 $fileHandle = fopen($filename, 'w');
 if ($fileHandle == FALSE) {
     echo "<response><state>ERROR</state><key>".$key."</key></response>";