// Places=X
// X Action=HeaderSubmit
// Admin
// Create Event
// Edit Event
//
// Common
// Page Header Content
// New Member Information
// Membership Dues Information
//
Edit Page Header
//
// something here to access the page header.
//
// Edit New Member Information
//
// something here to edit the new member information
//
// Edit Membership Dues Information
//
$formSubmission = false;
$FormData = array();
$CleanRequestData = array();
$CleanFiles = array();
foreach ($_REQUEST as $key => $value) {
TraceProgram(__FILE__, __FUNCTION__, __LINE__, "$key => $value");
$CleanRequestData[$key] = $value;
}
if (isset($_FILES)) {
TraceProgram(__FILE__, __FUNCTION__, __LINE__, "");
$CleanFiles = $_FILES;
}
if (isset($CleanRequestData['ErrorNotice'])) {
ShowTransientPage($CleanRequestData['ErrorNotice'], $CleanRequestData['ErrorCode']);
exit;
}
$Action = (isset($CleanRequestData['Action'])) ? $CleanRequestData['Action'] : "";
TraceProgram(__FILE__, __FUNCTION__, __LINE__, "\nClean RQST: " . print_r($CleanRequestData, true));
TraceProgram(__FILE__, __FUNCTION__, __LINE__, "\nClean FILE: " . print_r($CleanFiles, true));
switch ($Action) {
case 'DeleteEventItem':
case 'EventNew':
case 'EventEdit':
ShowEventForm();
break;
case 'PlaceEdit':
case 'PlaceSubmit':
ShowPlaceForm();
break;
case 'ProgChairEdit':
ShowProgChairForm();
break;
case 'HeaderEdit':
case 'HeaderSubmit':
ShowHeaderform();
break;
default:
ShowEventSelector();
break;
}
TraceProgram(__FILE__, __FUNCTION__, __LINE__, "end", TR_EXIT);
exit;
#################################################################
function ShowTransientPage($errNotice, $errCode) {
?>
Error Notification
Error Notification
Apologies, but an error occurred.
Error: %s, ErrorCode: %d.", basename($errNotice, '.php'), $errCode); ?>
You will be forwarded to the Admin page in a few seconds, or
Click here.", $_SERVER['PHP_SELF']); ?>
}
?>