Commit d279d25e authored by Lionel VEST's avatar Lionel VEST
Browse files

*

parent 44178ffe
......@@ -23,9 +23,7 @@ function read($connection,$input)
$path = '/srv/files/'. $input->db . str_replace('/files/'. $input->db, '', $input->body->path);
$zip_to_create = time() . ".zip";
echo "LC_ALL=fr_FR.UTF-8 export HOME=/srv/api/tmp && cd '" . $path . "'; zip -r '" . $zip_to_create . "' " . implode("' '",$input->body->items) . "' 2>&1";
exec("LC_ALL=fr_FR.UTF-8 export HOME=/srv/api/tmp && cd '" . $path . "'; zip -r '" . $zip_to_create . "' " . implode("' '",$input->body->items) . "' 2>&1",$output);
exec("LC_ALL=fr_FR.UTF-8 export HOME=/srv/api/tmp && cd '" . $path . "'; zip -r '" . $zip_to_create . "' '" . implode("' '",$input->body->items) . "' 2>&1",$output);
if (is_file('/srv/files/demo@demoptimus.fr/==DOSSIERS==/' . $zip_to_create))
return array("code" => 200, "message" => "Conversion effectuée avec succès");
else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment