Server IP : 82.112.239.40 / Your IP : 3.145.164.105 Web Server : LiteSpeed System : Linux in-mum-web1676.main-hosting.eu 5.14.0-503.35.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 4 05:23:43 EDT 2025 x86_64 User : u641149403 ( 641149403) PHP Version : 7.4.33 Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail MySQL : OFF | cURL : ON | WGET : ON | Perl : OFF | Python : OFF Directory (0755) : /home/u641149403/domains/cabz4you.com/public_html/admin/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php // include('lib/config.php'); $link="http://cabz4you.com/"; function notification($title,$content,$image,$link) { $content = array( "en" => $content, ); $heading = array( "en" => $title, ); $hashes_array = array(); array_push($hashes_array, array( "id" => "like-button", "text" => "Like", "icon" => "https://cabz4you.com/images/logo.png", "url" => "http://batohee.com/" )); array_push($hashes_array, array( "id" => "like-button-2", "text" => "Like2", "icon" => "https://cabz4you.com/images/logo.png", "url" => $link )); $fields = array( 'app_id' => $GLOBALS['appid'], 'included_segments' => array( 'All' ), 'data' => array( "foo" => "bar" ), 'contents' => $content, 'headings' => $heading, 'android_sound'=>'alarm', 'android_channel_id' =>$GLOBALS['channelid'], 'large_icon'=>'https://cabz4you.com/images/logo.png', 'big_picture' => $image, 'isAndroid'=>true, 'priority'=>10, 'isChromeWeb'=>false, 'web_buttons' => $hashes_array ); $fields = json_encode($fields); $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 '.$GLOBALS['ApiKey'] )); curl_setopt($ch, CURLOPT_RETURNTRANSFER, FALSE); 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); return $response; } ?>