| Server IP : 162.214.74.102 / Your IP : 216.73.217.80 Web Server : Apache System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64 User : lrsys ( 1015) PHP Version : 5.6.40 Disable Function : exec,passthru,shell_exec,system MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/lrsys/www/lrsys_apps/rodeio/application/autoload/ |
Upload File : |
<?php
Class Sms{
public static function send($driver,$sms=array(),$config,$log=false,$userid='0'){
Event::trigger('Sms_send');
switch($driver){
case 'nexmo':
$url = 'https://rest.nexmo.com/sms/json?' . http_build_query(
[
'api_key' => $config['nexmo_api_key'],
'api_secret' => $config['nexmo_api_secret'],
'to' => $sms['to'],
'from' => $sms['from'],
'text' => $sms['text']
]
);
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
if($log){
_log($response,'Admin',$userid);
}
break;
case 'twilio':
break;
default:
return false;
}
}
}