<?php
$send=base64_decode($_REQUEST['send']);
$sendexp=explode('-exp-',$send);
$sender= urlencode("24 SEVEN"); 
$mobile = urlencode($sendexp[0]);
$ordno = $sendexp[2];
$whom = $sendexp[1];

//echo $mobile. '///'. $ordno.'///'.$whom;
$msg='hello';
if($whom=='c')
{

	$msg=urlencode("24 Seven has received order #".$ordno.". \r\n Click below link to see the order status \nhttp://www.247store.lk/index.php?route=account/account");

}

if($whom=='d')
{

	$msg=urlencode("New ".$sendexp[3]." order #".$ordno." received. \n Click below link to see the order http://www.247store.lk/admin/index.php?route=sale/order/info&order_id=".$ordno);

}

$url='http://203.153.222.25:5000/sms/send_sms.php?username=seven&password=Seven321&src=24%20SEVEN&dst=94'.$mobile.'&msg='.$msg.'&dr=1';

file_get_contents($url);
