Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $postdata = "p_num_text=$number&smstemplate=&message=$msj&txtcount=$len char : $cSMS Sms&hiddcount=153";
- //------------- Login ------------------
- curl_setopt($ch, CURLOPT_URL, "http://dominio.com/subdominio/index.php");
- curl_setopt($ch, CURLOPT_REFERER, "http://dominio.com/subdominio/index.php");
- curl_setopt ($ch, CURLOPT_POST, 1);
- 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");
- curl_setopt ($ch, CURLOPT_POSTFIELDS, "app=page&inc=login&op=auth_login&username=$username&password=$pass");
- curl_setopt ($ch, CURLOPT_COOKIEJAR, $Cookies);
- curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
- $login = curl_exec ($ch);
- //----------------- Send SMS -------------------
- curl_setopt($ch, CURLOPT_URL, "http://dominio.com/subdominio/index.php?app=menu&inc=send_sms&op=sendsmstopv_yes");
- curl_setopt($ch, CURLOPT_REFERER, "http://dominio.com/subdominio/index.php?app=menu&inc=send_sms&op=sendsmstopv");
- curl_setopt ($ch, CURLOPT_POST, 1);
- 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");
- curl_setopt ($ch, CURLOPT_POSTFIELDS, $postdata);
- //curl_setopt($ch, CURLOPT_COOKIEFILE, $Cookies);
- curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
- $send = curl_exec ($ch);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement