view php/pseudo.php @ 2963:8881dbe2807e

Remove position tag from test page of MUSHAR template (itur1534) to prevent user from getting the impression that position="0" is to unset the fixed position of the test case - fixes #260
author Thomas Schlien <schlien@iks.rwth-aachen.de>
date Thu, 23 Nov 2017 15:51:26 +0100
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]);
?>