Share code nâng cấp lên 50GB dung lượng miễn phí box.com


Share code Upgrade to 50 GB of storage box.com, nâng cấp lên 50GB dung lượng miễn phí tài khoản ở box.com
Demo: http://tools.jebiho.com/Upgrade-50GB-lifetime-Accounts-Box.com.php
Download

 















<?php
error_reporting(0);
if($_GET['user'] == '')
{
?>
<head>
<title>Jebiho.com Upgrade to 50 GB of storage Box.net</title>
</head>
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<script>
function up()
{

    var    user = $('#user').val();
    var    pass = $('#pass').val();
    if(user == '' || pass == '')
    {
        alert('Chưa điền đầy đủ thông tin');
    }
    else{
        $('#result').html("<center>Please wait...</center>");
    $('#result').fadeOut('slow').load('?user='+user+"&pass="+pass).fadeIn("slow");
    }
}
</script>
<html>
<body>
    <center>
        <h1>Jebiho.com Upgrade to 50 GB of storage Box.net</h1>
        <input type="text" id="user" placeholder="admin@jebiho.com" /> <br><br>
        <input type="password" id="pass" placeholder="password" /> <br><br>
        <input type="button" value="Upgrade 50GB" name="whois" onclick="up();" />
    </center>
    <div id="result"></div>
</body>
</html>
<?php
}
else{
    $user = $_GET['user'];
    $pass = $_GET['pass'];

    $page = file_get_contents("https://www.box.net/api/1.0/rest?action=authorization&api_key=1y4ddq8mohgjyat6767yda5zca9ytxu3&login=$user&password=$pass&method=");
    $auth = getStr($page,'<auth_token>','</auth_token>');
    $page = file_get_contents("https://www.box.net/api/1.0/rest?action=upgrade_user&api_key=1y4ddq8mohgjyat6767yda5zca9ytxu3&login=$user&password=$pass&referrer_code=se_50gb_promo&auth_token=$auth");
    $info = getStr($page,'<info_text>','</');
    if($info == '')
    {
        $info = "Tài khoản này không thể upgrade, vui lòng thay tài khoản khác!";
    }
    echo "<center>$info</center>";
}
function getStr($string,$start,$end){
    $str = explode($start,$string,2);
    $str = explode($end,$str[1],2);
    return $str[0];
}
?>

3 Responses to "Share code nâng cấp lên 50GB dung lượng miễn phí box.com"