Don't like ads? PRO users don't see any ads ;-)
Guest

Source Cod

By: a guest on Aug 20th, 2012  |  syntax: None  |  size: 1.32 KB  |  hits: 21  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2. // Authorisation details
  3. $uname = "facebookcool123@gmx.de";
  4. $pword = "floriancool";
  5. //$hash = "yourhash"; //Use instead of password above. This can be retrieved the from Messenger->All Documentation Page
  6.  
  7. // Configuration variables
  8. $info = "1";
  9. $test = "0";
  10.  
  11. // Data for text message
  12. $from = $_POST['from'];
  13. $selectednums = $_POST['numberext'].$_POST['number'];
  14. $message = $_POST['massage'];
  15. $message = urlencode($message);
  16.  
  17. // Prepare data for POST request
  18. $data = "uname=".$uname."&pword=".$pword."&message=".$message."&from=". $from."&selectednums=".$selectednums."&info=".$info."&test=".$test;
  19.  
  20. // Send the POST request with cURL
  21. $ch = curl_init('http://www.txtlocal.com/sendsmspost.php');
  22. curl_setopt($ch, CURLOPT_POST, true);
  23. curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
  24. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  25. $result = curl_exec($ch); //This is the result from Textlocal
  26. curl_close($ch);
  27. ?>
  28.  
  29.  
  30. <form action="index.php" method="POST">
  31. Nummer:<br/>
  32. <input type="text" size="2" name="numberext"> (0) <input type="text" name="number">
  33.  
  34. <br/><br/>
  35.  
  36. Von:<br/>
  37. <input type="text" name="from">
  38.  
  39. <br/><br/>
  40.  
  41. Nachricht:<br/>
  42. <textarea name="massage"></textarea>
  43.  
  44. <br/><br/>
  45.  
  46. <input type="hidden" name="submitted" value="true">
  47. <input type="submit" name="submit" value="Senden">
  48.  
  49. </form>