sha1 admin pass in submit
parent
dd4dde83f3
commit
928d028d7f
|
@ -462,14 +462,15 @@
|
||||||
<div id="login_div" class="operatediv" style="display:none">
|
<div id="login_div" class="operatediv" style="display:none">
|
||||||
<div style="margin:50px">
|
<div style="margin:50px">
|
||||||
<a onclick="operatediv_close('login')" class="operatediv_close"><!--constStr@Close--></a>
|
<a onclick="operatediv_close('login')" class="operatediv_close"><!--constStr@Close--></a>
|
||||||
<center>
|
<center>
|
||||||
<form action="<!--IsPreview?-->admin" method="post">
|
<form action="<!--IsPreview?-->admin" method="post" onsubmit="return sha1loginpass(this);">
|
||||||
<input id="login_input" name="password1" type="password" placeholder="<!--constStr@InputPassword-->">
|
<input id="login_input" name="password1" type="password" placeholder="<!--constStr@InputPassword-->">
|
||||||
<input type="submit" value="<!--constStr@Login-->">
|
<input name="timestamp" type="hidden" value="">
|
||||||
</form>
|
<input type="submit" value="<!--constStr@Login-->">
|
||||||
|
</form>
|
||||||
</center>
|
</center>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!--LoginEnd-->
|
<!--LoginEnd-->
|
||||||
<div style="color: rgba(247,247,249,0);"><!--FootStr--></div>
|
<div style="color: rgba(247,247,249,0);"><!--FootStr--></div>
|
||||||
</body>
|
</body>
|
||||||
|
@ -478,7 +479,8 @@
|
||||||
<!--MdRequireStart--><link rel="stylesheet" href="//unpkg.zhimg.com/github-markdown-css@3.0.1/github-markdown.css">
|
<!--MdRequireStart--><link rel="stylesheet" href="//unpkg.zhimg.com/github-markdown-css@3.0.1/github-markdown.css">
|
||||||
<script type="text/javascript" src="//unpkg.zhimg.com/marked@0.6.2/marked.min.js"></script><!--MdRequireEnd-->
|
<script type="text/javascript" src="//unpkg.zhimg.com/marked@0.6.2/marked.min.js"></script><!--MdRequireEnd-->
|
||||||
<!--GuestUploadStart--><script type="text/javascript" src="//cdn.bootcss.com/spark-md5/3.0.0/spark-md5.min.js"></script><!--GuestUploadEnd-->
|
<!--GuestUploadStart--><script type="text/javascript" src="//cdn.bootcss.com/spark-md5/3.0.0/spark-md5.min.js"></script><!--GuestUploadEnd-->
|
||||||
<!--AliyundriveUploadJsStart--><script src="//cdn.bootcdn.net/ajax/libs/js-sha1/0.6.0/sha1.min.js"></script><!--AliyundriveUploadJsEnd-->
|
<!--LoginStart--><script src="https://cdn.bootcdn.net/ajax/libs/js-sha1/0.6.0/sha1.min.js"></script><!--LoginEnd-->
|
||||||
|
<!--AliyundriveUploadJsStart--><script src="https://cdn.bootcdn.net/ajax/libs/js-sha1/0.6.0/sha1.min.js"></script><!--AliyundriveUploadJsEnd-->
|
||||||
<!--IsFileStart--><!--IspdfFileStart--><script src="//cdn.bootcss.com/pdf.js/2.3.200/pdf.min.js"></script><!--IspdfFileEnd--><!--IsFileEnd-->
|
<!--IsFileStart--><!--IspdfFileStart--><script src="//cdn.bootcss.com/pdf.js/2.3.200/pdf.min.js"></script><!--IspdfFileEnd--><!--IsFileEnd-->
|
||||||
<!--ListEnd-->
|
<!--ListEnd-->
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
@ -1526,6 +1528,14 @@
|
||||||
document.getElementById('login_div').style.top=(window.innerHeight-document.getElementById('login_div').offsetHeight)/2+document.body.scrollTop +'px';
|
document.getElementById('login_div').style.top=(window.innerHeight-document.getElementById('login_div').offsetHeight)/2+document.body.scrollTop +'px';
|
||||||
document.getElementById('login_input').focus();
|
document.getElementById('login_input').focus();
|
||||||
}
|
}
|
||||||
|
function sha1loginpass(f) {
|
||||||
|
if (f.password1.value=="") return false;
|
||||||
|
timestamp = new Date().getTime() + "";
|
||||||
|
timestamp = timestamp.substr(0, timestamp.length-3);
|
||||||
|
f.timestamp.value = timestamp;
|
||||||
|
f.password1.value = sha1(timestamp + "" + f.password1.value);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
<!--LoginEnd-->
|
<!--LoginEnd-->
|
||||||
<!--EncryptedStart-->
|
<!--EncryptedStart-->
|
||||||
document.getElementById('password1').focus();
|
document.getElementById('password1').focus();
|
||||||
|
|
Loading…
Reference in New Issue