diff options
author | Chris Smith <chris.eureka@jalakai.co.uk> | 2008-04-08 03:43:39 +0200 |
---|---|---|
committer | Chris Smith <chris.eureka@jalakai.co.uk> | 2008-04-08 03:43:39 +0200 |
commit | da1e1077c91300e28b0134255fe1d90b5890bbdc (patch) | |
tree | 6360fa5cb908cdfad789690e80871c47d16b217a | |
parent | 6b4feb283d36130124c71a10e5c39b9e87061267 (diff) | |
download | rpg-da1e1077c91300e28b0134255fe1d90b5890bbdc.tar.gz rpg-da1e1077c91300e28b0134255fe1d90b5890bbdc.tar.bz2 |
update io_mktmpdir() to use $conf['tmpdir'] and mt_rand()
darcs-hash:20080408014339-f07c6-63870bfa4e45d05275cf46993bee62d61a6cc5a8.gz
-rw-r--r-- | inc/io.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/io.php b/inc/io.php index eb9366c25..6a20f319a 100644 --- a/inc/io.php +++ b/inc/io.php @@ -447,8 +447,8 @@ function io_mkdir_ftp($dir){ function io_mktmpdir() { global $conf; - $base = $conf['savedir'].'/tmp/'; - $dir = md5(uniqid(rand(), true)); + $base = $conf['tmpdir']; + $dir = md5(uniqid(mt_rand(), true)); $tmpdir = $base.$dir; if(io_mkdir_p($tmpdir)) { |