Mercurial > hg > webaudioevaluationtool
annotate pseudo.php @ 1365:c4156df1dcb5
More instructions. Added comment box sections. Still wip.
author | Nicholas Jillings <nickjillings@users.noreply.github.com> |
---|---|
date | Wed, 27 Jan 2016 09:49:42 +0000 |
parents | 0a33be453688 |
children |
rev | line source |
---|---|
nickjillings@1364 | 1 <?php |
nickjillings@1364 | 2 header('Access-Control-Allow-Origin: *'); |
nickjillings@1364 | 3 header("Content-type: text/xml"); |
nickjillings@1364 | 4 $files = glob('saves/' . '*.xml'); |
nickjillings@1364 | 5 $numsaves = 0; |
nickjillings@1364 | 6 if ( $files !== false ) |
nickjillings@1364 | 7 { |
nickjillings@1364 | 8 $numsaves = count( $files ); |
nickjillings@1364 | 9 } |
nickjillings@1364 | 10 |
nickjillings@1364 | 11 $files = glob('pseudo/' . '*.xml'); |
nickjillings@1364 | 12 $numtests = 0; |
nickjillings@1364 | 13 if ( $numtests !== false ) |
nickjillings@1364 | 14 { |
nickjillings@1364 | 15 $numtests = count( $files ); |
nickjillings@1364 | 16 } |
nickjillings@1364 | 17 |
nickjillings@1364 | 18 $testID = ($numsaves % $numtests)-1; |
nickjillings@1364 | 19 |
nickjillings@1364 | 20 readfile($files[$testID]); |
nickjillings@1364 | 21 ?> |