Mercurial > hg > webaudioevaluationtool
view pseudo.php @ 611:fef9f13bec0a multiple-tests-concatenation
Workaround for #1658: in order to obtain a test with zero pages, set attribute hidden='true' in the one and only page
author | Giulio Moro <giuliomoro@yahoo.it> |
---|---|
date | Sun, 13 Mar 2016 02:12:30 +0000 |
parents | 1fc9f982b778 |
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]); ?>