Translation , after export from ANC GREAT LEDGER does not clean old files

This commit is contained in:
Dany De Bontridder 2016-04-04 23:22:22 +02:00
parent 3d9b5cc4f0
commit 7b67f95fdb
5 changed files with 1116 additions and 245 deletions

View file

@ -93,9 +93,17 @@ class Document_Export
header('Pragma: public');
echo file_get_contents($this->store_pdf . '/result.pdf');
}
/**
* @brief remove folder and its content
*/
function clean_folder()
{
return;
$files= scandir($this->store_convert);
$nb_file=count($file);
for ($i=0;$i < $nb_file;$i++) {
if (is_file($files[$i])) unlink($file[$i]);
}
rmdir($this->store_convert);
}
@ -138,7 +146,6 @@ class Document_Export
continue;
}
}
// Create a image with the stamp + formula
$img = imagecreatefromgif(NOALYSS_INCLUDE . '/template/template.gif');
$font = imagecolorallocatealpha($img, 100, 100, 100, 110);