diff php/requestKey.php @ 3120:53d701288da5

Create new php config to allow saves to be stored outside of web scope
author Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk>
date Wed, 18 Jul 2018 16:47:07 +0100
parents 9a201c63a0eb
children edd536f01e4b
line wrap: on
line diff
--- a/php/requestKey.php	Wed Jul 18 16:32:44 2018 +0100
+++ b/php/requestKey.php	Wed Jul 18 16:47:07 2018 +0100
@@ -57,8 +57,8 @@
         $key = $tempKey;
     }
 }
-
-$filename = "../saves/".$saveFilenamePrefix.$key.".xml";
+$saveLocation = getSaveLocation();
+$filename = $saveLocation.$saveFilenamePrefix.$key.".xml";
 $fileHandle = fopen($filename, 'w');
 if ($fileHandle == FALSE) {
     die("<response><state>ERROR</state><key>".$key."</key><message>Could not open file for writing</message></response>");