0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 18.220.194.29


Current Path : /proc/thread-self/root/var/www/oasis/aiet/adm/
Upload File :
Current File : //proc/thread-self/root/var/www/oasis/aiet/adm/sendsmsapi.php

<?php

function sendsmaapi($username,$password,$from,$to,$text,$category)
{
	//$url = "http://www.myvaluefirst.com/smpp/sendsms?";
	$url = "https://http2.myvfirst.com/smpp/sendsms?";
	$url .="username={$username}&password={$password}";
	$url .="&to={$to}";
	$url .="&udh=0";
	$url .="&from={$from}";
	$text = urlencode($text);
	$url .="&text={$text}";
	$url .="&dlr-mask=1&dlr-url";
	if($category !='')
		$url .="&category={$category}";
	//echo $url;
	//return file_get_contents($url);

	$session = curl_init($url);
	curl_setopt($session, CURLOPT_HEADER, false);
	//curl_setopt($session, CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1_2);
	curl_setopt($session, CURLOPT_RETURNTRANSFER, true);
	// obtain response
	$response = curl_exec($session);
	curl_close($session);

	// print everything out
	return $response;
}
?>