Mercurial > hg > webaudioevaluationtool
view pseudo.php @ 1179:c2e19bc54c3c
Bug #1564: index.html is blank, the links are included in demo.html. Popup now created in index.html rather than generated.
author | Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk> |
---|---|
date | Thu, 11 Feb 2016 16:54:33 +0000 |
parents | c44fbf72f7f2 |
children |
line wrap: on
line source
<?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]); ?>