From 5a0d6d990f141fed3010d4df39825bd51a1e0002 Mon Sep 17 00:00:00 2001
From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com>
Date: Wed, 9 Mar 2022 13:59:36 +0800
Subject: [PATCH] add bchexdec
---
common.php | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/common.php b/common.php
index 67f9cc9..a1663b3 100644
--- a/common.php
+++ b/common.php
@@ -620,6 +620,14 @@ function proxy_replace_domain($url, $domainforproxy, &$header)
return $aim . '/' . $uri . $sp . 'Origindomain=' . $domain;
}
+function bchexdec($hex) {
+ $len = strlen($hex);
+ for ($i = 1; $i <= $len; $i++)
+ $dec = bcadd($dec, bcmul(strval(hexdec($hex[$i - 1])), bcpow('16', strval($len - $i))));
+
+ return $dec;
+}
+
function isHideFile($name)
{
$FunctionalityFile = [
@@ -1010,7 +1018,7 @@ function message($message, $title = 'Message', $statusCode = 200, $wainstat = 0)
//setTimeout(function() { getStatus() }, 1000);
}
} else if (xhr.status==206) {
- errordiv.innerHTML = "' . getconstStr('Wait') . '" + x + "
" + min;
+ errordiv.innerHTML = "' . getconstStr('Wait') . ' " + min + "
" + x;
setTimeout(function() { getStatus() }, 1000);
} else {
errordiv.innerHTML = "ERROR
" + xhr.status + "
" + xhr.responseText;