2022-03-02 13:38:15 +01:00
|
|
|
<?php
|
2023-09-28 11:08:46 +02:00
|
|
|
namespace Paheko;
|
2022-03-02 13:38:15 +01:00
|
|
|
|
|
|
|
// supprimer les fichiers créés
|
|
|
|
|
|
|
|
// signature par défaut
|
2023-10-04 14:27:56 +02:00
|
|
|
$default_signature_file = \Paheko\Files\Files::get('ext/recusfiscaux/default_signature.png');
|
2022-03-03 14:15:48 +01:00
|
|
|
if (null !== $default_signature_file) {
|
|
|
|
$default_signature_file->delete();
|
|
|
|
}
|
2022-03-02 13:38:15 +01:00
|
|
|
|
|
|
|
// signature réelle
|
2022-03-03 12:09:52 +01:00
|
|
|
$signature = $plugin->getConfig('signature');
|
|
|
|
if (null !== $signature) {
|
2023-09-28 11:08:46 +02:00
|
|
|
$sig_file = \Paheko\Files\Files::get($signature);
|
2022-03-03 14:15:48 +01:00
|
|
|
if (null !== $sig_file) {
|
|
|
|
$sig_file->delete();
|
|
|
|
}
|
2022-03-03 12:09:52 +01:00
|
|
|
}
|
2022-03-14 18:58:20 +01:00
|
|
|
unset($_SESSION['sig_file']);
|