| Server IP : 138.197.176.125 / Your IP : 216.73.217.122 Web Server : Apache/2.4.41 (Ubuntu) System : Linux SuiteCRM-8 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.3.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/soltelcocrm/ |
Upload File : |
<?php
$mobile = "0634220462";
$message = "Test ";
$username = "USERNAME_2RRmhMxh";
$passowrd = "PASSWORD_dP3wup23";
$from = "161";
$curentDate = date("d/m/Y");
$key = "n7uAuA5l0uvREndNeFWBPF6SkYeEd6xq";
$message = str_ireplace(" ", "%20", $message);
$msg = ($username . "|" . $passowrd . "|" . $mobile . "|" . $message . "|" . $from . "|" . $curentDate . "|" . $key);
$hashkey = strtoupper(md5($username . "|" . $passowrd . "|" . $mobile . "|" . $message . "|" . $from . "|" . $curentDate . "|" . $key));
$fields = ['from' => $from, 'to' => $mobile, 'msg' => $message, 'key' => $hashkey ];
$postdata = http_build_query($fields);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://sms.mytelesom.com/index.php/Gway/sendsms');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $postdata);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$output = curl_exec($ch);
var_dump($hashkey);
print_r($output);
/*$username="USERNAME_2RRmhMxh";
$passowrd="PASSWORD_dP3wup23";
$to="0634422056";
$message="hellow telesom";
$message = str_ireplace(" ", "%20", $message);
$from="161";
$curentDate=date("d/m/Y");;
$key="n7uAuA5l0uvREndNeFWBPF6SkYeEd6xq";
$hashkey = strtoupper(md5($username . "|" . $passowrd . "|" . $to .
"|" . $message . "|" . $from . "|" . $curentDate . "|" . $key));
//echo "<pre>";print_r($hashkey);exit;
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://sms.mytelesom.com/index.php/Gway/sendsms',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => array('username' => 'USERNAME_2RRmhMxh','password' => 'PASSWORD_dP3wup23','to' => '0634422056','msg' => $message,'from' => '161','date' => $curentDate,'key' => $hashkey),
CURLOPT_HTTPHEADER => array(
'Content-Type: application/json'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;*/
?>