<?php
// Process the M'Cheyne data and output directly as XML
include('mcheyne.inc');
function get_variable($name) {
if (isset($_POST[$name])) return $_POST[$name];
if (isset($_GET[$name])) return $_GET[$name];
return null;
}
$bible = get_variable('bible');
$cal = get_variable('cal');
$tz = get_variable('tz');
$mobile = get_variable('mobile');
$day = get_variable('day');
$nodtd = get_variable('nodtd');
$mc = new Mcheyne($bible, $cal, $tz, $mobile, $day, $nodtd);
$mc->out_xml();
# $mc->log('server');
?>