view php/pseudo.php @ 2964:7bbab5127538

Merge pull request #261 from othiman/positionfix Remove position tag from test page of MUSHAR template (itur1534) to p…
author Nick Jillings <nickjillings@users.noreply.github.com>
date Tue, 09 Jan 2018 16:09:49 +0000
parents d26623bd65e0
children 54df1a21bf84
line wrap: on
line source
<?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");
    $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);

	readfile($files[$testID]);
?>