Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Your IP : 3.147.67.237
function session_start() {
$.ajax({
type: "POST",
url: "../php/session_start.php",
success: function (res) {
var status = JSON.parse(res);
if (status == 0) {
Swal.fire({
title: "Please Login",
confirmButtonText: `OK`,
confirmButtonColor: "#00FF00.",
}).then((res) => {
if (res.isConfirmed) {
window.location.href = "../register.html";
}
});
}
},
});
}
function logoutsession() {
$.ajax({
type: "POST",
url: "../php/session_logout.php",
success: function (res) {
var status = JSON.parse(res);
if (status == 1) {
Swal.fire({
title: "Are You sure?",
type: "warning",
confirmButtonText: `<a style="text-decoration: none;" href="../register.html">OK</a>`,
showCancelButton: true,
confirmButtonColor: "#5495ff",
});
}
},
});
}
function session_startadmin() {
$.ajax({
type: "POST",
url: "../php/session_admin.php",
success: function (res) {
var status = JSON.parse(res);
if (status == 0) {
Swal.fire({
title: "Please Login",
confirmButtonText: `OK`,
confirmButtonColor: "#00FF00.",
}).then((res) => {
if (res.isConfirmed) {
window.location.href = "register.html";
}
});
}
},
});
}
function logoutsessionAdmin() {
$.ajax({
type: "POST",
url: "../php/session_logout.php",
success: function (res) {
var status = JSON.parse(res);
if (status == 1) {
Swal.fire({
title: "Are You sure?",
type: "warning",
confirmButtonText: `<a style="text-decoration: none;" href="register.html">OK</a>`,
showCancelButton: true,
confirmButtonColor: "#5495ff",
});
}
},
});
}
|