use ->new_rand()
This commit is contained in:
parent
5bb84b5e70
commit
8370c26e69
|
@ -150,7 +150,7 @@ function createModulePDF($accounts,$pdf_structure="default") {
|
||||||
$subdirs = explode('/', str_replace($_SESSION['lampath'], '', $fullpath));
|
$subdirs = explode('/', str_replace($_SESSION['lampath'], '', $fullpath));
|
||||||
for ($i=0; $i<count($subdirs); $i++ ) $filename .= '../';
|
for ($i=0; $i<count($subdirs); $i++ ) $filename .= '../';
|
||||||
// use timestamp and random number from ldap.inc as filename so it should be unique.
|
// use timestamp and random number from ldap.inc as filename so it should be unique.
|
||||||
$filename .= 'tmp/' . $_SESSION['ldap']->rand . time() .'.pdf';
|
$filename .= 'tmp/' . $_SESSION['ldap']->new_rand() . time() .'.pdf';
|
||||||
// Save PDF
|
// Save PDF
|
||||||
$pdf->Output($filename);
|
$pdf->Output($filename);
|
||||||
// Output meta refresh to pdf-file
|
// Output meta refresh to pdf-file
|
||||||
|
|
Loading…
Reference in New Issue