Mercurial > hg > webaudioevaluationtool
view php/pseudo.php @ 3135:afc32cd44b22
Merge pull request #288 from jpcima/work
Fix a typo in description text
author | Nick Jillings <nickjillings@users.noreply.github.com> |
---|---|
date | Mon, 11 Mar 2019 11:41:14 +0000 |
parents | c7de85e03321 |
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]); ?>