annotate pseudo.php @ 1381:320724a2389b

Test create from existing file, <page> node interfaces are now built and displayed. jQuery included.
author Nicholas Jillings <nickjillings@users.noreply.github.com>
date Fri, 12 Feb 2016 08:42:15 +0000
parents 279930a008ca
children
rev   line source
nickjillings@1316 1 <?php
nickjillings@1316 2 header('Access-Control-Allow-Origin: *');
nickjillings@1316 3 header("Content-type: text/xml");
nickjillings@1316 4 $files = glob('saves/' . '*.xml');
nickjillings@1316 5 $numsaves = 0;
nickjillings@1316 6 if ( $files !== false )
nickjillings@1316 7 {
nickjillings@1316 8 $numsaves = count( $files );
nickjillings@1316 9 }
nickjillings@1316 10
nickjillings@1316 11 $files = glob('pseudo/' . '*.xml');
nickjillings@1316 12 $numtests = 0;
nickjillings@1316 13 if ( $numtests !== false )
nickjillings@1316 14 {
nickjillings@1316 15 $numtests = count( $files );
nickjillings@1316 16 }
nickjillings@1316 17
nickjillings@1316 18 $testID = ($numsaves % $numtests)-1;
nickjillings@1316 19
nickjillings@1316 20 readfile($files[$testID]);
nickjillings@1316 21 ?>