le nom du fichier non predictible
This commit is contained in:
parent
8df4aaf7cf
commit
ce238e0fed
1 changed files with 2 additions and 1 deletions
|
@ -11,7 +11,7 @@ function action_pdf_gamutable_dist() {
|
||||||
}
|
}
|
||||||
|
|
||||||
$fichierpdf = _request('fichierpdf') ?? '';
|
$fichierpdf = _request('fichierpdf') ?? '';
|
||||||
$namepdf = _request('namepdf') ?? $fichierpdf;
|
// $namepdf = _request('namepdf') ?? $fichierpdf;
|
||||||
$header = _request('header') ?? [];
|
$header = _request('header') ?? [];
|
||||||
$Tdata = _request('data') ?? [];
|
$Tdata = _request('data') ?? [];
|
||||||
$arg = _request('arg') ?? '';
|
$arg = _request('arg') ?? '';
|
||||||
|
@ -43,6 +43,7 @@ function action_pdf_gamutable_dist() {
|
||||||
include_spip('spipdf_options');
|
include_spip('spipdf_options');
|
||||||
include_spip('inc/spipdf');
|
include_spip('inc/spipdf');
|
||||||
|
|
||||||
|
$namepdf = 'pdf_' . time();
|
||||||
$a = spipdf_html2pdf($fond);
|
$a = spipdf_html2pdf($fond);
|
||||||
$dir = sous_repertoire(_DIR_IMG . 'pdfgamutable');
|
$dir = sous_repertoire(_DIR_IMG . 'pdfgamutable');
|
||||||
$chemin = $dir . md5($namepdf) . '.pdf' ;
|
$chemin = $dir . md5($namepdf) . '.pdf' ;
|
||||||
|
|
Loading…
Add table
Reference in a new issue