Advertisement
Guest User

PHP

a guest
Jul 28th, 2012
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.50 KB | None | 0 0
  1. $postdata = "p_num_text=$number&smstemplate=&message=$msj&txtcount=$len char : $cSMS Sms&hiddcount=153";
  2. //------------- Login ------------------
  3.             curl_setopt($ch, CURLOPT_URL, "http://dominio.com/subdominio/index.php");
  4.             curl_setopt($ch, CURLOPT_REFERER, "http://dominio.com/subdominio/index.php");
  5.             curl_setopt ($ch, CURLOPT_POST, 1);
  6.             curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13");
  7.             curl_setopt ($ch, CURLOPT_POSTFIELDS, "app=page&inc=login&op=auth_login&username=$username&password=$pass");
  8.             curl_setopt ($ch, CURLOPT_COOKIEJAR, $Cookies);
  9.             curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
  10.             $login = curl_exec ($ch);
  11.             //----------------- Send SMS -------------------
  12.             curl_setopt($ch, CURLOPT_URL, "http://dominio.com/subdominio/index.php?app=menu&inc=send_sms&op=sendsmstopv_yes");
  13.             curl_setopt($ch, CURLOPT_REFERER, "http://dominio.com/subdominio/index.php?app=menu&inc=send_sms&op=sendsmstopv");
  14.             curl_setopt ($ch, CURLOPT_POST, 1);
  15.             curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13");
  16.             curl_setopt ($ch, CURLOPT_POSTFIELDS, $postdata);
  17.             //curl_setopt($ch, CURLOPT_COOKIEFILE, $Cookies);
  18.             curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
  19.             $send = curl_exec ($ch);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement