Revonzy Mini Shell
<?php
include('../../config.php');
require_once(PATH_ADMIN_INCLUDE.'/head.php');
?>
<script>
document.onkeydown = function(event) {
if (event.keyCode == 13) {
$("#loginsubmit").trigger("click");
}
}
$(document).ready(function(){
$("#msg").hide();
$(document).on("click","#loginsubmit",function()
{
$("#msg").hide();
$("#msg").text('');
var user_name =$("#user").val();
var password =$("#password").val();
if (user_name=="")
{
$("#msg").append("<strong>Warning!</strong> Enter User Name");
$("#msg").show();
return false;
}
if (password=="")
{
$("#msg").append("<strong>Warning!</strong> Enter Password");
$("#msg").show();
return false;
}
$.ajax({
url:'check_login.php',
type:'POST',
data:{user:user_name,password:password},
success:function(data){//alert(data);
if(data=="true")
{
document.location.href="<?php echo LINK_CONTROL?>/index.php";
}
else
{
$("#msg").append("<strong>Warning!</strong> Incorrect Username/Password!");
$("#msg").show();
}
}
});//eof ajax
}); //eof click event
}); //end ready function
</script>
<div class="">
<div id="wrapper">
<div id="login" class="animate form">
<section class="login_content">
<form action="" method="post" name="loginform" id="loginform">
<h1>Admin Login Panel</h1>
<div>
<input type="text" class="form-control" placeholder="Username" required="" id="user"/>
</div>
<div>
<input type="password" class="form-control" placeholder="Password" required="" id="password"/>
</div>
<div>
<a class="btn btn-default submit" href="#" id="loginsubmit" >Log in</a>
</div>
<div class="clearfix"></div>
<div id="msg"></div>
<div class="separator"></div>
</form>
<!-- form -->
</section>
<!-- content -->
</div>
</div>
</div>
</body>
</html>
EliteHackz.ORG
Revonzy Mini Shell
root@revonzy.com