| Server IP : 64.202.187.69 / Your IP : 216.73.217.74 Web Server : Apache System : Linux 69.187.202.64.host.secureserver.net 3.10.0-1160.144.1.el7.tuxcare.els6.x86_64 #1 SMP Fri May 29 16:22:24 UTC 2026 x86_64 User : transmarket ( 1001) PHP Version : 7.2.34 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/transmarket/testadministrator/devsite/ |
Upload File : |
<?php
// Admin login page
if (session_id() == '') {
session_start();
}
if (isset($_SESSION['lendevo_admin_id'])) {
header("Location:index.php");
}
?>
<!DOCTYPE html>
<html>
<head>
<title>TranslateMe Admin</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" type="image/png" href="../images/favicon.png"/>
<link rel="stylesheet" type="text/css" href="css/vendor.css">
<link rel="stylesheet" type="text/css" href="css/flat-admin.css">
<link rel="stylesheet" type="text/css" href="css/custom.css">
<!-- Theme -->
<link rel="stylesheet" type="text/css" href="css/blue-sky.css">
<link rel="stylesheet" type="text/css" href="css/blue.css">
</style>
</head>
<body>
<div class="app app-default">
<div class="app-container app-login">
<div class="flex-center">
<div class="app-header"></div>
<div class="app-body">
<div class="app-block">
<div class="app-form">
<div class="form-header">
<img src="images/logo.png" class="login-logo" />
<div class="app-brand">TRANSLATEME ADMIN</div>
</div>
<form class="login-form" method="post">
<div class="input-group">
<span class="input-group-addon" id="basic-addon1">
<i class="fa fa-user" aria-hidden="true"></i>
</span>
<input type="text" class="form-control" required id="username" name="username" placeholder="Username" />
</div>
<div class="input-group">
<span class="input-group-addon" id="basic-addon2">
<i class="fa fa-key" aria-hidden="true"></i>
</span>
<input type="password" class="form-control" required id="password" name="password" placeholder="Password" />
</div>
<div class="text-center">
<input type="button" value="Login" class="btn btn-success btn-login" tabindex="7">
</div>
<div class="row">
<div class="row success-message"></div>
<div class="row worning-message"></div>
<div class="row error-message"></div>
</div>
</form>
<?php if (isset($_GET['err'])) { ?>
<p class="success-message">Invalid login credentials. Please try again!</p>
<?php } ?>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="js/jquery-3.2.1.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(".login-form").keyup(function (event) {
if (event.keyCode === 13) {
$(".btn-login").trigger('click');
}
});
$(".view-paasword").click(function () {
var obj = document.getElementById('password');
if (obj.type == "password")
obj.type = "text";
else
obj.type = "password";
});
$(".btn-login").click(function () {
var filter = /^([a-zA-Z0-9_\.\-]{2,30})+\@(([a-zA-Z0-9\-]{2,40})+\.)+([a-zA-Z0-9]{2,4})+$/;
var passw = /^(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{6,20}$/;
var isValidation = true;
var isPassValidation = true;
var username = $("#username").val().trim();
var password = $("#password").val().trim();
if (username.trim() == "") {
isValidation = false;
$('#error-message').html('Please enter a valid username').fadeIn().delay(1500).fadeOut();
}
if (password.trim() == '')
{
isValidation = false;
$('#error-message').html('Please enter a valid password').fadeIn().delay(1500).fadeOut();
}
if (isValidation)
{
$.ajax({url: 'controllers/login.php',
data: {
username: username,
password: password,
},
type: 'post',
dataType: 'JSON',
success: function (output) {
console.log(output);
if (output.status == "200") {
location.href = "index.php";
} else if (output.status == "400") {
$('.worning-message').html('Invalid credentials. Please try agin.').css('display', 'block').fadeIn().delay(1500).fadeOut();
} else if (output.status == "300") {
$('.error-message').html('User not register please check information.').css('display', 'block').fadeIn().delay(1500).fadeOut();
}
}
});
}
});
</script>
</body>
</html>