Script
By: a guest | Mar 20th, 2010 | Syntax:
PHP | Size: 1.08 KB | Hits: 53 | Expires: Never
function send_pm($username,$password,$recepient,$title,$message) {
$post = 'username='.$username.'&password='.$password.'&login_form=true&submitbtn=submit&save_permauth=false';
$ch = curl_init('http://www.neoseeker.com/members/login.html');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookie.txt');
curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookie.txt');
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
curl_exec($ch);
$post = "manual_username=".$recepient."&message=".$message."&title=".$title."&fn=send_pm&mailbox=received&submit=submit";
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
curl_setopt($ch, CURLOPT_URL, "http://neoseeker.com/forums/index.php");
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
curl_close($ch);
unlink('cookie.txt');
return true;
}