From 13e3af62d9cc949b1548430082155e0230c30793 Mon Sep 17 00:00:00 2001 From: Exile Date: Sat, 9 Aug 2014 10:25:46 +0400 Subject: [PATCH] Download -> dl MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Переименование скрипта закачки торрентов. --- upload/admin/admin_attach_cp.php | 2 +- upload/attach_mod/displaying.php | 16 ++++++++-------- upload/attach_mod/displaying_torrent.php | 2 +- upload/attach_mod/posting_attachments.php | 2 +- upload/{download.php => dl.php} | 2 +- upload/includes/init_bb.php | 2 +- upload/robots.txt | 2 +- 7 files changed, 14 insertions(+), 14 deletions(-) rename upload/{download.php => dl.php} (99%) diff --git a/upload/admin/admin_attach_cp.php b/upload/admin/admin_attach_cp.php index 5ec630366..06a253f7c 100644 --- a/upload/admin/admin_attach_cp.php +++ b/upload/admin/admin_attach_cp.php @@ -524,7 +524,7 @@ if ($view == 'attachments') 'S_DELETE_BOX' => $delete_box, 'S_HIDDEN' => $hidden_field, - 'U_VIEW_ATTACHMENT' => BB_ROOT . 'download.php?id=' . $attachments[$i]['attach_id'], + 'U_VIEW_ATTACHMENT' => BB_ROOT . 'dl.php?id=' . $attachments[$i]['attach_id'], )); } diff --git a/upload/attach_mod/displaying.php b/upload/attach_mod/displaying.php index 1efd81481..dd0a72038 100644 --- a/upload/attach_mod/displaying.php +++ b/upload/attach_mod/displaying.php @@ -271,14 +271,14 @@ function display_attachments($post_id) if ($image) { // Images - // NOTE: If you want to use the download.php everytime an image is displayed inlined, replace the + // NOTE: If you want to use the dl.php everytime an image is displayed inlined, replace the // Section between BEGIN and END with (Without the // of course): - // $img_source = BB_ROOT . 'download.php?id=' . $attachments['_' . $post_id][$i]['attach_id']; + // $img_source = BB_ROOT . 'dl.php?id=' . $attachments['_' . $post_id][$i]['attach_id']; // $download_link = TRUE; // Check if we can reach the file or if it is stored outside of the webroot if ($attach_config['upload_dir'][0] == '/' || ( $attach_config['upload_dir'][0] != '/' && $attach_config['upload_dir'][1] == ':')) { - $img_source = BB_ROOT . 'download.php?id=' . $attachments['_' . $post_id][$i]['attach_id']; + $img_source = BB_ROOT . 'dl.php?id=' . $attachments['_' . $post_id][$i]['attach_id']; $download_link = TRUE; } else @@ -315,13 +315,13 @@ function display_attachments($post_id) if ($thumbnail) { // Images, but display Thumbnail - // NOTE: If you want to use the download.php everytime an thumnmail is displayed inlined, replace the + // NOTE: If you want to use the dl.php everytime an thumnmail is displayed inlined, replace the // Section between BEGIN and END with (Without the // of course): - // $thumb_source = BB_ROOT . 'download.php?id=' . $attachments['_' . $post_id][$i]['attach_id'] . '&thumb=1'; + // $thumb_source = BB_ROOT . 'dl.php?id=' . $attachments['_' . $post_id][$i]['attach_id'] . '&thumb=1'; // Check if we can reach the file or if it is stored outside of the webroot if ($attach_config['upload_dir'][0] == '/' || ( $attach_config['upload_dir'][0] != '/' && $attach_config['upload_dir'][1] == ':')) { - $thumb_source = BB_ROOT . 'download.php?id=' . $attachments['_' . $post_id][$i]['attach_id'] . '&thumb=1'; + $thumb_source = BB_ROOT . 'dl.php?id=' . $attachments['_' . $post_id][$i]['attach_id'] . '&thumb=1'; } else { @@ -334,7 +334,7 @@ function display_attachments($post_id) 'DOWNLOAD_NAME' => $display_name, 'S_UPLOAD_IMAGE' => $upload_image, - 'IMG_SRC' => BB_ROOT . 'download.php?id=' . $attachments['_' . $post_id][$i]['attach_id'], + 'IMG_SRC' => BB_ROOT . 'dl.php?id=' . $attachments['_' . $post_id][$i]['attach_id'], 'IMG_THUMB_SRC' => $thumb_source, 'FILESIZE' => $filesize, 'COMMENT' => $comment, @@ -352,7 +352,7 @@ function display_attachments($post_id) // display attachment $template->assign_block_vars('postrow.attach.attachrow', array( - 'U_DOWNLOAD_LINK' => BB_ROOT . 'download.php?id=' . $attachments['_' . $post_id][$i]['attach_id'], + 'U_DOWNLOAD_LINK' => BB_ROOT . 'dl.php?id=' . $attachments['_' . $post_id][$i]['attach_id'], 'S_UPLOAD_IMAGE' => $upload_image, 'DOWNLOAD_NAME' => $display_name, diff --git a/upload/attach_mod/displaying_torrent.php b/upload/attach_mod/displaying_torrent.php index 0c8d478ce..d9dfbd90b 100644 --- a/upload/attach_mod/displaying_torrent.php +++ b/upload/attach_mod/displaying_torrent.php @@ -75,7 +75,7 @@ $tor_auth_del = ($tor_auth && $tor_reged); $tracker_link = ($tor_reged) ? $lang['BT_REG_YES'] : $lang['BT_REG_NO']; -$download_link = "download.php?id=$attach_id"; +$download_link = "dl.php?id=$attach_id"; $description = ($comment) ? $comment : preg_replace("#.torrent$#i", '', $display_name); if ($tor_auth_reg || $tor_auth_del) diff --git a/upload/attach_mod/posting_attachments.php b/upload/attach_mod/posting_attachments.php index 6e8a7f50a..4ae925b00 100644 --- a/upload/attach_mod/posting_attachments.php +++ b/upload/attach_mod/posting_attachments.php @@ -806,7 +806,7 @@ class attach_parent } else { - $download_link = BB_ROOT . 'download.php?id=' . $this->attachment_id_list[$i]; + $download_link = BB_ROOT . 'dl.php?id=' . $this->attachment_id_list[$i]; } $template->assign_block_vars('attach_row', array( diff --git a/upload/download.php b/upload/dl.php similarity index 99% rename from upload/download.php rename to upload/dl.php index aeb524e18..dfdb7398f 100644 --- a/upload/download.php +++ b/upload/dl.php @@ -1,7 +1,7 @@