Exemplo n.º 1
0
	 *
	 */
	include_once "IPSLogger.inc.php";
	define ("c_LogId", "IPSLogger_SendMail");

	IPSLogger_Trc(c_LogId, 'Execute SendEmail for Messages of IPSLogger');

	$MsgList = GetValue(c_ID_EMailOutMsgList);
	if ($MsgList <> "") {
	   if (c_EMail_Address1 <> "") {
			IPSLogger_Dbg(c_LogId, 'Send ErrorMail to '.c_EMail_Address1);
			SMTP_SendMailEx(c_ID_SmtpDevice, c_EMail_Address1,
			                c_EMail_Subject, $MsgList."\n\n".c_EMail_Signature);
		} else {
			IPSLogger_Dbg(c_LogId, 'Send ErrorMail to default SMTP EMail-Address: ');
		   SMTP_SendMail(c_ID_SmtpDevice, "IP-Symcon Error(s)",  $MsgList."\n\n".c_EMail_Signature);
		}
	   if (c_EMail_Address2 <> "") {
			IPSLogger_Dbg(c_LogId, 'Send ErrorMail to '.c_EMail_Address2);
		   SMTP_SendMailEx(c_ID_SmtpDevice, c_EMail_Address2,
			                c_EMail_Subject, $MsgList."\n\n".c_EMail_Signature);
		}

	   if (c_EMail_Address3 <> "") {
			IPSLogger_Dbg(c_LogId, 'Send ErrorMail to '.c_EMail_Address3);
		   SMTP_SendMailEx(c_ID_SmtpDevice, c_EMail_Address3,
			                c_EMail_Subject, $MsgList."\n\n".c_EMail_Signature);
		}
	}
	IPS_SetScriptTimer(c_ID_ScriptSendMail, 0);		// Clear Timer
	SetValue(c_ID_EMailOutMsgList, '');             // Clear MsgList
