Commit c8971fbe authored by Laurent Joly's avatar Laurent Joly
Browse files

ajout de la fonction untar (oubliée ?)

parent df3d0f43
......@@ -119,6 +119,13 @@ if (isset($_FILES['appliXml'])) {
echo "Suppression du fichier <b>" . $fileUrl . "</b>.<br>\n";
}
}
echo "<h2>Décompression des fichiers d'installation</h2>\n";
foreach ($package->getElementsByTagName('untar') as $untar) {
$tar_file = (string) $untar->getAttribute('tarfile');
$tar_target = (string) $untar->getAttribute('target');
$return=untar_file($tar_file,$tar_target);
echo $return."<br>\n";
}
}
// si tout est telecharge... import du paquet dans packages.xml
echo "<h2>Importation du xml dans packages.xml et mise &#224; jour de la liste des applications</h2>\n";
......@@ -176,4 +183,4 @@ if (isset($_FILES['appliXml'])) {
<?php
}
include ("pdp.inc.php");
?>
\ No newline at end of file
?>
Supports Markdown
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