From 0334d424779dac4f0adf89caa0362a03f93163c3 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Wed, 28 Dec 2005 17:35:20 +0000 Subject: - some changes to browser checking (was the reason for not working logins) - partly working style acp - other tiny changes here and there git-svn-id: file:///svn/phpbb/trunk@5388 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions_transfer.php | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'phpBB/includes/functions_transfer.php') diff --git a/phpBB/includes/functions_transfer.php b/phpBB/includes/functions_transfer.php index 29ca76e240..eee92c2cac 100644 --- a/phpBB/includes/functions_transfer.php +++ b/phpBB/includes/functions_transfer.php @@ -55,7 +55,7 @@ class transfer // temporary files or have write access on a folder within phpBB // like the cache folder. If the user can't do either, then // he/she needs to use the fsock ftp method - $temp_name = tempnam($this->tmp_path, 'ftp_'); + $temp_name = tempnam($this->tmp_path, 'transfer_'); @unlink($temp_name); $fp = @fopen($temp_name, 'w'); @@ -183,6 +183,21 @@ class transfer { return $this->_close(); } + + /** + * Determine methods able to be used + */ + function methods() + { + $methods = array(); + + if (@extension_loaded('ftp')) + { + $methods[] = 'ftp'; + } + + return $methods; + } } /** -- cgit v1.2.1