view pseudo.php @ 1298:381fe3c6fe60

docs: AES Poster Competition poster update
author Brecht De Man <b.deman@qmul.ac.uk>
date Tue, 23 Feb 2016 22:17:24 +0100
parents 0a15fa67bda1
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]);
?>