Mercurial > hg > webaudioevaluationtool
view php/pseudo.php @ 3123:c7de85e03321
As 5pm approaches,the error count increases (YAUC)
author | Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk> |
---|---|
date | Wed, 18 Jul 2018 16:53:38 +0100 |
parents | edd536f01e4b |
children |
line wrap: on
line source
<?php include_once("config.php"); header('Access-Control-Allow-Origin: *'); header("Content-type: text/xml"); header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0"); header("Cache-Control: post-check=0, pre-check=0", false); header("Pragma: no-cache"); if (isset($_GET["prefix"]) == FALSE) { $prefix = ""; } else { $prefix = $_GET["prefix"]; } if (isset($_GET["dir"]) == FALSE) { $dir = ""; } else { $dir = $_GET["dir"]; } $saveLocation = getSaveLocation(); $files = glob($saveLocation . $prefix . '*.xml'); $numsaves = 0; if ( $files !== false ) { $numsaves = count( $files ); } $testLocation = getTestLocation(); $files = glob($testLocation . $dir . '*.xml'); $numtests = 0; if ( $numtests !== false ) { $numtests = count( $files ); } $testID = ($numsaves % $numtests); readfile($files[$testID]); ?>