Preview:
Full CODE:
http://www.wexplain.com/tools/16-vbulletin-post-grabber.html
Code:
<?php
/*
vBulletin Post Grabber
version 1.0
Coded by Luke
http://www.wexplain.com
*/
class vBulletin
{
function login($url, $username, $password){
$data="do=login&url=%2Findex.php&vb_login_md5password=" . md5($password) . "vb_login_username=$username&cookieuser=1";
$ch = curl_init();
curl_setopt ($ch, CURLOPT_URL, $url."/login.php?do=login");
curl_setopt ($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)");
curl_setopt ($ch, CURLOPT_TIMEOUT, '10');
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch,CURLOPT_POSTFIELDS,$data);
curl_setopt($ch, CURLOPT_COOKIEJAR, "/tmp/" . $username . ".txt");
curl_setopt($ch, CURLOPT_COOKIEFILE, "/tmp/" . $username . ".txt");
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
$store = curl_exec ($ch);
curl_close($ch);
return $store;
}
?>
Full CODE:
http://www.wexplain.com/tools/16-vbulletin-post-grabber.html