Advertisement
Guest User

Untitled

a guest
Jul 29th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. if($man[3]!=""){$prior="10";}else{$prior="0";}
  2. $curl = curl_init();
  3. curl_setopt_array($curl, array(
  4. CURLOPT_RETURNTRANSFER => 1,
  5. CURLOPT_URL => "http://localhost:9710/http/send-message?username=admin&password=admin&to=$man[0]&message-type=sms.automatic&message=".urlencode($somali)."&priority=$prior",
  6. CURLOPT_USERAGENT => 'Airtel Gateway'));
  7. $hamza = curl_exec($curl);
  8.  
  9. if ( stripos($hamza, "ok") !== false )
  10. {//$kcry++;
  11. $kcry = "2" ;
  12. }else{echo "SMS NOT sent LINE 271";exit;}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement