view pseudo.php @ 1367:703192cda962

Default interface checks will attach an error node containing test page time stamp and error message on submit request.
author Nicholas Jillings <nickjillings@users.noreply.github.com>
date Mon, 01 Feb 2016 10:37:28 +0000
parents 0a33be453688
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]);
?>