summaryrefslogtreecommitdiffstats
path: root/inc/taskmanagercallback.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2016-05-21 15:52:06 +0200
committerSimon Rettberg2016-05-21 15:52:06 +0200
commit3d34a267c9cc079629ed5a8db8aca5808c7a1506 (patch)
treecbd71147a24b32b67f62e503ab0ce0126a729113 /inc/taskmanagercallback.inc.php
parent[serversetup-bwlp] Translate usb download; fix attachment name (diff)
downloadslx-admin-3d34a267c9cc079629ed5a8db8aca5808c7a1506.tar.gz
slx-admin-3d34a267c9cc079629ed5a8db8aca5808c7a1506.tar.xz
slx-admin-3d34a267c9cc079629ed5a8db8aca5808c7a1506.zip
[taskmanagercallback] Add imgupload callback
Diffstat (limited to 'inc/taskmanagercallback.inc.php')
-rw-r--r--inc/taskmanagercallback.inc.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/inc/taskmanagercallback.inc.php b/inc/taskmanagercallback.inc.php
index 7d4e79f3..f40db297 100644
--- a/inc/taskmanagercallback.inc.php
+++ b/inc/taskmanagercallback.inc.php
@@ -174,4 +174,20 @@ class TaskmanagerCallback
}
}
+ public static function uploadimg($task)
+ {
+ //$string=var_export($task, true);
+ //file_put_contents('teste.txt',$string);
+ if (Taskmanager::isFailed($task)){
+ EventLog::warning("ApiUpload failed: ", $task['data']['messages']);
+ }
+ $ret = Database::exec("UPDATE upload SET is_ready = :ready," .
+ " path = :path WHERE token = :token", array(
+ "ready"=>true,
+ "path"=>$task['data']['path'],
+ "token"=>$task['data']['token']
+ ));
+ }
+
+
}