use ->new_rand()

This commit is contained in:
Roland Gruber 2007-07-08 11:06:06 +00:00
parent 5bb84b5e70
commit 8370c26e69
1 changed files with 1 additions and 1 deletions

View File

@ -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