mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Configurable download torrent url
Signed-off-by: Yuriy Pikhtarev <iglix@me.com>
This commit is contained in:
parent
f09286900c
commit
5a1a4762b8
10 changed files with 13 additions and 12 deletions
2
dl.php
2
dl.php
|
@ -186,7 +186,7 @@ if (IS_GUEST && !bb_captcha('check')) {
|
|||
global $template;
|
||||
|
||||
$redirect_url = $_POST['redirect_url'] ?? $_SERVER['HTTP_REFERER'] ?? '/';
|
||||
$message = '<form action="' . DOWNLOAD_URL . $attachment['attach_id'] . '" method="post">';
|
||||
$message = '<form action="' . DL_URL . $attachment['attach_id'] . '" method="post">';
|
||||
$message .= $lang['CAPTCHA'] . ':';
|
||||
$message .= '<div class="mrg_10" align="center">' . bb_captcha('get') . '</div>';
|
||||
$message .= '<input type="hidden" name="redirect_url" value="' . $redirect_url . '" />';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue