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

some usefull cleaning :)

parent 4f2345ba
......@@ -183,10 +183,10 @@ if ($post_action == "Ajouter les applications") // mode ajout applications
$k=0;
foreach ($package->getElementsByTagName('delete') as $del) {
if ($k==0)
{
echo "<h2>Suppression des fichiers d'installation obsolètes</h2>\n";
$k++;
}
{
echo "<h2>Suppression des fichiers d'installation obsolètes</h2>\n";
$k++;
}
$fileUrl = (string) $del->getAttribute('file');
if (file_exists($wpkgroot2 . "/" . $fileUrl)) {
unlink($wpkgroot2 . "/" . $fileUrl);
......@@ -195,17 +195,17 @@ if ($post_action == "Ajouter les applications") // mode ajout applications
}
$k=0;
foreach ($package->getElementsByTagName('untar') as $untar)
{
if ($k==0)
{
echo "<h2>Décompression des fichiers d'installation</h2>\n";
$k++;
}
$tar_file = (string) $untar->getAttribute('tarfile');
$tar_target = (string) $untar->getAttribute('target');
$return=untar_file($tar_file,$tar_target);
echo $return."<br>\n";
}
{
if ($k==0)
{
echo "<h2>Décompression des fichiers d'installation</h2>\n";
$k++;
}
$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";
......
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