Share Pastebin
Guest
Public paste!

Script

By: a guest | Mar 20th, 2010 | Syntax: PHP | Size: 1.08 KB | Hits: 53 | Expires: Never
Copy text to clipboard
  1. function send_pm($username,$password,$recepient,$title,$message) {
  2.     $post = 'username='.$username.'&password='.$password.'&login_form=true&submitbtn=submit&save_permauth=false';
  3.     $ch = curl_init('http://www.neoseeker.com/members/login.html');
  4.     curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  5.     curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookie.txt');
  6.     curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookie.txt');
  7.     curl_setopt($ch, CURLOPT_POST, 1);
  8.     curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
  9.     curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
  10.     curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
  11.     curl_exec($ch);
  12.    
  13.     $post = "manual_username=".$recepient."&message=".$message."&title=".$title."&fn=send_pm&mailbox=received&submit=submit";
  14.     curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
  15.     curl_setopt($ch, CURLOPT_URL, "http://neoseeker.com/forums/index.php");
  16.     echo curl_exec($ch); //the echo bit is not needed, I've tried with and without using my name and a bot account to send pms to
  17.     curl_close($ch);
  18.     unlink('cookie.txt');
  19.     return true;
  20. }