Mercurial > hg > webaudioevaluationtool
comparison php/pool.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 | 464c6c6692d6 |
children | edd536f01e4b |
comparison
equal
deleted
inserted
replaced
3119:aa4503f8c630 | 3120:53d701288da5 |
---|---|
35 } | 35 } |
36 } | 36 } |
37 | 37 |
38 $waet_url = rel2abs("pool.php","http://".$_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']); | 38 $waet_url = rel2abs("pool.php","http://".$_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']); |
39 | 39 |
40 $saves = glob("../saves/*.xml"); | 40 $saveLocation = getSaveLocation(); |
41 $saves = glob($saveLocation."*.xml"); | |
41 if (is_array($saves)) | 42 if (is_array($saves)) |
42 { | 43 { |
43 foreach($saves as $filename) { | 44 foreach($saves as $filename) { |
44 $xml_object = simplexml_load_string(file_get_contents($filename, FILE_TEXT)); | 45 $xml_object = simplexml_load_string(file_get_contents($filename, FILE_TEXT)); |
45 if($xml_object) { | 46 if($xml_object) { |