';
$out .= print_r($_POST, true);
$out .= '';
$out .= '======';
foreach($_POST['chosen_files'] as $file) {
if(file_exists($file)) {
$md = file_get_contents($file);
$out .= '
';
$out .= $pd->text($md);
$out .= "
";
}
}
$out .= outputHTMLFooter(true);
// For now, echo it.
echo $out;
}
function showAdminPage() {
outputHTMLHeader();
echo '';
outputHTMLFooter();
}
function outputHTMLHeader($title = TITLE, $ret = false) {
$out = ''."\n"
.''."\n"
.' '."\n"
.' '.$title.''."\n"
.' '."\n"
.' '."\n";
if($ret) {
return $out;
}
echo $out;
}
function outputHTMLFooter($ret = false) {
$out = ' '."\n"
.''."\n";
if($ret) {
return $out;
}
echo $out;
}
?>