diff --git a/Monitoring Server Influx V1/module.php b/Monitoring Server Influx V1/module.php index 6570b20..3180efc 100644 --- a/Monitoring Server Influx V1/module.php +++ b/Monitoring Server Influx V1/module.php @@ -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; } diff --git a/library.json b/library.json index 3d97187..6b803a2 100644 --- a/library.json +++ b/library.json @@ -8,6 +8,6 @@ "date": 1491343200 }, "version": "2.5", - "build": 1, + "build": 2, "date": 0 } \ No newline at end of file