annotate pseudo.php @ 603:640ffb822da1

Bug #1652 and Feature #1650 fixes. You can specify the track labels through page attribute 'label' ('default', 'none', 'number', 'letter', 'capital'). Updated examples to match schema
author Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk>
date Thu, 10 Mar 2016 16:16:16 +0000
parents 1fc9f982b778
children
rev   line source
n@493 1 <?php
n@493 2 header('Access-Control-Allow-Origin: *');
n@493 3 header("Content-type: text/xml");
n@493 4 $files = glob('saves/' . '*.xml');
n@493 5 $numsaves = 0;
n@493 6 if ( $files !== false )
n@493 7 {
n@493 8 $numsaves = count( $files );
n@493 9 }
n@493 10
n@493 11 $files = glob('pseudo/' . '*.xml');
n@493 12 $numtests = 0;
n@493 13 if ( $numtests !== false )
n@493 14 {
n@493 15 $numtests = count( $files );
n@493 16 }
n@493 17
n@493 18 $testID = ($numsaves % $numtests)-1;
n@493 19
n@493 20 readfile($files[$testID]);
n@493 21 ?>