update - notifymyandroid.com - title from configuration
This commit is contained in:
parent
70ea8f1609
commit
f6bfc10b90
@ -22,13 +22,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function notify($message, $severity = 'info', $event = null){
|
public function notify($message, $severity = 'info', $event = null){
|
||||||
|
global $setting;
|
||||||
curl_setopt_array($ch = curl_init(), array(
|
curl_setopt_array($ch = curl_init(), array(
|
||||||
CURLOPT_URL => "https://www.notifymyandroid.com/publicapi/notify",
|
CURLOPT_URL => "https://www.notifymyandroid.com/publicapi/notify",
|
||||||
CURLOPT_POST => true,
|
CURLOPT_POST => true,
|
||||||
CURLOPT_RETURNTRANSFER => true,
|
CURLOPT_RETURNTRANSFER => true,
|
||||||
CURLOPT_POSTFIELDS => http_build_query($data = array(
|
CURLOPT_POSTFIELDS => http_build_query($data = array(
|
||||||
"apikey" => $this->apiKey,
|
"apikey" => $this->apiKey,
|
||||||
"application" => "CryptoGlance",
|
"application" => $setting->getValue('website_title')?:"PHP-MPOS",
|
||||||
"description" => $message,
|
"description" => $message,
|
||||||
"content-type" => "text/html",
|
"content-type" => "text/html",
|
||||||
"event" => $event,
|
"event" => $event,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user