a lot of debug
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user