From ba1abe5ec170d62e175243ccafbec302a40d0656 Mon Sep 17 00:00:00 2001 From: iBNu Maksum Date: Wed, 24 Jun 2020 17:34:17 +0700 Subject: [PATCH 1/2] Update README.md --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 7fcaa14..6e81457 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,13 @@ to turn my android as sms sender Download APK from [release](https://github.com/ibnux/Android-SMS-Gateway/releases) page then open https://sms.ibnux.net/ to learn how to send sms + +## Traktir @ibnux + +[](https://karyakarsa.com/ibnux) +[](https://trakteer.id/ibnux) + + # LICENSE ## Apache License 2.0 From 2a253e342af58939ddc49dde7a6d82cabe4c7c6d Mon Sep 17 00:00:00 2001 From: iBNu Maksum Date: Wed, 25 Nov 2020 11:21:09 +0700 Subject: [PATCH 2/2] Add global $firebasekey; --- backend/index.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/backend/index.php b/backend/index.php index dcb8df5..f28be11 100644 --- a/backend/index.php +++ b/backend/index.php @@ -21,13 +21,14 @@ die(); } -$hasil = sendPush($token,$secret,$time,$to, $text); +$result = sendPush($token,$secret,$time,$to, $text); if(isset($_GET['debug']) && count($_REQUEST)>1) - file_put_contents("log.txt",$hasil."\n\n",FILE_APPEND); -echo $hasil; + file_put_contents("log.txt",$result."\n\n",FILE_APPEND); +echo $result; function sendPush($token,$secret,$time,$to, $message) { + global $firebasekey; $url = 'https://fcm.googleapis.com/fcm/send'; $fields = array ( @@ -58,4 +59,4 @@ function sendPush($token,$secret,$time,$to, $message) { curl_close ( $ch ); return $result; -} \ No newline at end of file +}