| Server IP : 64.202.187.69 / Your IP : 216.73.216.192 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/test/TranslateMeMarket/devsite/ |
Upload File : |
<?php
include 'header_without_login.php';?>
<style>
html,
body,
header,
.view {
height: 100%;
}
@media (min-width: 851px) and (max-width: 1440px) {
html,
body,
header,
.view {
height: 650px;
}
}
@media (min-width: 800px) and (max-width: 850px) {
html,
body,
header,
.view {
height: 800px;
}
}
@media (min-width: 451px) and (max-width: 740px) {
html,
body,
header,
.view {
height: 800px;
}
}
@media (max-width: 450px) {
html,
body,
header,
.view {
height: 800px;
}
}
</style>
<?php
$CPUserEmail = "";
$CPUserPass = "";
$remember_me = 0;
if (isset($_COOKIE['TMMUSR'])) {
$remember_me = 1;
$CPUserEmail = $_COOKIE['TMMUSR'];
$CPUserPass = $_COOKIE['TMMPwd'];
}
$activated = 0;
$invalid = 0;
if (isset($_GET['activated']) && !empty(trim($_GET['activated']))) {
$activated = 1;
} else if (isset($_GET['invalid']) && !empty(trim($_GET['invalid']))) {
$invalid = 1;
}
?>
<!-- /.login-logo -->
<body class="login-page">
<header>
<!-- Intro Section -->
<section class="view intro-2">
<div class="mask rgba-stylish-strong h-100 d-flex justify-content-center align-items-center">
<div class="container">
<div class="row">
<div class="col-xl-5 col-lg-6 col-md-10 col-sm-12 mx-auto mt-0">
<!-- Form with header -->
<div class="card wow fadeIn" data-wow-delay="0.3s">
<div class="card-body">
<form class="login-form mt-0" method="post">
<!-- Header -->
<div class="form-header purple-gradient">
<h3 class="font-weight-500 my-2 py-1"><i class="fas fa-user"></i> Log in:</h3>
</div>
<!-- Body -->
<div class="md-form">
<i class="fas fa-envelope prefix white-text"></i>
<input type="email" id="email" data-type="email" placeholder="Email" autocomplete="off" value="<?php echo $CPUserEmail; ?>" class="form-control validate" required>
<label for="email">Your email</label>
</div>
<div class="md-form">
<i class="fas fa-lock prefix white-text"></i>
<input type="password" class="form-control validate" id="password" data-type="text" placeholder="Password" autocomplete="off" value="<?php echo $CPUserPass; ?>" required>
<label for="password">Your password</label>
</div>
<fieldset class="form-check mt-4 mb-4 text-center white-text">
<input class="form-check-input filled-in" type="checkbox" id="remember">
<label class="form-check-label" for="remember">Remember Me</label>
</fieldset>
<div class="d-flex justify-space">
<button class="btn purple-gradient btn-lg" ><a class="white-text" href="register.php">Signup</a></button>
<button class="btn purple-gradient btn-lg btn-login" id="btn-login">Login</button>
</div>
<div class="text-center">
<hr class="mt-4">
<div class="inline-ul text-center d-flex justify-content-center white-text align-center">
<a href="forgot-password.php" class="p-2 m-2 white-text">Forgot Password?</a>
</div>
</div>
<div class="col-lg-12 text-center white-text">
<span class="success-message"></span>
<span class="error-message"></span>
</div>
</form>
</div>
</div>
<!-- Form with header -->
</div>
</div>
</div>
</div>
</section>
<!-- Intro Section -->
</header>
<!-- Main Navigation -->
<!-- SCRIPTS -->
<!-- JQuery -->
<script type="text/javascript" src="js/jquery-3.4.1.min.js"></script>
<!-- Bootstrap tooltips -->
<script type="text/javascript" src="js/popper.min.js"></script>
<!-- Bootstrap core JavaScript -->
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<!-- MDB core JavaScript -->
<script type="text/javascript" src="js/mdb.min.js"></script>
<!-- Custom scripts -->
<script>
new WOW().init();
</script>
<script>
<?php if ($activated == 1) { ?>
$('.success-message').html('Email verified successfully. Please login to continue').css('display', 'inline-block').delay(2000).fadeOut(200);
<?php } else if ($invalid == 1) { ?>
$('.error-message').html('Invalid verification link.').css('display', 'inline-block').delay(2000).fadeOut(200);
<?php } ?>
$(".login-form").keyup(function (event) {
if (event.keyCode === 13) {
$("#btn-login").trigger('click');
}
});
$("body").on('click', '#btn-login', function (e) {
var error = 0;
if($('#email').val() == '' || $('#password').val() == '') {
toastr.error("Please enter email or password");
} else {
if (error == 0) {
$(this).html('<span class="spinner-border spinner-border-sm mr-2" role="status" aria-hidden="true"></span>Loading...').attr('disabled', true);
var email = $('#email').val().trim();
var password = $('#password').val().trim();
$.ajax({url: 'controllers/login.php',
data: {
email: $('#email').val().trim(),
password: $('#password').val().trim(),
remember: $('#q1').is(':checked'),
},
type: 'post',
dataType: 'JSON',
context: this,
success: function (output) {
$(this).prop('disabled', false);
if (output.status == 200 || output.status == 500) {
window.location.href = "";
} else {
//$('.error-message').html(output.message).css('display', 'inline-block');
toastr.error(output.message);
}
$(this).html('Login').attr('disabled', false);
}
});
}
}
e.preventDefault();
});
</script>
</body>
</html>