Revision 3afca6ae
Von Moritz Bunkus vor fast 8 Jahren hinzugefügt
SL/Form.pm | ||
---|---|---|
use File::Copy;
|
||
use IO::File;
|
||
use Math::BigInt;
|
||
use POSIX qw(strftime);
|
||
use SL::Auth;
|
||
use SL::Auth::DB;
|
||
use SL::Auth::LDAP;
|
||
... | ... | |
$suffix = $self->{IN};
|
||
$suffix =~ s/.*\.//;
|
||
($temp_fh, $self->{tmpfile}) = File::Temp::tempfile(
|
||
'kivitendo-printXXXXXX',
|
||
strftime('kivitendo-print-%Y%m%d%H%M%S-XXXXXX', localtime()),
|
||
SUFFIX => '.' . ($suffix || 'tex'),
|
||
DIR => $userspath,
|
||
UNLINK => ($::lx_office_conf{debug} && $::lx_office_conf{debug}->{keep_temp_files})? 0 : 1,
|
Auch abrufbar als: Unified diff
Druckfunktion: Zeitstempel im Dateinamen
Das hilft herauszufinden, welche die neueste Datei ist, wenn man
Druckvorlagen debuggt und dann viele temporäre Dateien herumliegen
hat.