Done !
| Server IP : 46.105.57.169 / Your IP : 216.73.216.67 Web Server : Apache System : Linux webm002.cluster120.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : verseaumee ( 152031) PHP Version : 8.5.7 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/verseaumee/blueversion/wp-content/plugins/chauffeur-booking-system/class/ |
Upload File : |
<?php
/******************************************************************************/
/******************************************************************************/
class CHBSNexmo
{
/**************************************************************************/
function __construct()
{
}
/**************************************************************************/
function sendSMS($apiKey,$apiKeySecret,$senderName,$recipientPhoneNumber,$message)
{
$data=array();
$data['api_key']=$apiKey;
$data['api_secret']=$apiKeySecret;
$data['from']=$senderName;
$data['to']=$recipientPhoneNumber;
$data['text']=$message;
$ch=curl_init();
curl_setopt($ch,CURLOPT_URL,'https://rest.nexmo.com/sms/json');
curl_setopt($ch,CURLOPT_POST,1);
curl_setopt($ch,CURLOPT_POSTFIELDS,http_build_query($data));
curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);
curl_setopt($ch,CURLOPT_SSL_VERIFYHOST,0);
curl_setopt($ch,CURLOPT_SSL_VERIFYPEER,0);
$response=curl_exec($ch);
$LogManager=new CHBSLogManager();
$LogManager->add('nexmo',1,print_r(json_decode($response),true));
curl_close($ch);
}
/**************************************************************************/
}
/******************************************************************************/
/******************************************************************************/