Exemplo n.º 2
0
 private function Benachrichtigung($Batterien_AR)
 {
     if ($this->ReadPropertyInteger("BenachrichtigungsVar") != 0) {
         if (GetValueBoolean($this->ReadPropertyInteger("BenachrichtigungsVar")) === false) {
             return;
         }
     }
     $ParentName1Tabelle = $this->Umlaute_Ersetzen($this->ReadPropertyString("NameParentTabelle1TB"));
     $ParentName2Tabelle = $this->Umlaute_Ersetzen($this->ReadPropertyString("NameParentTabelle2TB"));
     $ParentName3Tabelle = $this->Umlaute_Ersetzen($this->ReadPropertyString("NameParentTabelle3TB"));
     $BenachrichtigungsText = $this->ReadPropertyString("BatterieBenachrichtigungTEXT");
     foreach ($Batterien_AR as $Aktor) {
         $AktorName = $Aktor["Name"];
         if ($this->ReadPropertyBoolean("NamenParentObjekt1CB") == true) {
             $AktorParent1Name = $Aktor[$ParentName1Tabelle];
         }
         if ($this->ReadPropertyBoolean("NamenParentObjekt2CB") == true) {
             $AktorParent2Name = $Aktor[$ParentName2Tabelle];
         }
         if ($this->ReadPropertyBoolean("NamenParentObjekt3CB") == true) {
             $AktorParent3Name = $Aktor[$ParentName3Tabelle];
         }
         $AktorHersteller = $Aktor["Hersteller"];
         $AktorID = $Aktor["ID"];
         $AktorBatterie = $Aktor["Batterie"];
         $AktorLetztesUpdateSEK = $Aktor["LetztesVarUpdateVorSek"];
         $AktorLetztesUpdateTS = date("d.m.Y H:i", $Aktor["LetztesVarUpdateTimestamp"]);
         //Code-Wörter austauschen gegen gewünschte Werte
         $search = array("§AKTORHERSTELLER", "§AKTORID", "§AKTORBATTERIE", "§AKTORLETZTESUPDATE");
         $replace = array($AktorHersteller, $AktorID, $AktorBatterie, $AktorLetztesUpdateTS);
         if ($this->ReadPropertyBoolean("NamenAktorObjektCB") == true) {
             array_push($search, "§AKTORNAME");
             array_push($replace, $AktorName);
         }
         if ($this->ReadPropertyBoolean("NamenParentObjekt1CB") == true) {
             array_push($search, "§AKTORPARENT1");
             array_push($replace, $AktorParent1Name);
         }
         if ($this->ReadPropertyBoolean("NamenParentObjekt2CB") == true) {
             array_push($search, "§AKTORPARENT2");
             array_push($replace, $AktorParent2Name);
         }
         if ($this->ReadPropertyBoolean("NamenParentObjekt3CB") == true) {
             array_push($search, "§AKTORPARENT3");
             array_push($replace, $AktorParent3Name);
         }
         $Text = str_replace($search, $replace, $BenachrichtigungsText);
         $Text = str_replace('Â', '', $Text);
         //PUSH-NACHRICHT
         if ($this->ReadPropertyBoolean("PushMsgAktiv") == true) {
             $WFinstanzID = $this->ReadPropertyInteger("WebFrontInstanceID");
             if ($WFinstanzID != "" and @IPS_InstanceExists($WFinstanzID) === true) {
                 if (strlen($Text) <= 256) {
                     WFC_PushNotification($WFinstanzID, "BatterieMonitor", $Text, "", 0);
                 } else {
                     IPS_LogMessage("BatterieMonitor", "FEHLER!!! - Die Textlänge einer Push-Nachricht darf maximal 256 Zeichen betragen!!!");
                 }
             }
         }
         //EMAIL-NACHRICHT
         if ($this->ReadPropertyBoolean("EMailMsgAktiv") == true) {
             $SMTPinstanzID = $this->ReadPropertyInteger("SmtpInstanceID");
             if ($SMTPinstanzID != "" and @IPS_InstanceExists($SMTPinstanzID) === true) {
                 SMTP_SendMail($SMTPinstanzID, "BatterieMonitor", $Text);
             }
         }
         //EIGENE-AKTION
         if ($this->ReadPropertyBoolean("EigenesSkriptAktiv") == true) {
             $SkriptID = $this->ReadPropertyInteger("EigenesSkriptID");
             if ($SkriptID != "" and @IPS_ScriptExists($SkriptID) === true) {
                 if ($this->ReadPropertyBoolean("NamenParentObjekt1CB") == true and $this->ReadPropertyBoolean("NamenParentObjekt2CB") == false and $this->ReadPropertyBoolean("NamenParentObjekt3CB") == false) {
                     IPS_RunScriptEx($SkriptID, array("BMON_Name" => $AktorName, "BMON_ParentName1" => $AktorParent1Name, "BMON_Hersteller" => $AktorHersteller, "BMON_ID" => $AktorID, "BMON_Batterie" => $AktorBatterie, "BMON_Text" => $Text, "BMON_LetztesUpdateTS" => $AktorLetztesUpdateTS, "BMON_LetztesUpdateSEK" => $AktorLetztesUpdateSEK));
                 } elseif ($this->ReadPropertyBoolean("NamenParentObjekt1CB") == false and $this->ReadPropertyBoolean("NamenParentObjekt2CB") == true and $this->ReadPropertyBoolean("NamenParentObjekt3CB") == false) {
                     IPS_RunScriptEx($SkriptID, array("BMON_Name" => $AktorName, "BMON_ParentName2" => $AktorParent2Name, "BMON_Hersteller" => $AktorHersteller, "BMON_ID" => $AktorID, "BMON_Batterie" => $AktorBatterie, "BMON_Text" => $Text, "BMON_LetztesUpdateTS" => $AktorLetztesUpdateTS, "BMON_LetztesUpdateSEK" => $AktorLetztesUpdateSEK));
                 } elseif ($this->ReadPropertyBoolean("NamenParentObjekt1CB") == false and $this->ReadPropertyBoolean("NamenParentObjekt2CB") == false and $this->ReadPropertyBoolean("NamenParentObjekt3CB") == true) {
                     IPS_RunScriptEx($SkriptID, array("BMON_Name" => $AktorName, "BMON_ParentName3" => $AktorParent3Name, "BMON_Hersteller" => $AktorHersteller, "BMON_ID" => $AktorID, "BMON_Batterie" => $AktorBatterie, "BMON_Text" => $Text, "BMON_LetztesUpdateTS" => $AktorLetztesUpdateTS, "BMON_LetztesUpdateSEK" => $AktorLetztesUpdateSEK));
                 } elseif ($this->ReadPropertyBoolean("NamenParentObjekt1CB") == true and $this->ReadPropertyBoolean("NamenParentObjekt2CB") == true and $this->ReadPropertyBoolean("NamenParentObjekt3CB") == true) {
                     IPS_RunScriptEx($SkriptID, array("BMON_Name" => $AktorName, "BMON_ParentName1" => $AktorParent1Name, "BMON_ParentName2" => $AktorParent2Name, "BMON_ParentName3" => $AktorParent3Name, "BMON_Hersteller" => $AktorHersteller, "BMON_ID" => $AktorID, "BMON_Batterie" => $AktorBatterie, "BMON_Text" => $Text, "BMON_LetztesUpdateTS" => $AktorLetztesUpdateTS, "BMON_LetztesUpdateSEK" => $AktorLetztesUpdateSEK));
                 } elseif ($this->ReadPropertyBoolean("NamenParentObjekt1CB") == true and $this->ReadPropertyBoolean("NamenParentObjekt2CB") == true and $this->ReadPropertyBoolean("NamenParentObjekt3CB") == false) {
                     IPS_RunScriptEx($SkriptID, array("BMON_Name" => $AktorName, "BMON_ParentName1" => $AktorParent1Name, "BMON_ParentName2" => $AktorParent2Name, "BMON_Hersteller" => $AktorHersteller, "BMON_ID" => $AktorID, "BMON_Batterie" => $AktorBatterie, "BMON_Text" => $Text, "BMON_LetztesUpdateTS" => $AktorLetztesUpdateTS, "BMON_LetztesUpdateSEK" => $AktorLetztesUpdateSEK));
                 } elseif ($this->ReadPropertyBoolean("NamenParentObjekt1CB") == false and $this->ReadPropertyBoolean("NamenParentObjekt2CB") == true and $this->ReadPropertyBoolean("NamenParentObjekt3CB") == true) {
                     IPS_RunScriptEx($SkriptID, array("BMON_Name" => $AktorName, "BMON_ParentName2" => $AktorParent2Name, "BMON_ParentName3" => $AktorParent3Name, "BMON_Hersteller" => $AktorHersteller, "BMON_ID" => $AktorID, "BMON_Batterie" => $AktorBatterie, "BMON_Text" => $Text, "BMON_LetztesUpdateTS" => $AktorLetztesUpdateTS, "BMON_LetztesUpdateSEK" => $AktorLetztesUpdateSEK));
                 } elseif ($this->ReadPropertyBoolean("NamenParentObjekt1CB") == true and $this->ReadPropertyBoolean("NamenParentObjekt2CB") == false and $this->ReadPropertyBoolean("NamenParentObjekt3CB") == true) {
                     IPS_RunScriptEx($SkriptID, array("BMON_Name" => $AktorName, "BMON_ParentName1" => $AktorParent1Name, "BMON_ParentName3" => $AktorParent3Name, "BMON_Hersteller" => $AktorHersteller, "BMON_ID" => $AktorID, "BMON_Batterie" => $AktorBatterie, "BMON_Text" => $Text, "BMON_LetztesUpdateTS" => $AktorLetztesUpdateTS, "BMON_LetztesUpdateSEK" => $AktorLetztesUpdateSEK));
                 } elseif ($this->ReadPropertyBoolean("NamenParentObjekt1CB") == false and $this->ReadPropertyBoolean("NamenParentObjekt2CB") == false and $this->ReadPropertyBoolean("NamenParentObjekt3CB") == false) {
                     IPS_RunScriptEx($SkriptID, array("BMON_Name" => $AktorName, "BMON_Hersteller" => $AktorHersteller, "BMON_ID" => $AktorID, "BMON_Batterie" => $AktorBatterie, "BMON_Text" => $Text, "BMON_LetztesUpdateTS" => $AktorLetztesUpdateTS, "BMON_LetztesUpdateSEK" => $AktorLetztesUpdateSEK));
                 }
             }
         }
     }
 }
