From 23bf8230357b7e04dc0384f4c9e42b56242592d5 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sun, 21 Mar 2004 16:25:22 +0000 Subject: [PATCH] now setting /tmp or c:\temp automatically as temp-dir (was only /tmp) --- phpgwapi/inc/class.setup_process.inc.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/phpgwapi/inc/class.setup_process.inc.php b/phpgwapi/inc/class.setup_process.inc.php index 9c7f8d3b91..4475b58107 100644 --- a/phpgwapi/inc/class.setup_process.inc.php +++ b/phpgwapi/inc/class.setup_process.inc.php @@ -199,6 +199,10 @@ { $GLOBALS['current_config']['temp_dir'] = '/tmp'; } + elseif(@is_dir('c:\\temp')) + { + $GLOBALS['current_config']['temp_dir'] = 'c:\\temp'; + } else { $GLOBALS['current_config']['temp_dir'] = '/path/to/temp/dir';