File manager - Edit - /home/autoph/public_html/data03252025consolidation/app/sms/sms_test.php
Back
<?php include_once("../../cfg/db.php"); include_once("../sms/sms_start.php"); $contact_number = "09389592854"; $message = "Hi Ramon / Chonalyn, Without question, our business would not have reached this height without your support. We wish you the best of every blessing there is as you celebrate your birthday. Enjoy your day! From Hyundai Pasong Tamo, a proud member of AUTOHUB GROUP OF COMPANIES Don't want to receive birthday greetings? Click here to unsubscribe: http://s.autohub.ph"; $site_link = str_replace("https", "http", $variable['site_link']); $url = $site_link . 'app/sms/sms.php'; $data = array('number' => $contact_number, 'message' => $message); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data)); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $server_output = curl_exec($ch); curl_close($ch); echo $server_output; exit; if (!isset($_GET['number']) && !isset($_GET['message'])) { exit(); } <<<<<<< Updated upstream $send_sms = new SMS(); $MyAPIcode = 'PR-AUTOH172111_IE74I'; $MyPasswd ='me}vfe3j#c'; $number = trim($_GET['number']); $message = trim($_GET['message']); $status = $send_sms->sendSMS($number, $message, $variable); // SEND TEXT ITXTMO echo $status; exit; // echo itexmo($number,$message,$MyAPIcode,$MyPasswd); ======= $MyAPIcode = 'PR-AUTOH172111_IE74I'; $MyPasswd = 'me}vfe3j#c'; $number = trim($_GET['number']); $message = trim($_GET['message']); >>>>>>> Stashed changes echo itexmo($number, $message, $MyAPIcode, $MyPasswd); <<<<<<< Updated upstream // function itexmo($number,$message,$MyAPIcode,$MyPasswd){ // $url = 'https://www.itexmo.com/php_api/api.php'; // $itexmo = array('1' => $number, '2' => $message, '3' => $MyAPIcode, 'passwd' => $MyPasswd ); // $ch = curl_init(); // curl_setopt($ch, CURLOPT_URL,$url); // curl_setopt($ch, CURLOPT_POST, 1); // curl_setopt($ch, CURLOPT_POSTFIELDS,http_build_query($itexmo)); // curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // $server_output = curl_exec($ch); // curl_close ($ch); // echo $server_output; // } ======= function itexmo($number, $message, $MyAPIcode, $MyPasswd) { $url = 'https://www.itexmo.com/php_api/api.php'; $itexmo = array('1' => $number, '2' => $message, '3' => $MyAPIcode, 'passwd' => $MyPasswd); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($itexmo)); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $server_output = curl_exec($ch); curl_close($ch); >>>>>>> Stashed changes echo $server_output; }
| ver. 1.4 |
.
| PHP 7.3.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings