1
0

a lot of debug

This commit is contained in:
2022-04-23 02:00:52 +02:00
parent f8fc3f63ec
commit d1f1065e44
21 changed files with 544 additions and 217 deletions

View File

@ -6,7 +6,7 @@ class notificationFreemobile
public $active = true;
public $level;
private $dest = array(
"32886706&pass=JTGUY6l5OG73zX", //daniel
"daniel" => "32886706&pass=JTGUY6l5OG73zX",
);
function __construct()
@ -14,7 +14,7 @@ class notificationFreemobile
$this->level = ALERT | ERROR;
}
function send($message, $destinataire=0)
function send($message, $destinataire=NOTIF_DEFAULT_DEST)
{
global $curlErr;
$result = false;
@ -22,7 +22,7 @@ class notificationFreemobile
{
$ch = curl_init();
// set url
curl_setopt($ch, CURLOPT_URL, $this->url . $this->dest["destinataire"] . "&msg=" . urlencode(trim($message)));
curl_setopt($ch, CURLOPT_URL, $this->url . $this->dest[$destinataire] . "&msg=" . urlencode(trim($message)));
echo $this->url . urlencode(trim($message)) . EOL;
//return the transfer as a string
//curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);