Log added
This commit is contained in:
@@ -588,8 +588,8 @@ private function sendFtp(){
|
|||||||
$ftp_user_name = $this->ReadPropertyString("FtpUser");
|
$ftp_user_name = $this->ReadPropertyString("FtpUser");
|
||||||
$ftp_user_pass = $this->ReadPropertyString("FtpPassword");
|
$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");
|
$catNotifyId = $this->ReadPropertyInteger("ParseNotifyCategoryID");
|
||||||
$catAnalogId = $this->ReadPropertyInteger("ParseAnalogCategoryID");
|
$catAnalogId = $this->ReadPropertyInteger("ParseAnalogCategoryID");
|
||||||
$catAlarmId = $this->ReadPropertyInteger("ParseAlarmCategoryID");
|
$catAlarmId = $this->ReadPropertyInteger("ParseAlarmCategoryID");
|
||||||
@@ -614,13 +614,15 @@ private function sendFtp(){
|
|||||||
|
|
||||||
$ftp = ftp_ssl_connect($ftp_server);
|
$ftp = ftp_ssl_connect($ftp_server);
|
||||||
if (!$ftp) {
|
if (!$ftp) {
|
||||||
echo "FTP-Verbindung fehlgeschlagen.";
|
IPS_LogMessage ("FTP", "FTP-Verbindung fehlgeschlagen.");
|
||||||
|
///echo "FTP-Verbindung fehlgeschlagen.";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$login_result = ftp_login($ftp, $ftp_user_name, $ftp_user_pass);
|
$login_result = ftp_login($ftp, $ftp_user_name, $ftp_user_pass);
|
||||||
if (!$login_result) {
|
if (!$login_result) {
|
||||||
echo "FTP-Login fehlgeschlagen.";
|
IPS_LogMessage ("FTP", "FTP-Login fehlgeschlagen.");
|
||||||
|
///echo "FTP-Login fehlgeschlagen.";
|
||||||
ftp_close($ftp);
|
ftp_close($ftp);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -8,6 +8,6 @@
|
|||||||
"date": 1491343200
|
"date": 1491343200
|
||||||
},
|
},
|
||||||
"version": "2.5",
|
"version": "2.5",
|
||||||
"build": 1,
|
"build": 2,
|
||||||
"date": 0
|
"date": 0
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user