diff options
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; + } } /** |
