vb Login
class VbulFList
{
///
/// $site : Site urlesi
/// $coo : Login bilgilerini kayıt edeceği cookies dosyası
/// $username: Vb Kullanıcı adı
/// $password: Şifre
///
function vblogin($site, $coo, $username, $password)
{
//echo $site, $coo, $username, $password;
$passwordMD5=md5($password);
$ch = curl_init();
curl_setopt($ch, CURLOPT_COOKIEJAR, $coo);
curl_setopt($ch, CURLOPT_URL, $site . "/login.php?do=login");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "vb_login_username=" . $username . "&vb_login_password=" . $password . "&s=&do=login&vb_login_md5password=" . $passwordMD5 . "&vb_login_md5password_utf=" . $passwordMD5);
ob_start(); // prevent any output
$buf="0";
$buf=curl_exec ($ch); // execute the curl command
$ee=$buf;
ob_end_clean(); // stop preventing output
curl_close ($ch);
unset($ch);
return $ee;
}