diff options
| author | Meik Sievertsen <acydburn@phpbb.com> | 2005-12-28 17:35:20 +0000 |
|---|---|---|
| committer | Meik Sievertsen <acydburn@phpbb.com> | 2005-12-28 17:35:20 +0000 |
| commit | 0334d424779dac4f0adf89caa0362a03f93163c3 (patch) | |
| tree | 91f9771d64488df6366eac5e76f783a1979576e1 /phpBB/includes/functions_transfer.php | |
| parent | 761598e1b78d704b7f9aed82f8ac35673b4174bd (diff) | |
| download | forums-0334d424779dac4f0adf89caa0362a03f93163c3.tar forums-0334d424779dac4f0adf89caa0362a03f93163c3.tar.gz forums-0334d424779dac4f0adf89caa0362a03f93163c3.tar.bz2 forums-0334d424779dac4f0adf89caa0362a03f93163c3.tar.xz forums-0334d424779dac4f0adf89caa0362a03f93163c3.zip | |
- 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
Diffstat (limited to 'phpBB/includes/functions_transfer.php')
| -rw-r--r-- | phpBB/includes/functions_transfer.php | 17 |
1 files changed, 16 insertions, 1 deletions
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; + } } /** |