Exemplo n.º 3
0
 public function Benachrichtigung($status, $live)
 {
     if ($status == false) {
         $this->SetTimerByIdent_InSekunden("HMON_BenachrichtigungOfflineTimer", false);
         $BenachrichtigungsText = $this->ReadPropertyString("BenachrichtigungsTextOffline");
         $Hoststatus = "offline";
         if ($live == true) {
             $this->SetValueBoolean("HostBenachrichtigungsFlag", true);
         }
     } elseif ($status == true) {
         $BenachrichtigungsText = $this->ReadPropertyString("BenachrichtigungsTextOnline");
         $Hoststatus = "online";
         if ($live == true) {
             $this->SetValueBoolean("HostBenachrichtigungsFlag", false);
         }
     }
     $Hostname = $this->ReadPropertyString("HostName");
     $Hostadresse = $this->ReadPropertyString("HostAdresse");
     $LastOnlineTimeDiffSEK = (int) (time() - GetValueInteger($this->GetIDForIdent("HostLastOnline")));
     $LastOnlineTimeDiffMIN = (int) ($LastOnlineTimeDiffSEK / 60);
     $LastOnlineTimeDiffSTD = round($LastOnlineTimeDiffMIN / 60, 2);
     $LastOnlineTimeDiffTAGE = round($LastOnlineTimeDiffSTD / 24, 2);
     //Code-Wörter austauschen gegen gewünschte Werte
     $search = array("§HOST", "§ADRESSE", "§ZEITSEK", "§ZEITMIN", "§ZEITSTD", "§ZEITTAGE");
     $replace = array($Hostname, $Hostadresse, $LastOnlineTimeDiffSEK, $LastOnlineTimeDiffMIN, $LastOnlineTimeDiffSTD, $LastOnlineTimeDiffTAGE);
     $Text = str_replace($search, $replace, $BenachrichtigungsText);
     $Text = str_replace('Â', '', $Text);
     //PUSH-NACHRICHT
     if ($this->ReadPropertyBoolean("PushMsgAktiv") == true) {
         $WFinstanzID = $this->ReadPropertyInteger("WebFrontInstanceID");
         if ($WFinstanzID != "" and @IPS_InstanceExists($WFinstanzID) === true) {
             WFC_PushNotification($WFinstanzID, "HostMonitor", $Text, "", 0);
         }
     }
     //EMAIL-NACHRICHT
     if ($this->ReadPropertyBoolean("EMailMsgAktiv") == true) {
         $SMTPinstanzID = $this->ReadPropertyInteger("SmtpInstanceID");
         if ($SMTPinstanzID != "" and @IPS_InstanceExists($SMTPinstanzID) === true) {
             SMTP_SendMail($SMTPinstanzID, "HostMonitor", $Text);
         }
     }
     //EIGENE-AKTION
     if ($this->ReadPropertyBoolean("EigenesSkriptAktiv") == true) {
         $SkriptID = $this->ReadPropertyInteger("EigenesSkriptID");
         if ($SkriptID != "" and @IPS_ScriptExists($SkriptID) === true) {
             IPS_RunScriptEx($SkriptID, array("HMON_Name" => $Hostname, "HMON_Adresse" => $Hostadresse, "HMON_Status" => $Hoststatus, "HMON_Text" => $Text, "HMON_Zeit" => $LastOnlineTimeDiffSEK));
         }
     }
 }
