<?php
//read XML from temp file
require('../config.php');
echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">";
echo "<html>";
echo "<head>";
echo "<title>XML Source</title>";
echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">";
echo "<meta http-equiv=\"cache-control\" content=\"no-cache\">";
echo "<meta http-equiv=\"pragma\" content=\"no-cache\">";
echo "</head>";
echo "<body leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\" onload=\"self.focus()\">";
echo "<h2>XML Source </h2>";
if ($vfile != "")
{
$XMLfile=TMP_FILE.$vfile;
//load XML data from file
if (!($fp = fopen($XMLfile, "r")))
die("could not open XML input");
echo "<center><form><textarea name=\"data\" rows=\"35\" cols=\"100\">";
echo htmlspecialchars(fread($fp, filesize($XMLfile)));
echo "</textarea></form></center>";
fclose($fp);
}
else
echo "Error:file not found";
echo "</body></html>";
?>