diff php/requestKey.php @ 3028:9a201c63a0eb

Implementation for #231
author Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk>
date Tue, 19 Sep 2017 20:26:54 +0300
parents 8805556c0f42
children 53d701288da5
line wrap: on
line diff
--- a/php/requestKey.php	Thu Sep 14 13:14:00 2017 +0100
+++ b/php/requestKey.php	Tue Sep 19 20:26:54 2017 +0300
@@ -11,6 +11,10 @@
     return $randomString;
 }
 
+if (!file_exists("../saves")) {
+    mkdir("../saves");
+}
+
 // Request a new session key from the server
 header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
 header("Cache-Control: post-check=0, pre-check=0", false);