2shared direct link / edit php code / reward

Discussion in 'PHP' started by JohnyD999, Jul 26, 2010.

  1. #1
    Hello,
    I would like have files like video1.php, video2.php (in these files i could write link to 2shared) and if some user types in mywebsite.com/video1.php it will start download. I think it is possible just someone has to edit code from rapidleech script for 2shared download. I dont know php so i am lost. I will reward you (money or dont know). thank you very much
    link to 2shared looks like:
    http://www.2shared.com/document/WfWBDxy3/testovaci_link.html
    Code (markup):
    code:
    <?php
    if (!defined('RAPIDLEECH'))
    {
        require_once("index.html");
        exit;
    }
    
    $page = geturl($Url["host"], $Url["port"] ? $Url["port"] : 80, $Url["path"], $Referer, 0, 0, 0, $_GET["proxy"],$pauth);
    is_page($page);
    
    if (preg_match('/var c = ([0-9]+);/', $page, $count))
    {
        $countDown = $count[1];
        insert_timer($countDown, "Waiting link timelock");
    }
    
    preg_match('/location = "(.*)";/', $page, $loc);
    $Href = $loc[1];
    $Url = parse_url($Href);
    $FileName = !$FileName ? basename($Url["path"]) : $FileName;
    
    preg_match('/Set-Cookie: hostid=(.*); Expires/', $page, $coo);
    $cookie = "hostid=".$coo[1];
    /*preg_match('/Set-Cookie: JSESSIONID=(.*); Path/', $page, $coo);
    $cookie .= "; JSESSIONID=".$coo[1];*/
    
    insert_location("$PHP_SELF?cookie=".urlencode($cookie)."&filename=".urlencode($FileName)."&host=".$Url["host"]."&path=".urlencode($Url["path"].($Url["query"] ? "?".$Url["query"] : ""))."&referer=".urlencode($Referer)."&email=".($_GET["domail"] ? $_GET["email"] : "")."&partSize=".($_GET["split"] ? $_GET["partSize"] : "")."&method=".$_GET["method"]."&proxy=".($_GET["useproxy"] ? $_GET["proxy"] : "")."&saveto=".$_GET["path"]."&link=".urlencode($LINK).($_GET["add_comment"] == "on" ? "&comment=".urlencode($_GET["comment"]) : "")."&auth=".$auth.($pauth ? "&pauth=$pauth" : "").(isset($_GET["audl"]) ? "&audl=doum" : ""));
    ?>
    PHP:

     
    JohnyD999, Jul 26, 2010 IP
  2. happpy

    happpy Well-Known Member

    Messages:
    926
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    120
    #2
    pm me your messenger details. i can help you on this.
     
    happpy, Aug 9, 2010 IP