Closed wangzhizhou closed 3 years ago
when I selected the skinrestorer config.yml, the page become display error as follow:
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>鐨偆绯荤粺</title>
<!-- Libraries -->
<link rel="shortcut icon" href="favicon.ico">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous">
<link id="stylesheetSelector" rel="stylesheet" name="_light" href="resources/themes/_light.css"> <script type="text/javascript">
function setCookie(cname, cvalue) {
var d = new Date(); d.setTime(d.getTime() + (365*24*60*60*1000)); // cookies will last a year
document.cookie = cname + "=" + cvalue + ";expires="+ d.toUTCString() + ";path=/";
}
var theme = document.getElementById("stylesheetSelector").getAttribute("name");
setCookie("theme", theme); // swap that stale cookie for a new one!
function rotateTheme() { // move a metaphorical carousel by one item
$.getJSON("resources/themes/",{}, function(lst){
setCookie("theme", lst[((lst.indexOf(theme+".css")+1)%lst.length)].slice(0, -4));
location.reload();
});
}
var l = {};
l.uplty1_lbl = "閫夋嫨鐨偆...";
</script>
{
"type": "error",
"title": "URL閿欒: ",
"heightAuto": false,
"showConfirmButton": false,
"showCloseButton": true,
"footer": "<div class=\"container\">\n<div class=\"col\"><a href=\"https://help.mojang.com\"><i class=\"fas fa-exclamation-circle\" style=\"padding-right: 5px;\"></i>sessionserver.mojang.com鍑虹幇闂</a></div></div>",
"success": true
}
I have find resolution, replace php code snippet with:
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.2.1/dist/js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/94/three.min.js" integrity="sha256-NGC9JEuTWN4GhTj091wctgjzftr+8WNDmw0H8J5YPYE=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/gh/InventivetalentDev/MineRender@1.4.6/dist/skin.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@10.15.5/dist/sweetalert2.all.min.js"></script>
in
index.php
, this code snippets may have problem:The js file's sha512 hash value is not equal the hard code sha512 value.
php version is 7.4