Mercurial > hg > webaudioevaluationtool
annotate pseudo.php @ 2096:7c39c22a417f
Merge - pre-release of 1.2.0
author | Nicholas Jillings <nickjillings@users.noreply.github.com> |
---|---|
date | Wed, 17 Feb 2016 11:16:08 +0000 |
parents | 279930a008ca |
children |
rev | line source |
---|---|
nickjillings@1316 | 1 <?php |
nickjillings@1316 | 2 header('Access-Control-Allow-Origin: *'); |
nickjillings@1316 | 3 header("Content-type: text/xml"); |
nickjillings@1316 | 4 $files = glob('saves/' . '*.xml'); |
nickjillings@1316 | 5 $numsaves = 0; |
nickjillings@1316 | 6 if ( $files !== false ) |
nickjillings@1316 | 7 { |
nickjillings@1316 | 8 $numsaves = count( $files ); |
nickjillings@1316 | 9 } |
nickjillings@1316 | 10 |
nickjillings@1316 | 11 $files = glob('pseudo/' . '*.xml'); |
nickjillings@1316 | 12 $numtests = 0; |
nickjillings@1316 | 13 if ( $numtests !== false ) |
nickjillings@1316 | 14 { |
nickjillings@1316 | 15 $numtests = count( $files ); |
nickjillings@1316 | 16 } |
nickjillings@1316 | 17 |
nickjillings@1316 | 18 $testID = ($numsaves % $numtests)-1; |
nickjillings@1316 | 19 |
nickjillings@1316 | 20 readfile($files[$testID]); |
nickjillings@1316 | 21 ?> |