![]() |
Awesome Addon!
Clicks install |
Quote:
|
Quote:
Such as if you come from google.com and you request http://forums.blah.com/local_links.php?action=jump&id=1 it would not request the file directly, but it would open up a page that you must first click the download now link before you can continue with the download. Therefore making it 100% (I think) leech proof. However right now I am using the method where users must be logged in before they can download a file. |
I love your script and have been using it for a pretty long time now! Great work!
But lately i have noticed a small problem when linking to files at SourceForge, both in v1.10 and still in v1.25 (upgraded today). Since you link to a zip-file at sourceforge the url ends with ".zip" but when you click on the link you get to a webpage with mirrors. So when you try to download the file you get a text file (name.zip) that contains the HTML page. Is it possible for the links & filedatabase to be able to check if its really a zip-file and if its not then the webpage will be shown instead with the mirrors at sourceforge. (Btw, it can be any file-formats, not only zip) |
Quote:
|
Sourceforge provides links that have URLs looking like zip files, etc, but are treated as an instruction to redirect to the mirrors page where you actually choose the mirror you want. Perhaps other sites do the same. Versions of this hack up to 1.25 fail to spot this and give you a download which is actually the html code for the redirect.
To fix this, find the following code in local_links.php (line 1896 in version 1.25) Code:
$dfname = basename($urlInfo['path']); Code:
if (!is_array($mimetype)) { Code:
if (!is_array($mimetype) or $urlInfo['query'] != "") { |
Quote:
Code:
<meta name="robots" content="index, nofollow"> |
Good work on the continued support - this script is gaining in maturity every day :D
|
Quote:
Thanks. |
Quote:
PHP Code:
Should this be a configuration option? |
All times are GMT. The time now is 12:54 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|