Initial checkin
This commit is contained in:
commit
954ef3d036
95 files changed
+43476
No files matched your search
@@ -0,0 +1,52 @@
|
||||
<?php
|
||||
|
||||
ini_set('display_errors', 1); // Enable error display
|
||||
ini_set('display_startup_errors', 1); // Show startup errors
|
||||
error_reporting(E_ALL); // Report all types of errors
|
||||
|
||||
session_start();
|
||||
require_once("./inc/HelperFunctions.php");
|
||||
require_once("./inc/FileHelpers.php");
|
||||
|
||||
SetTraceRoot(__DIR__, TRACEPATH);
|
||||
TraceProgram(__FILE__, __FUNCTION__, __LINE__, "start " . date(DATE_RFC2822), TR_ENTRY);
|
||||
|
||||
$success = ReadTableData($HeadersPath, $HeaderFormFields, $userData);
|
||||
TraceProgram(__FILE__, __FUNCTION__, __LINE__, print_r($userData,true));
|
||||
$title = $HeaderFormFields['HeaderText']['Default'];
|
||||
$subtitle = $HeaderFormFields['SubHeaderText']['Default'];
|
||||
if ($success) {
|
||||
$title = $userData['HeaderText'];
|
||||
$subtitle = $userData['SubHeaderText'];
|
||||
}
|
||||
|
||||
EmitHTMLStart("$title");
|
||||
EmitBodyStart();
|
||||
EmitPageHeader($title, $subtitle);
|
||||
|
||||
if (isset($_REQUEST['ProgramDate']) && ($_REQUEST['ProgramDate'] != '')) {
|
||||
$date = $_REQUEST['ProgramDate'];
|
||||
} else {
|
||||
$date = GetNextEvent();
|
||||
}
|
||||
if ($date == '') {
|
||||
$date = GetPrevEvent();
|
||||
if ($date == '') {
|
||||
printf("<hr>\n");
|
||||
printf("<p align='center'>Nothing on the schedule, perhaps the system hasn't been populated yet...</p>");
|
||||
printf("<hr/>\n");
|
||||
} else {
|
||||
printf("Nothing on the schedule coming up, perhaps you'd like to review the prior events...<br/>");
|
||||
TraceProgram(__FILE__, __FUNCTION__, __LINE__, "prev: $date");
|
||||
echo "<h2 class='ThemeColor Center'>Previous Event</h2>\n";
|
||||
EmitEvent($date);
|
||||
}
|
||||
} else {
|
||||
echo "<h2 class='ThemeColor Center'>Coming Next</h2>\n";
|
||||
EmitEvent($date);
|
||||
}
|
||||
EmitBodyEnd();
|
||||
EmitHTMLEnd();
|
||||
|
||||
TraceProgram(__FILE__, __FUNCTION__, __LINE__, "", TR_EXIT);
|
||||
?>
|
||||
Reference in new issue
Block a user