mirror of
https://github.com/e107inc/e107.git
synced 2025-08-16 11:36:08 +02:00
Downloads: Basic support for NGINX secure_link_md5
- NEW: "Protection" section in Downloads >> Preferences - NEW: Basic support for NGINX secure_link_md5 in Downloads plugin - NEW: When configured with a URL protection mode, Downloads will modify the direct download URL and/or the mirror download URL to be compatible with the implemented URL protection Fixes: #3075
This commit is contained in:
@@ -12,6 +12,7 @@ define("LAN_DL_OPTIONS", "Options"); //FIXME Use Generic
|
||||
define("LAN_DL_DOWNLOAD_OPT_GENERAL", "General");
|
||||
define("LAN_DL_DOWNLOAD_OPT_BROKEN", "Reporting");
|
||||
define("LAN_DL_DOWNLOAD_OPT_AGREE", "Agreements");
|
||||
define("LAN_DL_DOWNLOAD_OPT_SECURITY", "Protection");
|
||||
define("LAN_DL_UPLOAD", "Upload"); //FIXME Use Generic
|
||||
define("LAN_DL_USE_PHP", "Use PHP");
|
||||
define("LAN_DL_USE_PHP_INFO", "Checking this will send all download requests through PHP");
|
||||
@@ -228,4 +229,16 @@ define("DOWLAN_HELP_10", "Help for upload options");
|
||||
// define("DOWLAN_INSTALL_DONE", "Your download plugin is now installed");
|
||||
// define("DOWLAN_DESCRIPTION", "This plugin is a fully featured Download system");
|
||||
// define("DOWLAN_CAPTION", "Configure Download");
|
||||
?>
|
||||
|
||||
define("LAN_DL_SECURITY_DESCRIPTION", "Downloads can make use of server-side URL protection features to prevent hotlinking and/or enforce link expiry. " .
|
||||
"The download server needs to be configured first before setting the options below.");
|
||||
define("LAN_DL_SECURITY_MODE", "URL protection mode");
|
||||
define("LAN_DL_SECURITY_MODE_NONE", "None (Default)");
|
||||
define("LAN_DL_SECURITY_MODE_NGINX_SECURELINKMD5", "NGINX secure_link_md5");
|
||||
define("LAN_DL_SECURITY_NGINX_SECURELINKMD5_EXPRESSION",
|
||||
"<a target='_blank' href='https://nginx.org/en/docs/http/ngx_http_secure_link_module.html#secure_link_md5'>NGINX secure_link_md5 expression</a>");
|
||||
define("LAN_DL_SECURITY_NGINX_SECURELINKMD5_EXPRESSION_HELP", "Same expression as configured on the server");
|
||||
define("LAN_DL_SECURITY_LINK_EXPIRY", "Duration of validity in seconds");
|
||||
define("LAN_DL_SECURITY_LINK_EXPIRY_HELP", "Number of seconds the download link should last after being generated. " .
|
||||
"Only effective if the expression supports expiry time. " .
|
||||
"Defaults to a very long time if this field is left blank.");
|
Reference in New Issue
Block a user