comparison php/config.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
children 8bef85957a2f
comparison
equal deleted inserted replaced
3119:aa4503f8c630 3120:53d701288da5
1 <?php
2 function getSaveLocation() {
3 if (isset($_ENV["WAET_SAVES_LOCATION"])) {
4 return $_ENV["WAET_SAVES_LOCATION"];
5 } else {
6 return "../saves/";
7 }
8 }
9 function getTestLocation() {
10 if (isset($_ENV["WAET_TEST_LOCATION"])) {
11 return $_ENV["WAET_TEST_LOCATION"];
12 } else {
13 return "../tests/";
14 }
15 }
16 ?>