Exemplo n.º 4
0
 private function erzeugeKalender()
 {
     $this->Logging("Erzeuge Kalender Einträge");
     // Wochentage in Deutsch
     $tag = array();
     $tag[0] = "Sonntag";
     $tag[1] = "Montag";
     $tag[2] = "Dienstag";
     $tag[3] = "Mittwoch";
     $tag[4] = "Donnerstag";
     $tag[5] = "Freitag";
     $tag[6] = "Samstag";
     $urlaub = false;
     $heute = "";
     $morgen = "";
     $uemorgen = "";
     $ueuemorgen = "";
     $heuteumorgen = "";
     $next = "";
     $calDataTxt = "";
     $emailID = $this->ReadPropertyInteger('EmailID');
     if (count($this->calcData) > 0) {
         usort($this->calcData, array($this, 'DateCompare'));
         // Starte Tabellenansicht
         $calDataTxt = "<table style='border-spacing:0px; width:100%; " . $this->StyleText[20] . "'>" . "\n\t<tr>" . "\n\t\t<td style='text-align:center; font-size:small;color:#ff0000;'>";
         $calDataTxt .= $this->UpdateInfo();
         $calDataTxt .= "\n\t\t</td>" . "\n\t\t<td style='text-align:right; font-size:xx-small;'>ownCloud Modul V1.14" . "\n\t\t</td>" . "\n\t</tr>";
         $check_date = "";
         $this->debugCount = 0;
         foreach ($this->calcData as $thisData) {
             // Alle Erinnerungen durchpflügen
             foreach ($thisData['ReminderDateTxt'] as $no => $reminderZeit) {
                 // ReminderEvent auslösen
                 if ($reminderZeit != "") {
                     if ($reminderZeit == date("d.m.Y H:i", time())) {
                         ReminderEvent($thisData['Bezeichnung']);
                         $this->Logging("Reminder Event ausgeführt. Termin: " . $thisData['Bezeichnung']);
                     }
                 }
                 // Email Versand bei Erinnerungszeit
                 if ($emailID > 0 && $reminderZeit != "") {
                     if ($reminderZeit == date("d.m.Y H:i", time())) {
                         SMTP_SendMail($emailID, "Termin Erinnerung für " . $thisData['Bezeichnung'], "       Datum: " . $thisData['DatumTxt'] . "\n\r     Uhrzeit: " . $thisData['ZeitTxt'] . "\n\r Bezeichnung: " . $thisData['Bezeichnung'] . "\n\rBeschreibung: " . $thisData['Beschreibung'] . "\n\r");
                         $this->Logging("Email aufgrund eines Event versendet. Termin: " . $thisData['Bezeichnung']);
                     }
                 }
             }
             // UserEvent ausführen
             if ($thisData['DatumTxt'] . " " . $thisData['ZeitTxt'] == date("d.m.Y H:i", time()) && $thisData['UserEvent'] != "") {
                 UserEvent($thisData['UserEvent'], $thisData['Bezeichnung']);
             }
             // Urlaubstrigger setzen/löschen
             if ($thisData['DatumTxt'] == date("d.m.Y", time()) && substr($thisData['Bezeichnung'], 0, 6) == "Urlaub") {
                 $urlaub = true;
             }
             // Variable Heute füllen
             if ($thisData['DatumTxt'] == date("d.m.Y", time()) && $this->StyleText[30] == true || $thisData['EndDatum'] >= strtotime(date("d.m.Y H:i", time())) && $thisData['EndDatum'] < strtotime(date("d.m.Y 23:59:59", time())) && $this->StyleText[30] == false) {
                 $jahre = "";
                 if ($thisData['Wiederholungen'] > 0) {
                     $jahre = " (" . $thisData['Wiederholungen'] . "J)";
                 }
                 if ($heute == "") {
                     $heute = $thisData['ZeitTxt'] . " " . $thisData['Bezeichnung'] . $jahre;
                 } else {
                     $heute = $heute . chr(13) . chr(10) . $thisData['ZeitTxt'] . " " . $thisData['Bezeichnung'] . $jahre;
                 }
             }
             // Variable Morgen füllen
             if ($thisData['DatumTxt'] == date("d.m.Y", time() + 24 * 60 * 60)) {
                 $jahre = "";
                 if ($thisData['Wiederholungen'] > 0) {
                     $jahre = " (" . $thisData['Wiederholungen'] . "J)";
                 }
                 if ($morgen == "") {
                     $morgen = $thisData['ZeitTxt'] . " " . $thisData['Bezeichnung'] . $jahre;
                 } else {
                     $morgen = $morgen . chr(13) . chr(10) . $thisData['ZeitTxt'] . " " . $thisData['Bezeichnung'] . $jahre;
                 }
             }
             // Variable übermorgen füllen
             if ($thisData['DatumTxt'] == date("d.m.Y", time() + 2 * 24 * 60 * 60)) {
                 $jahre = "";
                 if ($thisData['Wiederholungen'] > 0) {
                     $jahre = " (" . $thisData['Wiederholungen'] . "J)";
                 }
                 if ($uemorgen == "") {
                     $uemorgen = $thisData['ZeitTxt'] . " " . $thisData['Bezeichnung'] . $jahre;
                 } else {
                     $uemorgen = $uemorgen . chr(13) . chr(10) . $thisData['ZeitTxt'] . " " . $thisData['Bezeichnung'] . $jahre;
                 }
             }
             // Variable überübermorgen füllen
             if ($thisData['DatumTxt'] == date("d.m.Y", time() + 3 * 24 * 60 * 60)) {
                 $jahre = "";
                 if ($thisData['Wiederholungen'] > 0) {
                     $jahre = " (" . $thisData['Wiederholungen'] . "J)";
                 }
                 if ($ueuemorgen == "") {
                     $ueuemorgen = $thisData['ZeitTxt'] . " " . $thisData['Bezeichnung'] . $jahre;
                 } else {
                     $ueuemorgen = $ueuemorgen . chr(13) . chr(10) . $thisData['ZeitTxt'] . " " . $thisData['Bezeichnung'] . $jahre;
                 }
             }
             // Variable Next füllen
             if (strtotime($thisData['DatumTxt']) >= strtotime(date("d.m.Y", time() + 2 * 24 * 60 * 60))) {
                 $jahre = "";
                 if ($thisData['Wiederholungen'] > 0) {
                     $jahre = " (" . $thisData['Wiederholungen'] . "J)";
                 }
                 if ($next == "") {
                     $next = $thisData['DatumTxt'] . " " . $thisData['ZeitTxt'] . " " . $thisData['Bezeichnung'] . $jahre;
                 } else {
                     $next = $next . chr(13) . chr(10) . $thisData['DatumTxt'] . " " . $thisData['ZeitTxt'] . " " . $thisData['Bezeichnung'] . $jahre;
                 }
             }
             // Variable "Heute & Morgen" füllen
             if ($heute == "") {
                 $heuteumorgen = $morgen;
             } else {
                 $heuteumorgen = $heute . chr(13) . chr(10) . $morgen;
             }
             // Variable Kalender füllen
             if (strtotime($thisData['EndDatumTxt']) >= strtotime(date("d.m.Y", time())) && $this->StyleText[30] == true || $thisData['EndDatum'] >= strtotime(date("d.m.Y H:i", time())) && $this->StyleText[30] == false) {
                 //date("d.m.Y", strtotime("yesterday")))
                 if ($check_date != "" and $thisData['DatumTxt'] != $check_date) {
                     $calDataTxt .= "\n\t\t\t</table>\n\t\t</th>\n\t</tr>";
                 }
                 if ($thisData['DatumTxt'] != $check_date) {
                     if ($thisData['DatumTxt'] == date("d.m.Y")) {
                         $headerTxt = "Heute:";
                     } elseif ($thisData['DatumTxt'] == date("d.m.Y", strtotime("+1 day"))) {
                         $headerTxt = "Morgen:";
                     } else {
                         $headerTxt = $thisData['DatumTxt'] . " in " . $this->seDay($thisData['DatumTxt'], date("d.m.Y"), "dmY", ".") . " Tagen";
                     }
                     $calDataTxt .= "\n" . "\n\t<tr>\n\t\t<td style=' padding:4px;" . "\n\t\t\t\t\tbackground-color:" . $this->StyleText[7] . ";" . "\n\t\t\t\t\tbackground: -moz-linear-gradient(left, " . $this->StyleText[9] . " " . $this->StyleText[10] . ", " . $this->StyleText[7] . " " . $this->StyleText[8] . ");" . "\n\t\t\t\t\tbackground: -webkit-gradient(linear, left top, right top, color-stop(4%," . $this->StyleText[9] . "), color-stop(" . $this->StyleText[8] . "," . $this->StyleText[7] . "));" . "\n\t\t\t\t\tbackground: -webkit-linear-gradient(left, " . $this->StyleText[9] . " " . $this->StyleText[10] . ", " . $this->StyleText[7] . " " . $this->StyleText[8] . ");" . "\n\t\t\t\t\tbackground: -o-linear-gradient(left, " . $this->StyleText[9] . " " . $this->StyleText[10] . ", " . $this->StyleText[7] . " " . $this->StyleText[8] . ");" . "\n\t\t\t\t\tbackground: -ms-linear-gradient(left, " . $this->StyleText[9] . " " . $this->StyleText[10] . ", " . $this->StyleText[7] . " " . $this->StyleText[8] . ");" . "\n\t\t\t\t\tbackground: linear-gradient(to right, " . $this->StyleText[9] . " " . $this->StyleText[10] . "), " . $this->StyleText[7] . " " . $this->StyleText[8] . ";'>";
                     $feiertag = $this->get_Feiertag(strtotime($thisData['DatumTxt']));
                     if ($feiertag != "") {
                         $calDataTxt .= "\n\t\t\t\t<span style='color:" . $this->StyleText[6] . ";font-weight:200;font-size:" . $this->StyleText[11] . "'>" . $headerTxt . " ( {$feiertag} )";
                     } else {
                         $calDataTxt .= "\n\t\t\t\t<span style='color:" . $this->StyleText[1] . ";font-weight:200;font-size:" . $this->StyleText[11] . "'>" . $headerTxt;
                     }
                     $calDataTxt .= "\n\t\t\t\t</span>\n\t\t</td>" . "\n\t\t<td style=' text-align:right; width:100px; padding:4px;background-color:" . $this->StyleText[7] . "'>" . "\n\t\t\t\t<span style='color:" . $this->StyleText[2] . ";font-weight:normal;font-size:" . $this->StyleText[12] . "'>" . $tag[date("w", strtotime($thisData['DatumTxt']))] . "\n\t\t\t\t</span>" . "\n\t\t</td>" . "\n\t</tr>" . "\n\t<tr>" . "\n\t\t<th colspan='2' style='text-align:left; padding-left:20px; padding-right:0px; padding-bottom:10px; padding-top:0px;'>";
                     if ($thisData['DatumTxt'] == date("d.m.Y")) {
                         $calDataTxt .= "\n\t\t\t<table style='border-spacing:0px; width:100%; padding:5px; border:1px solid #1f3247; background-color: " . $this->StyleText[5] . "; '>";
                     } else {
                         $calDataTxt .= "\n\t\t\t<table style='border-spacing:0px; width:100%; padding:5px; border:1px solid #1f3247; background-color: " . $this->StyleText[9] . "; '>";
                     }
                     $check_date = $thisData['DatumTxt'];
                 }
                 $calDataTxt .= $this->SetEintrag($thisData, $tag);
                 //					$this->Logging("~~~~~~~~  Variable: thisData  ~~~~~~~~");
                 //					$this->Logging( print_r($thisData, true) );
             }
         }
         $calDataTxt .= "\n\t\t</table>" . "\n\t\t</th>" . "\n\t</tr>" . "\n</table>";
         // Tabelle schlieüen
         $this->SetValueString("Heute", $heute);
         $this->SetValueString("Morgen", $morgen);
         $this->SetValueString("Uebermorgen", $uemorgen);
         $this->SetValueString("Ueberuebermorgen", $ueuemorgen);
         $this->SetValueString("HeuteMorgen", $heuteumorgen);
         $this->SetValueString("NaechsteTermine", $next);
         $this->SetValueString("Kalender", $calDataTxt);
         $this->SetValueBoolean("Urlaub", $urlaub);
         //			$this->Logging("~~~~~~~~  Variable: calData  ~~~~~~~~");
         //			$this->Logging( print_r($calData, true) );
     }
 }