|
|
Mời bạn đăng ký để giao lưu kết bạn nhé <3
Bạn phải đăng nhập để xem được nội dung, nếu bạn chưa có tài khoản? hãy Đăng ký
x
Lần này là code để tạo account tại Box.net. Bản này thì OK hết , tạo nhanh và ko có lỗi.
Chú ý : Code này chỉ hoạt động với host hỗ trợ CURL extension ( có thể kiểm tra bằng phpinfo(), tìm CURL ).
Have Fun !
- <?php
- # Box.net Account Creator v2
- # RedPhoenix89
- ob_start();
- error_reporting(FALSE);
- @$_POST = $HTTP_POST_VARS;
- if (!$_POST) {
- ?>
- <h1>Box.net Account Creator v.2</h1>
- <b><a href="ymsgr:sendIM?redphoenix89">RedPhoenix89</a> - Form: <a href="http://rimoka.halinh.vn">Http://RiMoKa.HaLinh.Vn</a></b>
- <form method=post>Email <input name=email size=40><br>Password <input name=password size=40 type=password><br><input type=submit value="Create"><br></form>
- <?php
- exit();
- }
- $email = trim($_POST['email']);
- $pwd = $_POST['password'];
- $pwd = md5($email.$pwd);
- $time = time();
- $str = "<xml><action>register</action><data><email>".$email."</email><password method="md5">".$pwd."</password></data></xml>";
- $c = curl_init();
- curl_setopt($c, CURLOPT_URL, 'http://www.box.net/ping/register/?nocache='.$time);
- curl_setopt($c, CURLOPT_NOPROGRESS, TRUE);
- curl_setopt($c, CURLOPT_RETURNTRANSFER, TRUE);
- curl_setopt($c, CURLOPT_CUSTOMREQUEST, 'POST');
- curl_setopt($c, CURLOPT_POSTFIELDS, $str);
- $xml = curl_exec($c);
- curl_close($c);
- echo '<center>';
- if (strstr($xml,'error_register')) echo 'Failed ! Try again with another email';
- elseif (strstr($xml,'successful_register'))
- echo 'Your Box.net account was created successfully. Goto <a href="http://www.box.net" target=_blank><b>http://www.box.net</b></a> and login';
- echo '</center>';
- echo '<div align=center><b>RedPhoenix89</b></div>';
- ?>
Sao chép mã
   Chúc anh em thành công ! |
|