Log added

This commit is contained in:
jhartworks
2025-07-04 13:22:46 +02:00
parent 65a9f6926f
commit 4484d5dc3c
2 changed files with 7 additions and 5 deletions
+6 -4
View File
@@ -588,8 +588,8 @@ private function sendFtp(){
$ftp_user_name = $this->ReadPropertyString("FtpUser");
$ftp_user_pass = $this->ReadPropertyString("FtpPassword");
if ($goforit == true){
if ($goforit == true or $goforit == 1){
IPS_LogMessage ("FTP", "FTP Is ON!!!");
$catNotifyId = $this->ReadPropertyInteger("ParseNotifyCategoryID");
$catAnalogId = $this->ReadPropertyInteger("ParseAnalogCategoryID");
$catAlarmId = $this->ReadPropertyInteger("ParseAlarmCategoryID");
@@ -614,13 +614,15 @@ private function sendFtp(){
$ftp = ftp_ssl_connect($ftp_server);
if (!$ftp) {
echo "FTP-Verbindung fehlgeschlagen.";
IPS_LogMessage ("FTP", "FTP-Verbindung fehlgeschlagen.");
///echo "FTP-Verbindung fehlgeschlagen.";
return;
}
$login_result = ftp_login($ftp, $ftp_user_name, $ftp_user_pass);
if (!$login_result) {
echo "FTP-Login fehlgeschlagen.";
IPS_LogMessage ("FTP", "FTP-Login fehlgeschlagen.");
///echo "FTP-Login fehlgeschlagen.";
ftp_close($ftp);
return;
}
+1 -1
View File
@@ -8,6 +8,6 @@
"date": 1491343200
},
"version": "2.5",
"build": 1,
"build": 2,
"date": 0
}