Mercurial > hg > webaudioevaluationtool
diff php/comment_parser.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 | c7de85e03321 |
line wrap: on
line diff
--- a/php/comment_parser.php Wed Jul 18 16:32:44 2018 +0100 +++ b/php/comment_parser.php Wed Jul 18 16:47:07 2018 +0100 @@ -1,4 +1,5 @@ <?php +incluce_once("config.php"); // Comment Parser for PHP header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0"); header("Cache-Control: post-check=0, pre-check=0", false); @@ -20,7 +21,8 @@ } } // XML Saves location - assumes it will be saves/ -$saves = glob("../saves/*.xml"); +$saveLocation = getSaveLocation(); +$saves = glob($saveLocation."*.xml"); $comment_struct = array(); if (is_array($saves)) {