18
18
}else{#Read high score list
19
19
#Now uses XSLT to display. So just print the file. With XML cruft added.
20
20
#Note that firefox at least won't apply the XSLT on a php file. So redirecting
22
22
$ret = fwrite($file, '<?xml version="1.0" encoding="ISO-8859-1"?>' . "\n"
23
23
. '<?xml-stylesheet type="text/xsl" href="score_style.xsl"?>' . "\n"
24
24
. "<records>\n" . file_get_contents("score_data.xml") . "</records>\n");