diff --git a/e107_handlers/e_parse_class.php b/e107_handlers/e_parse_class.php index cc903bf03..e8d982be0 100644 --- a/e107_handlers/e_parse_class.php +++ b/e107_handlers/e_parse_class.php @@ -3999,6 +3999,17 @@ class e_parse return str_replace($search, $replace, $lan); } + + public function lanLink($lan, $url, $options=[]) + { + $srch =["[", "]"]; + $repl = ["", ""]; + + $text = defset($lan, $lan); + + return str_replace($srch, $repl, $text); + } + /** * Return an Array of all specific tags found in an HTML document and their attributes. * diff --git a/e107_plugins/download/includes/admin.php b/e107_plugins/download/includes/admin.php index ea1e33d0f..f55ec4a25 100644 --- a/e107_plugins/download/includes/admin.php +++ b/e107_plugins/download/includes/admin.php @@ -2305,7 +2305,7 @@ $columnInfo = array( - ".LAN_DL_SECURITY_NGINX_SECURELINKMD5_EXPRESSION." + ".e107::getParser()->lanLink('LAN_DL_SECURITY_NGINX_SECURELINKMD5_EXPRESSION','https://nginx.org/en/docs/http/ngx_http_secure_link_module.html#secure_link_md5')." ".$frm->text('download_security_expression', $pref['download_security_expression'], 1024)."
".LAN_DL_SECURITY_NGINX_SECURELINKMD5_EXPRESSION_HELP."
diff --git a/e107_plugins/download/languages/English/English_admin.php b/e107_plugins/download/languages/English/English_admin.php index 8a4730486..bb84eb27f 100644 --- a/e107_plugins/download/languages/English/English_admin.php +++ b/e107_plugins/download/languages/English/English_admin.php @@ -233,16 +233,12 @@ define("DOWLAN_HELP_11", "Click the 'delete' button to delete the report.[br][br // 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. " . - "This section should be configured before the download server is configured to reduce the chance of disruption to downloaders."); +define("LAN_DL_SECURITY_DESCRIPTION", "Downloads can make use of server-side URL protection features to prevent hotlinking and/or enforce link expiry. This section should be configured before the download server is configured to reduce the chance of disruption to downloaders."); 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_SUPPORTED_VARIABLES_TOGGLE", "Click to toggle list of supported NGINX variables"); -define("LAN_DL_SECURITY_NGINX_SECURELINKMD5_EXPRESSION", - "NGINX secure_link_md5 expression"); +define("LAN_DL_SECURITY_NGINX_SECURELINKMD5_EXPRESSION", "[NGINX secure_link_md5 expression]"); 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."); \ No newline at end of file +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."); \ No newline at end of file