- var download_link = url + 'file.php?h=' + reference;
- var delete_link = download_link + '&d=' + delete_code;
- var delete_link_href = download_link + '&d=' + delete_code;
+ var download_link = url + 'f.php?h=' + reference;
+ var download_link_href = url + 'f.php?h=' + reference;
+ if (crypt_key.length > 0)
+ {
+ download_link += '&k=' + crypt_key;
+ download_link_href += '&k=' + crypt_key;
+ }
+
+ var delete_link = url + 'f.php?h=' + reference + '&d=' + delete_code;
+ var delete_link_href = url + 'f.php?h=' + reference + '&d=' + delete_code;
+