Mercurial > hg > webaudioevaluationtool
view php/pseudo.php @ 2349:ceaccbd708cb
Hotfix: APE sticky markers should be fixed now. Caused by improper indexing of metric trackers if outside-reference was not at the end.
author | Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk> |
---|---|
date | Mon, 16 May 2016 13:30:41 +0100 |
parents | 43ab418ba4b8 |
children | 17d8ac94b284 |
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('tests/' . '*.xml'); $numtests = 0; if ( $numtests !== false ) { $numtests = count( $files ); } $testID = ($numsaves % $numtests)-1; readfile($files[$testID]); ?>