uawdijnntqw1x1x1
IP : 216.73.217.47
Hostname : srv913213
Kernel : Linux srv913213 5.15.0-179-generic #189-Ubuntu SMP Tue May 5 18:20:56 UTC 2026 x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
OS : Linux
PATH:
/
var
/
www
/
krbed.in
/
..
/
html
/
.
/
..
/
school_portal_api
/
app
/
Libraries
/
Firebase.php
/
/
<?php class Firebase { public $firebase_api_key; public $title; public $message; public $image; // push message payload public $data; // flag indicating whether to show the push notification or not // this flag will be useful when perform some opertation in background when push is recevied public $is_background; public function api_key($key){ $this->firebase_api_key = $key; } // sending push message to single user by firebase reg id public function send($to) { if( is_string($to) ){ $to = array($to); } $fields = array( 'registration_ids' => $to, 'notification' => array( 'body'=>$this->body, 'sound'=>'default' ), 'data' => $this->data, ); if($this->title != ""){ $fields['notification']['title'] = $this->title; } return $this->sendPushNotification($fields); } // Sending message to a topic by topic name public function sendToTopic($to, $message) { $fields = array( 'to' => '/topics/' . $to, 'data' => $message, ); return $this->sendPushNotification($fields); } // sending push message to multiple users by firebase registration ids public function sendMultiple($registration_ids, $message) { $fields = array( 'to' => $registration_ids, 'data' => $message, ); return $this->sendPushNotification($fields); } // function makes curl request to firebase servers private function sendPushNotification($fields) { // Set POST variables $url = 'https://fcm.googleapis.com/fcm/send'; $headers = array( 'Authorization: key=' . $this->firebase_api_key, 'Content-Type: application/json' ); // Open connection $ch = curl_init(); // Set the url, number of POST vars, POST data curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_SSLVERSION, 'CURL_SSLVERSION_SSLv3' ); // Disabling SSL Certificate support temporarly curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($fields)); // Execute post $result = curl_exec($ch); if ($result === FALSE) { die('Curl failed: ' . curl_error($ch)); } // Close connection curl_close($ch); return $result; } }
/var/www/krbed.in/../html/./../school_portal_api/app/Libraries/Firebase.php