summaryrefslogtreecommitdiffstats
path: root/json.php
diff options
context:
space:
mode:
Diffstat (limited to 'json.php')
-rw-r--r--json.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/json.php b/json.php
index a915c38..e922095 100644
--- a/json.php
+++ b/json.php
@@ -20,12 +20,13 @@ if ( isset($_GET['host']) && !empty($_GET['host'])) {
if ( !is_numeric($port) ) {
$port = 443;
}
+ $fastcheck = $_GET['fastcheck'];
$write_cache = 1;
$hostfilename = preg_replace("([^\w\s\d\-_~,;:\[\]\(\).])", '', $host);
$hostfilename = preg_replace("([\.]{2,})", '', $host);
$hostfilename = preg_replace("([^a-z0-9])", '', $host);
$cache_filename = (string) "results/saved." . $hostfilename . "." . $epoch . "." . $random_bla . ".api.json";
- $data["data"] = check_json($host, $ip, $port);
+ $data["data"] = check_json($host, $ip, $port, $fastcheck);
} elseif(isset($_GET['csr']) && !empty($_GET['csr'])) {
$write_cache = 1;
$cache_filename = (string) "results/saved.csr." . $epoch . "." . $random_bla . ".api.json";