path
This commit is contained in:
@@ -676,15 +676,15 @@ class MonitoringServer extends IPSModule {
|
|||||||
// Schreibe Datei lokal
|
// Schreibe Datei lokal
|
||||||
//$state = file_put_contents($localPath, $data);
|
//$state = file_put_contents($localPath, $data);
|
||||||
|
|
||||||
|
$path ='/var/lib/symcon/user/'.$localPath;
|
||||||
$file = fopen($localPath, "w");
|
$file = fopen($path, "w");
|
||||||
$state = fwrite($file, $data);
|
$state = fwrite($file, $data);
|
||||||
fclose($file);
|
fclose($file);
|
||||||
|
|
||||||
IPS_LogMessage ("File Create", "File Put State/Size: ".$state);
|
IPS_LogMessage ("File Create", "File Put State/Size: ".$state);
|
||||||
|
|
||||||
// Lade hoch
|
// Lade hoch
|
||||||
$putstate = ftp_put($ftp, $remotePath, $localPath, FTP_BINARY);
|
$putstate = ftp_put($ftp, $remotePath, $path, FTP_BINARY);
|
||||||
IPS_LogMessage ("FTP", "FTP Put State: ".$putstate);
|
IPS_LogMessage ("FTP", "FTP Put State: ".$putstate);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -8,6 +8,6 @@
|
|||||||
"date": 1491343200
|
"date": 1491343200
|
||||||
},
|
},
|
||||||
"version": "2.5",
|
"version": "2.5",
|
||||||
"build": 6,
|
"build": 7,
|
||||||
"date": 0
|
"date": 0
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user