change sha1.js from jsdelivr to unpkg

pull/556/head
qkqpttgf 2022-02-22 10:25:45 +08:00 committed by GitHub
parent c48ebba178
commit a7acdaeb7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -732,6 +732,7 @@ function chkTxtCode($str) {
$code = array( $code = array(
'ASCII', 'ASCII',
'GBK', 'GBK',
'GB18030',
'UTF-8', 'UTF-8',
'UTF-16', 'UTF-16',
); );
@ -1191,7 +1192,7 @@ function adminform($name = '', $pass = '', $storage = '', $path = '')
xhr.send(null); xhr.send(null);
} }
</script> </script>
<script src="https://cdn.jsdelivr.net/npm/js-sha1@0.6.0/src/sha1.min.js"></script>'; <script src="https://www.unpkg.com/js-sha1@0.6.0/src/sha1.js"></script>';
$html .= '</html>'; $html .= '</html>';
return output($html, $statusCode); return output($html, $statusCode);
} }
@ -1949,7 +1950,7 @@ output:
$frame .= getconstStr('NotNeedUpdate'); $frame .= getconstStr('NotNeedUpdate');
}*/ }*/
$frame .= '<br><br> $frame .= '<br><br>
<script src="https://cdn.jsdelivr.net/npm/js-sha1@0.6.0/src/sha1.min.js"></script> <script src="https://www.unpkg.com/js-sha1@0.6.0/src/sha1.js"></script>
<table> <table>
<form id="change_pass" name="change_pass" action="" method="POST" onsubmit="return changePassword(this);"> <form id="change_pass" name="change_pass" action="" method="POST" onsubmit="return changePassword(this);">
<input name="_admin" type="hidden" value=""> <input name="_admin" type="hidden" value="">