now setting /tmp or c:\temp automatically as temp-dir (was only /tmp)

This commit is contained in:
Ralf Becker 2004-03-21 16:25:22 +00:00
parent 1417a115f6
commit 23bf823035

View File

@ -199,6 +199,10 @@
{ {
$GLOBALS['current_config']['temp_dir'] = '/tmp'; $GLOBALS['current_config']['temp_dir'] = '/tmp';
} }
elseif(@is_dir('c:\\temp'))
{
$GLOBALS['current_config']['temp_dir'] = 'c:\\temp';
}
else else
{ {
$GLOBALS['current_config']['temp_dir'] = '/path/to/temp/dir'; $GLOBALS['current_config']['temp_dir'] = '/path/to/temp/dir';