add bchexdec

pull/574/head
qkqpttgf 2022-03-09 13:59:36 +08:00 committed by GitHub
parent 6eb6a826cf
commit 5a0d6d990f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 1 deletions

View File

@ -620,6 +620,14 @@ function proxy_replace_domain($url, $domainforproxy, &$header)
return $aim . '/' . $uri . $sp . 'Origindomain=' . $domain; 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) function isHideFile($name)
{ {
$FunctionalityFile = [ $FunctionalityFile = [
@ -1010,7 +1018,7 @@ function message($message, $title = 'Message', $statusCode = 200, $wainstat = 0)
//setTimeout(function() { getStatus() }, 1000); //setTimeout(function() { getStatus() }, 1000);
} }
} else if (xhr.status==206) { } else if (xhr.status==206) {
errordiv.innerHTML = "' . getconstStr('Wait') . '" + x + "<br>" + min; errordiv.innerHTML = "' . getconstStr('Wait') . ' " + min + "<br>" + x;
setTimeout(function() { getStatus() }, 1000); setTimeout(function() { getStatus() }, 1000);
} else { } else {
errordiv.innerHTML = "ERROR<br>" + xhr.status + "<br>" + xhr.responseText; errordiv.innerHTML = "ERROR<br>" + xhr.status + "<br>" + xhr.responseText;