Mercurial > hg > webaudioevaluationtool
diff pseudo.php @ 1315:d9b9f707f862
Updated author list for WAC 2016
author | Nicholas Jillings <nickjillings@users.noreply.github.com> |
---|---|
date | Sun, 21 Feb 2016 11:15:52 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pseudo.php Sun Feb 21 11:15:52 2016 +0000 @@ -0,0 +1,21 @@ +<?php + header('Access-Control-Allow-Origin: *'); + header("Content-type: text/xml"); + $files = glob('saves/' . '*.xml'); + $numsaves = 0; + if ( $files !== false ) + { + $numsaves = count( $files ); + } + + $files = glob('pseudo/' . '*.xml'); + $numtests = 0; + if ( $numtests !== false ) + { + $numtests = count( $files ); + } + + $testID = ($numsaves % $numtests)-1; + + readfile($files[$testID]); +?> \ No newline at end of file