@

Connections

Avatar

⚠️ 🔄

Your Saved Reports

Choose files (max 5)
🔒 📸
// Admin Panel - Only visible to app owner Dashboard // ============================================ // VIOLATION CHECK BEFORE SHARING // ============================================ function isReportViolating(report) { const prohibitedWords = ["đánh bom", "bomb", "khủng bố", "tài khoản ngân hàng", "bank account", "porn", "sex", "khiêu dâm"]; const textToCheck = (report.title + " " + report.description).toLowerCase(); for (const word of prohibitedWords) { if (textToCheck.includes(word.toLowerCase())) { return true; } } return false; } function showViolationAlert() { const lang = localStorage.getItem("userLanguage") || "en"; const messages = { en: "❌ Cannot share: This content violates our terms of service.", vi: "❌ Không thể chia sẻ: Nội dung này vi phạm điều khoản dịch vụ.", zh: "❌ 无法分享:此内容违反服务条款。", es: "❌ No se puede compartir: Este contenido viola nuestros términos de servicio.", hi: "❌ साझा नहीं कर सकते: यह सामग्री हमारी सेवा की शर्तों का उल्लंघन करती है।", ar: "❌ لا يمكن المشاركة: هذا المحتوى ينتهك شروط الخدمة الخاصة بنا." }; alert(messages[lang] || messages.en); } // ============================================ // AUTO CLEANUP ON PAGE LOAD // ============================================ (function autoCleanupLocalStorage() { console.log("🧹 Running localStorage auto-cleanup..."); const maxAge = 30 * 24 * 60 * 60 * 1000; // 30 days const now = Date.now(); let cleanedCount = 0; for (let i = 0; i < localStorage.length; i++) { const key = localStorage.key(i); if (key && (key.startsWith('img_') || key.startsWith('whatsapp_') || key.startsWith('imgpkg_'))) { try { const item = JSON.parse(localStorage.getItem(key)); if (item.timestamp && (now - item.timestamp) > maxAge) { localStorage.removeItem(key); cleanedCount++; } } catch (e) { // If can't parse, remove it (corrupted) localStorage.removeItem(key); cleanedCount++; } } } if (cleanedCount > 0) { console.log(`🧹 Cleaned up ${cleanedCount} old image backup(s)`); } else { console.log("✅ No old backups to clean"); } })();