From 6c5938990ee26f74a1dd226f815be9820467a5f9 Mon Sep 17 00:00:00 2001 From: Nikolas Weger Date: Wed, 30 May 2018 12:14:42 +0200 Subject: [PATCH] Updated notify script --- bin/notify | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/bin/notify b/bin/notify index d0b32de..88ee67c 100755 --- a/bin/notify +++ b/bin/notify @@ -1,13 +1,14 @@ #!/usr/bin/php 'ayndqf6fdyjo9pua8reusvvb733k1u', 'user' => 'uesmxehx2bcuyv5prfrw39ema2312f', 'message' => $description, 'title' => $title, 'priority' => 1); - curl_setopt($curl, CURLOPT_POST, true); curl_setopt($curl, CURLOPT_POSTFIELDS, $settings); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); @@ -17,6 +18,4 @@ curl_close($curl); $json = json_decode($return, true); - - if(isset($json['info'])) echo("Result: ${json['info']}");