require 'postHelper.php';
require 'icsGenerator.php';
require 'emailHelper.php';
require 'eventData.php';
//header('HTTP/1.0 200 OK', true, 200);
//echo '<pre>';
//var_dump($_POST);exit;
date_default_timezone_set('America/New_York');
/*echo '<br>';
var_dump(date('h:i:s A'));
echo date_default_timezone_get();
exit;*/
$process = new Processor();
//$process->mailAll();
$process->mailSingle();
header('HTTP/1.0 200 OK', true, 200);
/*if(isset($_POST['startDate'])){
  $process = new Processor();
  if(isset($_POST['action'])){
    $act = $_POST['action'];
    switch($act){*/
//case 'mail10':   /** Create and Email 10 ICSs **/
/*$process->mail10();
    break;
  case '10:1':     /** Create and Download ICS 10 #1**/
/*  $process->ouput10(1);
      break;
    case '10:2':    /** Create and Download ICS 10 #1**/
/*    $process->ouput10(1);
        break;