Skip to content
This repository has been archived by the owner on Mar 1, 2021. It is now read-only.

Nom d'image variable #1

Merged
merged 1 commit into from
Mar 11, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions dist/ucam.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function sdk_main() {
$content = httpQuery($urlSnap);
$res['snapshot'][$i]['snap']['success'] = $content != null;
$res['snapshot'][$i]['snap']['content'] = substr($content, 0, 50) . '...';
$r = sdk_ftpUpload($aFtpTarget, $content);
$r = sdk_ftpUpload($aFtpTarget, $content, $i);
$res['snapshot'][$i]['ftpupload']['success'] = $r != null;
$res['snapshot'][$i]['ftpupload']['content'] = $r;
usleep($snapInterval*1000*1000);
Expand Down Expand Up @@ -93,13 +93,13 @@ function sdk_preset($urlPreset, $presetId) {
/*******************************************************************************
* Envoie du contenue par FTP
*/
function sdk_ftpUpload($aFtpTarget, $content) {
function sdk_ftpUpload($aFtpTarget, $content, $i) {
return ftpUpload(
$aFtpTarget['server'],
$aFtpTarget['user'],
$aFtpTarget['pwd'],
$content,
'time_fetch_box.jpg'
'time_fetch_box_'.$i.'.jpg'
);
}

Expand Down