Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /var/www/html/live/ drwxr-xr-x | |
| Viewing file: Select action/file-type: // document.onkeydown = function(e) {
// if (e.keyCode === 123 || // F12
// (e.ctrlKey && e.shiftKey && ['I', 'J', 'C', 'E'].includes(String.fromCharCode(e.keyCode))) ||
// (e.ctrlKey && e.keyCode === 'U'.charCodeAt(0)) || // Ctrl+U
// (e.ctrlKey && e.keyCode === 'S'.charCodeAt(0)) // Ctrl+S
// ) {
// e.preventDefault();
// return false;
// }
// };
// Disable right-click menu
// document.addEventListener('contextmenu', function(e) {
// e.preventDefault();
// });
function invalidKey() {
$("body").empty();
$("body").append('<p style="display: block;\
margin-block-start: 1em;\
margin-block-end: 1em;\
margin-inline-start: 0px;\
margin-inline-end: 0px;\
unicode-bidi: isolate;\">The requested URL was not found on this server.</p>\
<h1 style="display: block;\
font-size: 2em;\
margin-block-start: 0.67em;\
margin-block-end: 0.67em;\
margin-inline-start: 0px;\
margin-inline-end: 0px;\
font-weight: bold;\
unicode-bidi: isolate">Not Found</h1>');
}
// function checkPassword(pass) {
// console.log(pass);
// const password = document.getElementById('password').value;
// const error = document.getElementById('password-error');
// if (password === pass) {
// passwordModal.style.display = 'none';
// return 1;
// } else {
// error.textContent = 'Incorrect password. Please try again.';
// return 0;
// }
// }
var pass;
var live_data;
var item_data;
$(document).ready(function(){
var auth={
"authorization": "Basic " + btoa("Mongo_API"+":"+"jiFFMongo@2023!@!@!@")
};
const urlParams = new URLSearchParams(window.location.search);
const key = urlParams.get('key');
if (!key || key.length< 8) {
invalidKey();
}else{
$.ajax({
url: "https://api.businesscloud.xyz/live_data/"+key,
headers:auth,
success: function( result ) {
live_data=result.live;
pass=live_data.code;
item_data=result.items;
appendData();
// var pass=checkPassword(live_data.code);
// console.log(pass);
},
error : function (err, status) {
console.log("error");
invalidKey();
}
});
}
});
function appendData() {
$(".video-wrapper").append('<iframe src="'+live_data.live_url+'" frameborder="0" allowfullscreen></iframe>');
for (let i = 0; i < item_data.length; i++) {
var element = item_data[i];
var file_name=element.selectedVariant.images[0];
// console.log(file_name);
var image_url='https://jiffp.sgp1.digitaloceanspaces.com/'+element.folder+"/"+file_name;
$(".container").append(
'<div class="item">\
<img src="'+image_url+'" alt="'+element.title+'" class="item-image">\
<div class="item-content">\
<div class="item-title">'+element.title+'</div>\
<div class="item-details">#'+element.product_code.split("_")[1]+' </div>\
</div>\
<button class="apply-button" onclick="startCountdown(this)">Apply</button>\
</div>'
)
}
console.log(item_data);
}
document.addEventListener("DOMContentLoaded", function () {
const passwordModal = document.getElementById('password-modal');
if (passwordModal) {
passwordModal.style.display = 'flex';
} else {
console.error("Password modal not found.");
}
window.checkPassword = function () {
const password = document.getElementById('password').value;
const error = document.getElementById('password-error');
if (password == pass) {
passwordModal.style.display = 'none';
appendData();
} else {
error.textContent = 'Incorrect password. Please try again.';
}
};
});
function toggleAccordion() {
const content = document.getElementById("accordion-content");
const toggleText = document.getElementById("accordion-toggle");
if (content.style.display === "none" || !content.style.display) {
content.style.display = "block";
toggleText.textContent = "⬆ Hide Video";
} else {
content.style.display = "none";
toggleText.textContent = "⬇ Show Video";
}
}
function startCountdown(button) {
let countdown = 10;
const originalText = button.innerHTML;
button.disabled = true;
const interval = setInterval(() => {
if (countdown > 0) {
button.innerHTML = `<span class='countdown'>${countdown--} seconds...</span>`;
} else {
clearInterval(interval);
button.innerHTML = '<span class="success">Applied</span>';
button.style.backgroundColor = "#28a745";
button.style.color = "#fff";
}
}, 1000);
} |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0071 ]-- |