aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_display.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-08-10 12:22:22 +0200
committerJoas Schilling <nickvergessen@gmx.de>2014-08-10 12:22:22 +0200
commit1f6b9628e78f7a82eb2a3a455ef4a0448999dd68 (patch)
tree2c3c4a6cd668ac80d60a03690e16aa6c4d292589 /phpBB/includes/functions_display.php
parentdf9f35cce6a31e652fd2a4c403a86759319a2d24 (diff)
parent74c3579693bac0c09bfd3bd9eded18cf57107c33 (diff)
downloadforums-1f6b9628e78f7a82eb2a3a455ef4a0448999dd68.tar
forums-1f6b9628e78f7a82eb2a3a455ef4a0448999dd68.tar.gz
forums-1f6b9628e78f7a82eb2a3a455ef4a0448999dd68.tar.bz2
forums-1f6b9628e78f7a82eb2a3a455ef4a0448999dd68.tar.xz
forums-1f6b9628e78f7a82eb2a3a455ef4a0448999dd68.zip
Merge pull request #2852 from bantu/ticket/12938
[ticket/12938] Remove the 'Download all attachments' feature. * bantu/ticket/12938: [ticket/12938] Remove functional tests for 'Download all attachments'. [ticket/12938] Remove the 'Download all attachments' feature.
Diffstat (limited to 'phpBB/includes/functions_display.php')
-rw-r--r--phpBB/includes/functions_display.php38
1 files changed, 0 insertions, 38 deletions
diff --git a/phpBB/includes/functions_display.php b/phpBB/includes/functions_display.php
index 62f218cf60..78137d075b 100644
--- a/phpBB/includes/functions_display.php
+++ b/phpBB/includes/functions_display.php
@@ -1421,44 +1421,6 @@ function get_user_rank($user_rank, $user_posts, &$rank_title, &$rank_img, &$rank
}
/**
-* Generate a list of archive types available for compressing attachments
-*
-* @param string $param_key Either topic_id or post_id
-* @param string $param_val The value of the topic or post id
-* @param string $phpbb_root_path The root path of the phpBB installation
-* @param string $phpEx The PHP file extension
-*
-* @return array Array containing the link and the type of compression
-*/
-function phpbb_gen_download_links($param_key, $param_val, $phpbb_root_path, $phpEx)
-{
- if (!class_exists('compress'))
- {
- require $phpbb_root_path . 'includes/functions_compress.' . $phpEx;
- }
-
- $methods = compress::methods();
- // Sort by preferred type.
- $methods = array_intersect(array('.zip', '.tar.bz2', '.tar.gz', '.tar'), $methods);
- $links = array();
-
- foreach ($methods as $method)
- {
- $exploded = explode('.', $method);
- $type = array_pop($exploded);
- $params = array('archive' => $method);
- $params[$param_key] = $param_val;
-
- $links[] = array(
- 'LINK' => append_sid("{$phpbb_root_path}download/file.$phpEx", $params),
- 'TYPE' => $type,
- );
- }
-
- return $links;
-}
-
-/**
* Prepare profile data
*/
function phpbb_show_profile($data, $user_notes_enabled = false, $warn_user_enabled = false)