|
@@ -35,9 +35,10 @@
|
|
|
<meta name="keywords" content="listings,on,premise,solution"/>
|
|
|
|
|
|
<script src="Public/static/js/jquery-3.6.0.min.js" type="text/javascript"></script>
|
|
|
+ <script src="Public/static/js/sha.js" type="text/javascript"></script>
|
|
|
<script src="Public/static/js/common.js" type="text/javascript"></script>
|
|
|
<script src="Public/static/js/bootstrap.min.js" type="text/javascript"></script>
|
|
|
-
|
|
|
+
|
|
|
<link href="Public/static/css/bootstrap.min.css" type="text/css" rel="stylesheet">
|
|
|
<link href="Public/static/css/style.css?v=1631827555" type="text/css" rel="stylesheet">
|
|
|
|
|
@@ -73,6 +74,25 @@
|
|
|
function hideOrigins() {
|
|
|
$("#originsDisplay").css("visibility","hidden");
|
|
|
}
|
|
|
+
|
|
|
+ /*
|
|
|
+ * Display the current hash for the config file
|
|
|
+ *
|
|
|
+ * @returns void
|
|
|
+ */
|
|
|
+ function showEncodedPassword() {
|
|
|
+ if ($("#Password").val() === "") {
|
|
|
+ $("#Password").addClass("emptyfield");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ //if ($("#Salt").val() === "") {
|
|
|
+ // $("#Salt").addClass("emptyfield");
|
|
|
+ // return;
|
|
|
+ //}
|
|
|
+ passw = encryptSha2( $("#Password").val() + $("#Salt").val());
|
|
|
+ msg = "<?PHP echo(getResource0("Please set your hash in the config file with this value", $lang, "/js/home-js.php"));?>:";
|
|
|
+ alert(msg + "\n\n" + passw);
|
|
|
+ }
|
|
|
|
|
|
window.addEventListener("load", function() {
|
|
|
|