aboutsummaryrefslogtreecommitdiffstats
path: root/jsaccess/jsa/jsa.js
diff options
context:
space:
mode:
Diffstat (limited to 'jsaccess/jsa/jsa.js')
-rw-r--r--jsaccess/jsa/jsa.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/jsaccess/jsa/jsa.js b/jsaccess/jsa/jsa.js
index f423533..b94d4e2 100644
--- a/jsaccess/jsa/jsa.js
+++ b/jsaccess/jsa/jsa.js
@@ -129,15 +129,18 @@ function _dl(file, pass) {
var dirhash = RMD160.hex(pass);
var crypt = file.split(" ").pop();
var filename = file.substring(0, file.lastIndexOf(" "));
- var path = 'store/' + dirhash + '/' + RMD160.hex(dirhash + filename);
_status("Downloading \""+filename+"\" ...");
+ /* File is not encrypted */
if (crypt == '(nocrypt)') {
+ var path = 'store/' + dirhash + '/' + filename;
_status("File is in your hands,<br/>Have a good day.<br/>");
window.location = path;
return;
}
+ /* File is encrypted */
+ var path = 'store/' + dirhash + '/' + RMD160.hex(dirhash + filename);
dlreq = $.ajax({
url: path,
beforeSend: function ( xhr ) {