Rev 4 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4 | Rev 6 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | /* |
1 | /* |
2 | * php_clientchallenge |
2 | * php_clientchallenge |
3 | * Copyright 2021 Daniel Marschall, ViaThinkSoft |
3 | * Copyright 2021-2022 Daniel Marschall, ViaThinkSoft |
4 | * |
4 | * |
5 | * Licensed under the Apache License, Version 2.0 (the "License"); |
5 | * Licensed under the Apache License, Version 2.0 (the "License"); |
6 | * you may not use this file except in compliance with the License. |
6 | * you may not use this file except in compliance with the License. |
7 | * You may obtain a copy of the License at |
7 | * You may obtain a copy of the License at |
8 | * |
8 | * |
Line 20... | Line 20... | ||
20 | type: "POST", |
20 | type: "POST", |
21 | url: getChallengeScript, |
21 | url: getChallengeScript, |
22 | data: { |
22 | data: { |
23 | }, |
23 | }, |
24 | success: function(data) { |
24 | success: function(data) { |
- | 25 | if ("error" in data) { |
|
- | 26 | error_cb(null,null,data["error"]); |
|
- | 27 | return; |
|
- | 28 | } |
|
25 | var starttime = data[0]; |
29 | var starttime = data[0]; |
26 | var ip_target = data[1]; |
30 | var ip_target = data[1]; |
27 | var challenge = data[2]; |
31 | var challenge = data[2]; |
28 | var min = data[3]; |
32 | var min = data[3]; |
29 | var max = data[4]; |
33 | var max = data[4]; |