/hosts/mediafire_com.php
PHP | 52 lines | 44 code | 7 blank | 1 comment | 5 complexity | ad5521d47b7f08d8a99c8acaac2a844c MD5 | raw file
- <?php
- if (!defined('RAPIDLEECH'))
- {
- require_once("index.html");
- exit;
- }
- $page = geturl($Url["host"], $Url["port"] ? $Url["port"] : 80, $Url["path"].($Url["query"] ? "?".$Url["query"] : ""), $Referer, 0, 0, 0, $_GET["proxy"],$pauth);
- is_page($page);
- preg_match('/Location:.*error/i', $page) ? html_error("Invalid File", 0) : '';
- if(preg_match('/Location: (.*)/i', $page, $redir))
- {
- $Href = trim($redir[1]);
- $Url = parse_url($Href);
- $page = geturl($Url["host"], $Url["port"] ? $Url["port"] : 80, $Url["path"].($Url["query"] ? "?".$Url["query"] : ""), $Referer, 0, 0, 0, $_GET["proxy"],$pauth);
- is_page($page);
- }
-
- preg_match('/Set-Cookie: (.*)/i', $page, $cook);
- $cookie = $cook[1];
-
- preg_match('/cu\((.*?)\);/', $page, $values);
- $value = preg_split('/\',?\'?/', $values[1], -1, PREG_SPLIT_NO_EMPTY);
- $qk = $value[0];
- $pk = $value[1];
- $r = $value[2];
-
- $Href = "http://www.mediafire.com/dynamic/download.php?qk=$value[0]&pk=$value[1]&r=$value[2]";
- $Url = parse_url($Href);
- $page = geturl($Url["host"], $Url["port"] ? $Url["port"] : 80, $Url["path"].($Url["query"] ? "?".$Url["query"] : ""), $Referer, $cookie, 0, 0, $_GET["proxy"],$pauth);
- preg_match('%arting.*href=.*http://" \+ ?(.*) ?\+\'/\' ?(.*) \'g/\'\ + ?(.*) ?\+ \'/\' \+ ?(.*) ?\+ \'">%', $page, $parts);
- if (stristr($parts[2],"+")) {
- $temps = explode("+",$parts[2]);
- foreach ($temps as $temp) {
- if (empty($temp)) continue;
- preg_match('/'.trim($temp).' ?= ?\'(.*?)\';/', $page, $temp2);
- $mpath1.= $temp2[1];
- }
- }
- preg_match('/'.trim($parts[1]).' ?= ?\'(.*?)\';/', $page, $mhost);
- $get = $_GET['link'];
- $put = str_replace('http://www.mediafire.com/download.php?', '', $get);
- preg_match('/'.trim($parts[4]).' ?= ?\'(.*?)\';/', $page, $mname);
-
- $Href = 'http://'.$mhost[1].'/'.$mpath1.'g/'.$put.'/'.$mname[1];
- $Url = parse_url($Href);
- $FileName = !$FileName ? basename($Url["path"]) : $FileName;
- insert_location("$PHP_SELF?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" : ""));
-
- // edited by mrbrownee70
- ?>