//Anmeldung
//Gruppe 1 Rot (kein Spaziergang)
if (value('RD01') == 1 && value('DT01') == 1){
mailSchedule(false, 4, strtotime('2024-06-23 15:00:00')); //Erinnerungsmail
mailSchedule(false, 5, strtotime('2024-06-24 15:00:00'), ['expire' => strtotime('2024-06-24 15:00:00') + (5 * 3600)]);
mailSchedule(false, 6, strtotime('2024-06-24 21:00:00'), ['expire' => strtotime('2024-06-24 21:00:00') + (5 * 3600)]);
}
if (value('RD01') == 1 && value('DT01') == 2){
mailSchedule(false, 4, strtotime('2024-06-24 15:00:00')); //Erinnerungsmail
mailSchedule(false, 5, strtotime('2024-06-25 15:00:00'), ['expire' => strtotime('2024-06-25 15:00:00') + (5 * 3600)]);
mailSchedule(false, 6, strtotime('2024-06-25 21:00:00'), ['expire' => strtotime('2024-06-25 21:00:00') + (5 * 3600)]);
}
if (value('RD01') == 1 && value('DT01') == 3){
mailSchedule(false, 4, strtotime('2024-06-25 15:00:00')); //Erinnerungsmail
mailSchedule(false, 5, strtotime('2024-06-26 15:00:00'), ['expire' => strtotime('2024-06-26 15:00:00') + (5 * 3600)]);
mailSchedule(false, 6, strtotime('2024-06-26 21:00:00'), ['expire' => strtotime('2024-06-26 21:00:00') + (5 * 3600)]);
}
if (value('RD01') == 1 && value('DT01') == 4){
mailSchedule(false, 4, strtotime('2024-06-26 15:00:00')); //Erinnerungsmail
mailSchedule(false, 5, strtotime('2024-06-27 15:00:00'), ['expire' => strtotime('2024-06-27 15:00:00') + (5 * 3600)]);
mailSchedule(false, 6, strtotime('2024-06-27 21:00:00'), ['expire' => strtotime('2024-06-27 21:00:00') + (5 * 3600)]);
}
if (value('RD01') == 1 && value('DT01') == 5){
mailSchedule(false, 4, strtotime('2024-06-30 15:00:00')); //Erinnerungsmail
mailSchedule(false, 5, strtotime('2024-07-01 15:00:00'), ['expire' => strtotime('2024-07-01 15:00:00') + (5 * 3600)]);
mailSchedule(false, 6, strtotime('2024-07-01 21:00:00'), ['expire' => strtotime('2024-07-01 21:00:00') + (5 * 3600)]);
}
if (value('RD01') == 1 && value('DT01') == 6){
mailSchedule(false, 4, strtotime('2024-07-01 15:00:00')); //Erinnerungsmail
mailSchedule(false, 5, strtotime('2024-07-02 15:00:00'), ['expire' => strtotime('2024-07-02 15:00:00') + (5 * 3600)]);
mailSchedule(false, 6, strtotime('2024-07-02 21:00:00'), ['expire' => strtotime('2024-07-02 21:00:00') + (5 * 3600)]);
}
if (value('RD01') == 1 && value('DT01') == 7){
mailSchedule(false, 4, strtotime('2024-07-02 15:00:00')); //Erinnerungsmail
mailSchedule(false, 5, strtotime('2024-07-03 15:00:00'), ['expire' => strtotime('2024-07-03 15:00:00') + (5 * 3600)]);
mailSchedule(false, 6, strtotime('2024-07-03 21:00:00'), ['expire' => strtotime('2024-07-03 21:00:00') + (5 * 3600)]);
}
if (value('RD01') == 1 && value('DT01') == 8){
mailSchedule(false, 4, strtotime('2024-07-03 15:00:00')); //Erinnerungsmail
mailSchedule(false, 5, strtotime('2024-07-04 15:00:00'), ['expire' => strtotime('2024-07-04 15:00:00') + (5 * 3600)]);
mailSchedule(false, 6, strtotime('2024-07-04 21:00:00'), ['expire' => strtotime('2024-07-04 21:00:00') + (5 * 3600)]);
}
//Gruppe 2 Grün (Spaziergang)
if (value('RD01') == 2 && value('DT01') == 1){
mailSchedule(false, 3, strtotime('2024-06-23 15:00:00')); //Erinnerungsmail
mailSchedule(false, 5, strtotime('2024-06-24 15:00:00'), ['expire' => strtotime('2024-06-24 15:00:00') + (5 * 3600)]);
mailSchedule(false, 6, strtotime('2024-06-24 21:00:00'), ['expire' => strtotime('2024-06-24 21:00:00') + (5 * 3600)]);
}
if (value('RD01') == 2 && value('DT01') == 2){
mailSchedule(false, 3, strtotime('2024-06-24 15:00:00')); //Erinnerungsmail
mailSchedule(false, 5, strtotime('2024-06-25 15:00:00'), ['expire' => strtotime('2024-06-25 15:00:00') + (5 * 3600)]);
mailSchedule(false, 6, strtotime('2024-06-25 21:00:00'), ['expire' => strtotime('2024-06-25 21:00:00') + (5 * 3600)]);
}
if (value('RD01') == 2 && value('DT01') == 3){
mailSchedule(false, 3, strtotime('2024-06-25 15:00:00')); //Erinnerungsmail
mailSchedule(false, 5, strtotime('2024-06-26 15:00:00'), ['expire' => strtotime('2024-06-26 15:00:00') + (5 * 3600)]);
mailSchedule(false, 6, strtotime('2024-06-26 21:00:00'), ['expire' => strtotime('2024-06-26 21:00:00') + (5 * 3600)]);
}
if (value('RD01') == 2 && value('DT01') == 4){
mailSchedule(false, 3, strtotime('2024-06-26 15:00:00')); //Erinnerungsmail
mailSchedule(false, 5, strtotime('2024-06-27 15:00:00'), ['expire' => strtotime('2024-06-27 15:00:00') + (5 * 3600)]);
mailSchedule(false, 6, strtotime('2024-06-27 21:00:00'), ['expire' => strtotime('2024-06-27 21:00:00') + (5 * 3600)]);
}
if (value('RD01') == 2 && value('DT01') == 5){
mailSchedule(false, 3, strtotime('2024-06-30 15:00:00')); //Erinnerungsmail
mailSchedule(false, 5, strtotime('2024-07-01 15:00:00'), ['expire' => strtotime('2024-07-01 15:00:00') + (5 * 3600)]);
mailSchedule(false, 6, strtotime('2024-07-01 21:00:00'), ['expire' => strtotime('2024-07-01 21:00:00') + (5 * 3600)]);
}
if (value('RD01') == 2 && value('DT01') == 6){
mailSchedule(false, 3, strtotime('2024-07-01 15:00:00')); //Erinnerungsmail
mailSchedule(false, 5, strtotime('2024-07-02 15:00:00'), ['expire' => strtotime('2024-07-02 15:00:00') + (5 * 3600)]);
mailSchedule(false, 6, strtotime('2024-07-02 21:00:00'), ['expire' => strtotime('2024-07-02 21:00:00') + (5 * 3600)]);
}
if (value('RD01') == 2 && value('DT01') == 7){
mailSchedule(false, 3, strtotime('2024-07-02 15:00:00')); //Erinnerungsmail
mailSchedule(false, 5, strtotime('2024-07-03 15:00:00'), ['expire' => strtotime('2024-07-03 15:00:00') + (5 * 3600)]);
mailSchedule(false, 6, strtotime('2024-07-03 21:00:00'), ['expire' => strtotime('2024-07-03 21:00:00') + (5 * 3600)]);
}
if (value('RD01') == 2 && value('DT01') == 8){
mailSchedule(false, 3, strtotime('2024-07-03 15:00:00')); //Erinnerungsmail
mailSchedule(false, 5, strtotime('2024-07-04 15:00:00'), ['expire' => strtotime('2024-07-04 15:00:00') + (5 * 3600)]);
mailSchedule(false, 6, strtotime('2024-07-04 21:00:00'), ['expire' => strtotime('2024-07-04 21:00:00') + (5 * 3600)]);
}