PHP Code:
<?PHP
if (isset($_POST["email"])){
$returnLogin = postdata("http://www.lockerz.com/front_page?destination=front_page", "remember_me=1&name=YOUREMAIL&pass=YOURPASSWORD&op=&form_build_id=form-cba4ff08117bb2a12d8f555f547d87a1&form_id=user_login_block");
$invite = postdata("http://www.lockerz.com/process_invites", "emails=".$_POST["email"]."&message=Register For Lockerz!");
if ($invite == "success"){
echo $invite."<br />";
echo "*Please note: Some times Lockerz can take up to 10 minutes to deliver the email. Please allow some time for it to arrive.<br />";
} else {
echo "Error";
}
}
function postdata($url, $string="", $reffer="http://www.lockerz.com/connect_landing"){
$cookiefile = "ck/fl.txt";
$agent="Mozilla/14.0 (compatible; MSIE 5.01; Windows NT 5.0)";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_USERAGENT, $agent);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $string);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_REFERER, $reffer);
curl_setopt($ch, CURLOPT_COOKIEFILE, $cookiefile);
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookiefile);
$result = curl_exec ($ch);
curl_close ($ch);
return $result;
}
?>
<form method="post" action="<?php echo $PHP_SELF;?>">
Email: <input type="text" name="email">
<input type="submit" value="submit" name="submit"><br />
</form>