Mercurial > hg > webaudioevaluationtool
annotate 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 |
rev | line source |
---|---|
nicholas@3120 | 1 <?php |
nicholas@3120 | 2 function getSaveLocation() { |
nicholas@3120 | 3 if (isset($_ENV["WAET_SAVES_LOCATION"])) { |
nicholas@3120 | 4 return $_ENV["WAET_SAVES_LOCATION"]; |
nicholas@3120 | 5 } else { |
nicholas@3120 | 6 return "../saves/"; |
nicholas@3120 | 7 } |
nicholas@3120 | 8 } |
nicholas@3120 | 9 function getTestLocation() { |
nicholas@3120 | 10 if (isset($_ENV["WAET_TEST_LOCATION"])) { |
nicholas@3120 | 11 return $_ENV["WAET_TEST_LOCATION"]; |
nicholas@3120 | 12 } else { |
nicholas@3120 | 13 return "../tests/"; |
nicholas@3120 | 14 } |
nicholas@3120 | 15 } |
nicholas@3120 | 16 ?> |