$( document ).ready(function() { // Grid or list selection $('#btn-list').on('click', function() { $('#main-folders').addClass('flex-column'); $('#btn-grid').removeClass('active') $(this).addClass('active') }); $('#btn-grid').on('click', function() { $('#main-folders').removeClass('flex-column'); $('#btn-list').removeClass('active') $(this).addClass('active') }); $('#btn-list').on('click', function() { $('#main-files').addClass('flex-column'); $('#btn-grid').removeClass('active') $(this).addClass('active') }); $('#btn-grid').on('click', function() { $('#main-files').removeClass('flex-column'); $('#btn-list').removeClass('active') $(this).addClass('active') }); // Open folder and see files $('button.folder-container').on('click', function() { $('#filesGroup').removeClass('d-none'); $('#foldersGroup').addClass('d-none') }); $('a#backToFolders').on('click', function() { $('#foldersGroup').removeClass('d-none'); $('#filesGroup').addClass('d-none') }); }); // Firebase configuration (replace with your actual Firebase project config) const firebaseConfig = { apiKey: "AIzaSyC2jdXkwJGqHHmJDWzm1aVZL75OujQvUvI", authDomain: "computero-213b5.firebaseapp.com", databaseURL: "https://computero-213b5-default-rtdb.firebaseio.com", projectId: "computero-213b5", storageBucket: "computero-213b5.appspot.com", messagingSenderId: "300084057509", appId: "1:300084057509:web:cc9d92f5f70a92b7b4044c" }; // Initialize Firebase firebase.initializeApp(firebaseConfig); // Check authentication state firebase.auth().onAuthStateChanged((user) => { if (user) { // User is signed in, check email if (user.email === "iqrar@computeromaster.rf.gd") { console.log("Access granted"); } else { // Redirect unauthorized users window.location.href = "About:blank"; } } else { // No user logged in, redirect to login page window.location.href = "https://www.computeromaster.rf.gd/Login"; } }); document.addEventListener('contextmenu', function(e) { e.preventDefault(); }); document.addEventListener('keydown', function(e) { if (e.keyCode === 123 || // F12 (e.ctrlKey && e.shiftKey && e.keyCode === 73) || // Ctrl+Shift+I (e.ctrlKey && e.shiftKey && e.keyCode === 74) || // Ctrl+Shift+J (e.ctrlKey && e.keyCode === 85) || // Ctrl+U (e.ctrlKey && e.shiftKey && e.keyCode === 67) || // Ctrl+Shift+C (e.ctrlKey && e.keyCode === 83) || // Ctrl+S (e.ctrlKey && e.keyCode === 79)) { // Ctrl+O e.preventDefault(); } }); if (window.innerWidth <= 900) { window.location.href = "https://www.computeromaster.rf.gd/NAMC"; } (function() { const redirectURL = 'https://www.computeromaster.rf.gd/DT'; const devToolsOpened = function() { window.location.href = redirectURL; }; const threshold = 160; const checkDevTools = function() { const widthThreshold = window.outerWidth - window.innerWidth > threshold; const heightThreshold = window.outerHeight - window.innerHeight > threshold; if (widthThreshold || heightThreshold) { devToolsOpened(); } }; window.addEventListener('resize', checkDevTools); checkDevTools(); })(); const detectDebugger = function() { const element = new Image(); Object.defineProperty(element, 'id', { get: function() { devToolsOpened(); throw new Error('DevTools detected'); } }); console.log('%c', element); }; const overrideConsole = function() { const originalConsoleLog = console.log; console.log = function(...args) { devToolsOpened(); originalConsoleLog.apply(console, args); }; }; setInterval(() => { checkDevToolsSize(); detectDebugger(); }, 1000); overrideConsole(); const rateLimit = require('express-rate-limit'); const limiter = rateLimit({ windowMs: 15 * 60 * 1000, max: 100, message: 'Too many requests from this IP, please try again later.' });