$this->save_cookies("fshare.vn", $cookie); } } $this->cookie = $cookie; $page = $this->curl($url, $cookie, $post); if (preg_match('/ocation: (http:\\/\\/.+.fshare\\.vn\\/vip\\/.+)/i', $page, $redir)) { $link = trim($redir[1]); } elseif (preg_match("%'(http:\\/\\/.+.fshare\\.vn\\/vip\\/.+)'%U", $page, $redir2)) { $link = trim($redir2[1]); } elseif (stristr($page, '<font color="RED">')) { die("Tài khoản này đang được sử dụng trên máy khác (hoặc IP khác), bạn không được phép download lúc này."); } elseif (strpos($page, 'fieldset class="m_t_10" style=""')) { die(_reportpass); } if ($link) { $size_name = Tools_get::size_name($link, $this->cookie); $filesize = $size_name[0]; $filename = $size_name[1]; break; } else { $cookie = ""; $this->save_cookies("fshare.vn", ""); } } } } /* * Home page: http://vinaget.us * Blog: http://blog.vinaget.us * Script Name: Vinaget * Version: 2.6.3
function get($url) { $this->CheckMBIP(); $dlhtml = ''; if (count($this->jobs) >= $this->max_jobs) { $dlhtml = '<center><b><i><font color=red>' . $this->lang['manyjob'] . '</font></i></b></center>'; return $dlhtml; } if ($this->countMBIP >= $this->limitMBIP) { printf($this->lang['countMBIP'], Tools_get::convertmb($this->limitMBIP * 1024 * 1024), Tools_get::convert_time($this->ttl * 60), Tools_get::convert_time($this->timebw)); return $dlhtml; } /* check 1 */ $checkjobs = $this->Checkjobs(); $heute = $checkjobs[0]; $lefttime = $checkjobs[1]; if ($heute >= $this->limitPERIP) { printf($this->lang['limitPERIP'], $this->limitPERIP, Tools_get::convert_time($this->ttl_ip * 60), $lefttime); return $dlhtml; } /* /check 1 */ if ($this->lookup_ip($_SERVER['REMOTE_ADDR']) >= $this->max_jobs_per_ip) { $dlhtml = '<center><b><i><font color=red>' . $this->lang['limitip'] . '</font></i></b></center>'; return $dlhtml; } $url = trim($url); if (empty($url)) { return; } $Original = $url; $link = ""; $user = ''; $pass = ''; $cookie = ''; $report = false; include "hosts/hosts.php"; ksort($host); foreach ($host as $file => $site) { $site = substr($site, 0, -4); $site = str_replace("_", ".", $site); if (preg_match('%' . $site . '%U', $Original)) { include 'hosts/' . $host[$file]; break; } } if (!$link) { $user = ''; $pass = ''; $cookie = ''; if ($this->debrid) { include 'hosts/' . $this->plugin; } } if ($report) { return $report; } if (!$link) { $size_name = Tools_get::size_name($Original, ""); $filesize = $size_name[0]; $filename = $size_name[1]; $this->max_size = $this->max_size_other_host; if ($size_name[0] > 1024 * 100) { $link = $url; } else { printf($this->lang['notsupport'], $Original, $Original); return $dlhtml; } } $hosting = Tools_get::site_hash($Original); if (!isset($filesize)) { printf($this->lang['notdl'], $Original, $Original); return $dlhtml; } if (!isset($this->max_size)) { $this->max_size = $this->max_size_other_host; } $msize = Tools_get::convertmb($filesize); $hash = md5($_SERVER['REMOTE_ADDR'] . $Original); if ($hash === false) { return $this->lang['cantjob']; } if ($filesize > $this->max_size * 1024 * 1024) { printf($this->lang['filebig'], $Original, $msize, Tools_get::convertmb($this->max_size * 1024 * 1024)); return $dlhtml; } if ($this->countMBIP + $filesize / (1024 * 1024) >= $this->limitMBIP) { printf($this->lang['countMBIP'], Tools_get::convertmb($this->limitMBIP * 1024 * 1024), Tools_get::convert_time($this->ttl * 60), Tools_get::convert_time($this->timebw)); return $dlhtml; } /* check 2 */ $checkjobs = $this->Checkjobs(); $heute = $checkjobs[0]; $lefttime = $checkjobs[1]; if ($heute >= $this->limitPERIP) { printf($this->lang['limitPERIP'], $this->limitPERIP, Tools_get::convert_time($this->ttl_ip * 60), $lefttime); return $dlhtml; } /* /check 2 */ $job = array('hash' => substr(base64_encode($hash), 0, 17), 'path' => substr(base64_encode(rand()), 0, 17), 'filename' => urlencode($filename), 'size' => $filesize, 'msize' => $msize, 'mtime' => time(), 'speed' => 0, 'url' => urlencode($Original), 'owner' => $this->owner, 'ip' => $_SERVER['REMOTE_ADDR'], 'type' => 'direct', 'directlink' => array('url' => urlencode($link), 'cookies' => $this->cookie)); $this->jobs[$hash] = $job; $this->save_jobs(); $tiam = time() . rand(0, 999); $gach = explode('/', $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']); $sv_name = ""; for ($i = 0; $i < count($gach) - 1; $i++) { $sv_name .= $gach[$i] . "/"; } $filename = preg_replace("/( |[|])/", "_", $filename); if ($this->directttlink == false) { $linkdown = 'http://' . $sv_name . '?file=' . $job['hash']; } else { $linkdown = $linkdown = $link; } ##########Begin short link ############ if (empty($this->zlink) == false && empty($this->link6_zip) == false && empty($link) == false) { $adfly = "http://api.adf.ly/api.php?key=9f9b0ca5b0081bda7572e6c27a522833&uid=779847&advert_type=int&domain=adf.ly&url=" . $linkdown; $datalink = $this->curl($adfly, '', '', 0); $shortest = "https://api.shorte.st/s/1b82fa9bc96bc32b24ba3116233c31f3/" . trim($datalink); $datalink = $this->curl($shortest, '', '', 0); $array = json_decode($datalink); $lik = trim($array->shortenedUrl); } else { $lik = $linkdown; } echo " <br>"; echo "<input name='1' type='text' size='100' value='[center][b][URL=" . $lik . "][color=magnenta]★[/color][color=red] DOWNLOAD [/color][color=magnenta]★[/color] [color=black] " . $filename . " [/color] [color=red] ( {$msize} ) [/color][/url][/b][/center][br]' onClick='1.select();' onfocus='this.select()'>"; echo " <br>"; $dlhtml = "<b><a title='click here to download' href='{$lik}' style='TEXT-DECORATION: none' target='{$tiam}'> <font color='#00CC00'>" . $filename . "</font> <font color='#FF66FF'>({$msize})</font></a></b>"; return $dlhtml; }
<?php if (preg_match('#^(http|https)\\:\\/\\/(www\\.)?dailymotion\\.com/#', $url)) { $data = $this->curl($url, "", ""); if (preg_match('@"hqURL":"([^|\\r|\\n|"]+)@i', urldecode($data), $match)) { $redir = trim($match[1]); } elseif (preg_match('@"(?:sd)?URL":"([^|\\r|\\n|"]+)@i', urldecode($data), $match)) { $redir = trim($match[1]); } if ($redir) { $redir = str_replace("\\/", "/", $redir); $page = $this->curl($redir, "", ""); if (preg_match('/ocation: (.*)/', $page, $match)) { $link = trim($match[1]); $size_name = Tools_get::size_name($link, ""); $filesize = $size_name[0]; if (preg_match('%<title>(.*) - Video Dailymotion</title>%U', $data, $matches)) { $filename = $matches[1] . ".mp4"; } else { $filename = $size_name[1]; } } } } /* * Home page: http://vinaget.us * Blog: http://blog.vinaget.us * Script Name: Vinaget * Version: 2.6.3 * Created: France */
<?php $account = trim($this->get_account("prodownloader.tk")); if (stristr($account, ':')) { list($user, $pass) = explode(':', $account); } else { $cookie = $account; } if (empty($cookie) == false || $user && $pass) { for ($j = 0; $j < 2; $j++) { $data = $this->curl("http://{$user}index.php", "secureid=" . md5($pass), "urllist=" . urlencode($url)); if (preg_match("/href='(.*)' style/", $data, $catch)) { $link = trim($catch[1]); $size_name = Tools_get::size_name($link, ''); if ($size_name[0] > 200) { $filesize = $size_name[0]; $filename = $size_name[1]; break; } else { $link = ""; } } } } /* * Coded By Erkan_2034 * Website: Turkdebrid.com * Contact: Skype: Erkan_20342034 Yahoo: Erkan_2034 * Vinaget to vinaget ( FOR 263) */
$URL .= "&signature=" . $sig; $this->youtube = $title . ".mp4"; echo '<div id="link">' . $this->get($URL) . '</div>'; } if (isset($foundArray[37])) { $URL = $foundArray[37]; $sig = $signature[37]; $URL .= "&signature=" . $sig; $this->youtube = $title . ".mp4"; echo '<div id="link">' . $this->get($URL) . '</div>'; } } exit; } elseif (isset($this->youtube)) { $URL = $url; $size_name = Tools_get::size_name(trim($URL), ""); if ($size_name[0] > 200) { $filename = $this->youtube; $filename = str_replace("/", "", $filename); $filesize = $size_name[0]; $link = $URL; } else { exit; } } /* * Home page: http://vinaget.us * Blog: http://blog.vinaget.us * Script Name: Vinaget * Version: 2.6.3 * Created: afterburnerleech.com (7 Sep 2011)
function get($url) { $this->reserved = array(); $this->CheckMBIP(); $dlhtml = ''; if (count($this->jobs) >= $this->max_jobs) { $this->error1('manyjob'); } if ($this->countMBIP >= $this->limitMBIP) { $this->error1('countMBIP', Tools_get::convertmb($this->limitMBIP * 1024 * 1024), Tools_get::convert_time($this->ttl * 60), Tools_get::convert_time($this->timebw)); } /* check 1 */ $checkjobs = $this->Checkjobs(); $heute = $checkjobs[0]; $lefttime = $checkjobs[1]; if ($heute >= $this->limitPERIP) { $this->error1('limitPERIP', $this->limitPERIP, Tools_get::convert_time($this->ttl_ip * 60), $lefttime); } /* /check 1 */ if ($this->lookup_ip($_SERVER['REMOTE_ADDR']) >= $this->max_jobs_per_ip) { $this->error1('limitip'); } $url = trim($url); if (empty($url)) { return; } $Original = $url; $link = ''; $cookie = ''; $report = false; if (!$link) { $site = $this->using; $this->proxy = isset($this->acc[$site]['proxy']) ? $this->acc[$site]['proxy'] : false; $this->proxy = isset($this->prox) ? $this->prox : false; if ($this->get_account($site) != "") { require_once 'hosts/' . $this->list_host[$site]['file']; $download = new $this->list_host[$site]['class']($this, $this->list_host[$site]['site']); $link = $download->General($url); } } if (!$link) { $domain = str_replace("www.", "", $this->cut_str($Original, "://", "/")); if (strpos($domain, "1fichier.com")) { $domain = "1fichier.com"; } if (strpos($domain, "letitbit.net")) { $domain = "letitbit.net"; } if (strpos($domain, "shareflare.net")) { $domain = "shareflare.net"; } if (isset($this->list_host[$domain])) { require_once 'hosts/' . $this->list_host[$domain]['file']; $download = new $this->list_host[$domain]['class']($this, $this->list_host[$domain]['site']); $site = $this->list_host[$domain]['site']; $this->proxy = isset($this->acc[$site]['proxy']) ? $this->acc[$site]['proxy'] : false; $this->proxy = isset($this->prox) ? $this->prox : false; $link = $download->General($url); } } // If download limit reached for this host if ($this->acc[$site]['download_limit'] > 0 && $this->totalMBSite[$site] > $this->acc[$site]['download_limit']) { $this->error2('download_limit_reached', $Original); } // If user use a free account and account is premium only if ((!isset($this->logboostSession) || !$this->logboostSession->isPremium()) && $this->acc[$site]['logboost_only']) { $this->error2('premium_only', $Original); } if (!$link) { $this->proxy = isset($this->acc[$site]['proxy']) ? $this->acc[$site]['proxy'] : false; $this->proxy = isset($this->prox) ? $this->prox : false; $size_name = Tools_get::size_name($Original, ""); $filesize = $size_name[0]; $filename = $size_name[1]; $this->max_size = $this->max_size_other_host; if ($size_name[0] > 1024 * 100) { $link = $url; } else { $this->error2('notsupport', $Original); } } else { $size_name = Tools_get::size_name($link, $this->cookie); $filesize = $size_name[0]; $filename = isset($this->reserved['filename']) ? $this->reserved['filename'] : $size_name[1]; } $hosting = Tools_get::site_hash($Original); if (!isset($filesize)) { $this->error2('notsupport', $Original); } // If user use a logboost acount, use specific max size by default if (isset($this->logboostSession) && $this->logboostSession->isPremium()) { $this->max_size = $this->acc[$site]['logboost_max_size']; } else { $this->max_size = $this->acc[$site]['max_size']; } if (!isset($this->max_size)) { $this->max_size = $this->max_size_other_host; } $msize = Tools_get::convertmb($filesize); $hash = md5($_SERVER['REMOTE_ADDR'] . $Original); if ($hash === false) { $this->error1('cantjob'); } if ($filesize > $this->max_size * 1024 * 1024) { $this->error2('filebig', $Original, $msize, Tools_get::convertmb($this->max_size * 1024 * 1024)); } if ($this->countMBIP + $filesize / (1024 * 1024) >= $this->limitMBIP) { $this->error1('countMBIP', Tools_get::convertmb($this->limitMBIP * 1024 * 1024), Tools_get::convert_time($this->ttl * 60), Tools_get::convert_time($this->timebw)); } /* check 2 */ $checkjobs = $this->Checkjobs(); $heute = $checkjobs[0]; $lefttime = $checkjobs[1]; if ($heute >= $this->limitPERIP) { $this->error1('limitPERIP', $this->limitPERIP, Tools_get::convert_time($this->ttl_ip * 60), $lefttime); } /* /check 2 */ $job = array('hash' => substr(md5($hash), 0, 10), 'path' => substr(md5(rand()), 0, 5), 'filename' => urlencode($filename), 'size' => $filesize, 'msize' => $msize, 'mtime' => time(), 'speed' => 0, 'url' => urlencode($Original), 'owner' => $this->owner, 'ip' => $_SERVER['REMOTE_ADDR'], 'type' => 'direct', 'proxy' => $this->proxy == false ? 0 : $this->proxy, 'site' => $site, 'directlink' => array('url' => urlencode($link), 'cookies' => $this->cookie)); $this->jobs[$hash] = $job; $this->save_jobs(); $tiam = time() . rand(0, 999); $gach = explode('/', $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']); $sv_name = ""; for ($i = 0; $i < count($gach) - 1; $i++) { $sv_name .= $gach[$i] . "/"; } if ($this->acc[$site]['direct']) { $linkdown = $link; } elseif ($this->longurl) { if (function_exists("apache_get_modules") && in_array('mod_rewrite', @apache_get_modules())) { $linkdown = 'http://' . $sv_name . $hosting . '/' . $job['hash'] . '/' . urlencode($filename); } else { $linkdown = 'http://' . $sv_name . 'index.php/' . $hosting . '/' . $job['hash'] . '/' . urlencode($filename); } } else { $linkdown = 'http://' . $sv_name . '?file=' . $job['hash']; } // Create ads link before to zip it (free account only) if (!isset($this->logboostSession) || !$this->logboostSession->isPremium()) { if ($this->use_ads && !empty($this->link_ads)) { $datalink = $this->curl($this->link_ads . $linkdown, '', '', 0); if (preg_match('%(http:\\/\\/.++)%U', $datalink, $adslik)) { $linkdown = trim($adslik[1]); } } } // #########Begin short link ############ // Short link by giaythuytinh176@rapidleech.com if (empty($this->zlink) == true && empty($link) == false && empty($this->Googlzip) == false && empty($this->bitly) == true) { $datalink = $this->Googlzip($linkdown); if (preg_match('%(http:\\/\\/.++)%U', $datalink, $shortlink)) { $lik = trim($shortlink[1]); } else { $lik = $linkdown; } } elseif (empty($this->zlink) == true && empty($link) == false && empty($this->Googlzip) == true && empty($this->bitly) == false) { $datalink = $this->bitly($linkdown); if (preg_match('%(http:\\/\\/.++)%U', $datalink, $shortlink)) { $lik = trim($shortlink[1]); } else { $lik = $linkdown; } } elseif (empty($this->zlink) == false && empty($link) == false) { if (empty($this->Googlzip) == true && empty($this->bitly) == true) { if (empty($this->link_zip) == false) { if (empty($this->link_rutgon) == true) { $datalink = $this->curl($this->link_zip . $linkdown, '', '', 0); if (preg_match('%(http:\\/\\/.++)%U', $datalink, $shortlink)) { $lik = trim($shortlink[1]); } else { $lik = $linkdown; } } elseif (empty($this->link_rutgon) == false) { $apizip = $this->curl($this->link_zip . $linkdown, '', '', 0); $apizip2 = $this->curl($this->link_rutgon . $apizip, '', '', 0); if (preg_match('%(http:\\/\\/.++)%U', $apizip2, $shortlink)) { $lik = trim($shortlink[1]); } else { $lik = $linkdown; } } } elseif (empty($this->link_zip) == true) { if (empty($this->link_rutgon) == true) { $lik = $linkdown; } elseif (empty($this->link_rutgon) == false) { $datalink = $this->curl($this->link_rutgon . $linkdown, '', '', 0); if (preg_match('%(http:\\/\\/.++)%U', $datalink, $shortlink)) { $lik = trim($shortlink[1]); } else { $lik = $linkdown; } } } } elseif (empty($this->Googlzip) == false && empty($this->bitly) == true) { if (empty($this->link_zip) == false) { if (empty($this->link_rutgon) == true) { $apizip = $this->curl($this->link_zip . $linkdown, '', '', 0); $datalink = $this->Googlzip($apizip); if (preg_match('%(http:\\/\\/.++)%U', $datalink, $shortlink)) { $lik = trim($shortlink[1]); } else { $lik = $linkdown; } } elseif (empty($this->link_rutgon) == false) { $apizip = $this->curl($this->link_zip . $linkdown, '', '', 0); $apizip2 = $this->curl($this->link_rutgon . $apizip, '', '', 0); $datalink = $this->Googlzip($apizip2); if (preg_match('%(http:\\/\\/.++)%U', $datalink, $shortlink)) { $lik = trim($shortlink[1]); } else { $lik = $linkdown; } } } elseif (empty($this->link_zip) == true) { if (empty($this->link_rutgon) == true) { $datalink = $this->Googlzip($linkdown); if (preg_match('%(http:\\/\\/.++)%U', $datalink, $shortlink)) { $lik = trim($shortlink[1]); } else { $lik = $linkdown; } } elseif (empty($this->link_rutgon) == false) { $apizip = $this->curl($this->link_rutgon . $linkdown, '', '', 0); $datalink = $this->Googlzip($apizip); if (preg_match('%(http:\\/\\/.++)%U', $datalink, $shortlink)) { $lik = trim($shortlink[1]); } else { $lik = $linkdown; } } } } elseif (empty($this->Googlzip) == true && empty($this->bitly) == false) { if (empty($this->link_zip) == false) { if (empty($this->link_rutgon) == true) { $apizip = $this->curl($this->link_zip . $linkdown, '', '', 0); $datalink = $this->bitly($apizip); if (preg_match('%(http:\\/\\/.++)%U', $datalink, $shortlink)) { $lik = trim($shortlink[1]); } else { $lik = $linkdown; } } elseif (empty($this->link_rutgon) == false) { $apizip = $this->curl($this->link_zip . $linkdown, '', '', 0); $apizip2 = $this->curl($this->link_rutgon . $apizip, '', '', 0); $datalink = $this->bitly($apizip2); if (preg_match('%(http:\\/\\/.++)%U', $datalink, $shortlink)) { $lik = trim($shortlink[1]); } else { $lik = $linkdown; } } } elseif (empty($this->link_zip) == true) { if (empty($this->link_rutgon) == true) { $datalink = $this->bitly($linkdown); if (preg_match('%(http:\\/\\/.++)%U', $datalink, $shortlink)) { $lik = trim($shortlink[1]); } else { $lik = $linkdown; } } elseif (empty($this->link_rutgon) == false) { $apizip = $this->curl($this->link_rutgon . $linkdown, '', '', 0); $datalink = $this->bitly($apizip); if (preg_match('%(http:\\/\\/.++)%U', $datalink, $shortlink)) { $lik = trim($shortlink[1]); } else { $lik = $linkdown; } } } } } else { $lik = $linkdown; } if ($this->bbcode) { if ($this->proxy != false && $this->redirdl == true) { if (strpos($this->proxy, "|")) { list($prox, $userpass) = explode("|", $this->proxy); list($ip, $port) = explode(":", $prox); list($user, $pass) = explode(":", $userpass); } else { list($ip, $port) = explode(":", $this->proxy); } echo "<input name='176' type='text' size='100' value='[center][b][URL={$lik}]{$this->title} | [color={$this->colorfn}]{$filename}[/color][color={$this->colorfs}] ({$msize})[/color] [/b][/url][b] [br] ([color=green]You must add this proxy[/color] " . (strpos($this->proxy, "|") ? 'IP: ' . $ip . ' Port: ' . $port . ' User: '******' & Pass: '******'' : 'IP: ' . $ip . ' Port: ' . $port . '') . ")[/b][/center]' onClick='this.select()'>"; echo "<br>"; } else { echo "<input name='176' type='text' size='100' value='[center][b][URL={$lik}]{$this->title} | [color={$this->colorfn}]{$filename}[/color][color={$this->colorfs}] ({$msize}) [/color][/url][/b][/center]' onClick='this.select()'>"; echo "<br>"; } } $dlhtml = "<b><a title='click here to download' href='{$lik}' style='TEXT-DECORATION: none' target='{$tiam}'> <font color='#00CC00'>" . $filename . "</font> <font color='#FF66FF'>({$msize})</font> " . ($this->directdl && !$this->acc[$site]['direct'] ? "<a href='{$link}'>Direct<a> " : "") . "</a>" . ($this->proxy != false ? "<font id='proxy'>({$this->proxy})</font>" : "") . "</b>" . ($this->proxy != false && $this->redirdl == true ? "<br/><b><font color=\"green\">You must add proxy or you can not download this link</font></b>" : ""); return $dlhtml; }
function get($url) { $this->CheckMBIP(); $dlhtml = ''; if (count($this->jobs) >= $this->max_jobs) { $dlhtml = '<center><b><i><font color=red>' . $this->lang['manyjob'] . '</font></i></b></center>'; return $dlhtml; } if ($this->countMBIP >= $this->limitMBIP) { printf($this->lang['countMBIP'], Tools_get::convertmb($this->limitMBIP * 1024 * 1024), Tools_get::convert_time($this->ttl * 60), Tools_get::convert_time($this->timebw)); return $dlhtml; } /* check 1 */ $checkjobs = $this->Checkjobs(); $heute = $checkjobs[0]; $lefttime = $checkjobs[1]; if ($heute >= $this->limitPERIP) { printf($this->lang['limitPERIP'], $this->limitPERIP, Tools_get::convert_time($this->ttl_ip * 60), $lefttime); return $dlhtml; } /* /check 1 */ if ($this->lookup_ip($_SERVER['REMOTE_ADDR']) >= $this->max_jobs_per_ip) { $dlhtml = '<center><b><i><font color=red>' . $this->lang['limitip'] . '</font></i></b></center>'; return $dlhtml; } $url = trim($url); if (empty($url)) { return; } $Original = $url; $link = ""; $user = ''; $pass = ''; $cookie = ''; $report = false; include "hosts/hosts.php"; ksort($host); foreach ($host as $file => $site) { $site = substr($site, 0, -4); $site = str_replace("_", ".", $site); if (preg_match('%' . $site . '%U', $Original)) { include 'hosts/' . $host[$file]; break; } } if ($report) { return $report; } if (!$link) { $size_name = Tools_get::size_name($Original, ""); $filesize = $size_name[0]; $filename = $size_name[1]; $this->max_size = $this->max_size_other_host; if ($size_name[0] > 1024 * 100) { $link = $url; } else { printf($this->lang['notsupport'], $Original, $Original); return $dlhtml; } } $hosting = Tools_get::site_hash($Original); if (!isset($filesize)) { printf($this->lang['notdl'], $Original, $Original); return $dlhtml; } if (!isset($this->max_size)) { $this->max_size = $this->max_size_other_host; } $msize = Tools_get::convertmb($filesize); $hash = md5($_SERVER['REMOTE_ADDR'] . $Original); if ($hash === false) { return $this->lang['cantjob']; } if ($filesize > $this->max_size * 1024 * 1024) { printf($this->lang['filebig'], $Original, $msize, Tools_get::convertmb($this->max_size * 1024 * 1024)); return $dlhtml; } if ($this->countMBIP + $filesize / (1024 * 1024) >= $this->limitMBIP) { printf($this->lang['countMBIP'], Tools_get::convertmb($this->limitMBIP * 1024 * 1024), Tools_get::convert_time($this->ttl * 60), Tools_get::convert_time($this->timebw)); return $dlhtml; } /* check 2 */ $checkjobs = $this->Checkjobs(); $heute = $checkjobs[0]; $lefttime = $checkjobs[1]; if ($heute >= $this->limitPERIP) { printf($this->lang['limitPERIP'], $this->limitPERIP, Tools_get::convert_time($this->ttl_ip * 60), $lefttime); return $dlhtml; } /* /check 2 */ $job = array('hash' => substr(md5($hash), 0, 10), 'path' => substr(md5(rand()), 0, 5), 'filename' => urlencode($filename), 'size' => $filesize, 'msize' => $msize, 'mtime' => time(), 'speed' => 0, 'url' => urlencode($Original), 'owner' => $this->owner, 'ip' => $_SERVER['REMOTE_ADDR'], 'type' => 'direct', 'directlink' => array('url' => urlencode($link), 'cookies' => $this->cookie)); $this->jobs[$hash] = $job; $this->save_jobs(); $tiam = time() . rand(0, 999); $gach = explode('/', $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']); $sv_name = ""; for ($i = 0; $i < count($gach) - 1; $i++) { $sv_name .= $gach[$i] . "/"; } if (function_exists("apache_get_modules") && in_array('mod_rewrite', @apache_get_modules())) { $linkdown = 'http://' . $sv_name . $hosting . '/' . $job['hash'] . '/' . urlencode($filename); } else { $linkdown = 'http://' . $sv_name . 'index.php/' . $hosting . '/' . $job['hash'] . '/' . urlencode($filename); } ##########Begin short link ############ if (empty($this->zlink) == false && empty($this->link_zip) == false && empty($link) == false) { $datalink = $this->curl($this->link_zip . $linkdown, '', '', 0); if (preg_match('%(http:\\/\\/.++)%U', $datalink, $shortlink)) { $lik = trim($shortlink[1]); } else { $lik = $linkdown; } } else { $lik = $linkdown; } $dlhtml = "<b><a title='click here to download' href='{$lik}' style='TEXT-DECORATION: none' target='{$tiam}'> <font color='#00CC00'>" . $filename . "</font> <font color='#FF66FF'>({$msize})</font></a></b>"; return $dlhtml; }
} if (preg_match('/ocation: (.*)/', $page, $linkpre)) { $link = trim($linkpre[1]); } elseif (stristr($page, "dh('');")) { die($this->lang['reportpass']); } if ($link) { break; } else { $cookie = ""; $this->save_cookies("mediafire.com", ""); } } } if ($link) { $size_name = Tools_get::size_name($link, $cookie); if ($size_name[0] > 0) { $filesize = $size_name[0]; $filename = $size_name[1]; } } else { if (stristr($data, "6LextQUAAAAAALlQv0DSHOYxqF3DftRZxA5yebEe")) { $page = $this->curl("http://api.recaptcha.net/challenge?k=6LextQUAAAAAALlQv0DSHOYxqF3DftRZxA5yebEe", "", ""); if (preg_match("%challenge : '(.*)'%U", $page, $matches)) { echo 'captcha code \'' . trim($matches[1]) . '\''; } else { echo '<font color=blue>' . $url . '</font> <font color=red>==► Authentication Required, pls contact admin@vinaget.us</font>'; } exit; } elseif (stristr($data, "This file is temporarily unavailable because")) { die('<center><b><font color=#00CC00>' . $url . '</font> <font color=red> ==► File too big ! </font><font color=#3399FF>when allowed only</font> <font color=#FFCC00>200 MB</font></b></center>');
<?php if (strpos($url, 'soundcloud.com')) { include "phpquery.php"; $post = array("track" => $url); $data = $this->curl('http://offliberty.com/off.php', '', $post); phpQuery::newDocumentHTML($data); $link = pq('a:first')->attr('href'); $size_name = Tools_get::size_name(trim($link), ""); if ($size_name[0] > 200) { $filesize = $size_name[0]; $filename = explode("/", $url); $filename = $filename[3] . "_" . $filename[4] . ".mp3"; $filename = str_replace("[", "_", $filename); $filename = str_replace("www.", "www_", $filename); $filename = str_replace("]", "_", $filename); $filename = str_replace("\\", "_", $filename); $filename = str_replace("@", "_", $filename); $filename = str_replace(''', "_", $filename); $filename = str_replace('"', "_", $filename); $filename = str_replace('$', "_", $filename); $filename = str_replace('%', "_", $filename); $filename = str_replace('&', "_", $filename); $filename = str_replace(' ', "_", $filename); $filename = str_replace('%20', "_", $filename); $filename = str_replace('-', "_", $filename); } else { die('Can not get link !'); } } /*
function get($url) { $this->CheckMBIP(); $dlhtml = ''; if (count($this->jobs) >= $this->max_jobs) { $this->error1('manyjob'); } if ($this->countMBIP >= $this->limitMBIP) { $this->error1('countMBIP', Tools_get::convertmb($this->limitMBIP * 1024 * 1024), Tools_get::convert_time($this->ttl * 60), Tools_get::convert_time($this->timebw)); } /* check 1 */ $checkjobs = $this->Checkjobs(); $heute = $checkjobs[0]; $lefttime = $checkjobs[1]; if ($heute >= $this->limitPERIP) { $this->error1('limitPERIP', $this->limitPERIP, Tools_get::convert_time($this->ttl_ip * 60), $lefttime); } /* /check 1 */ if ($this->lookup_ip($_SERVER['REMOTE_ADDR']) >= $this->max_jobs_per_ip) { $this->error1('limitip'); } $url = trim($url); if (empty($url)) { return; } $Original = $url; $link = ''; $user = ''; $pass = ''; $cookie = ''; $report = false; if (!$link) { $site = $this->using; $this->proxy = isset($this->acc[$site]['proxy']) ? $this->acc[$site]['proxy'] : false; if ($this->get_account($site) != "") { require_once 'hosts/' . $this->list_host[$site]['file']; $download = new $this->list_host[$site]['class']($this, $this->list_host[$site]['site']); $link = $download->General($url); } } if (!$link) { $domain = str_replace("www.", "", $this->cut_str($Original, "://", "/")); if (isset($this->list_host[$domain])) { require_once 'hosts/' . $this->list_host[$domain]['file']; $download = new $this->list_host[$domain]['class']($this, $this->list_host[$domain]['site']); $site = $this->list_host[$domain]['site']; $this->proxy = isset($this->acc[$site]['proxy']) ? $this->acc[$site]['proxy'] : false; $link = $download->General($url); } } if (!$link) { $this->proxy = false; $size_name = Tools_get::size_name($Original, ""); $filesize = $size_name[0]; $filename = $size_name[1]; $this->max_size = $this->max_size_other_host; if ($size_name[0] > 1024 * 100) { $link = $url; } else { $this->error2('notsupport', $Original); } } else { $size_name = Tools_get::size_name($link, $this->cookie); $filesize = $size_name[0]; $filename = $size_name[1]; } $hosting = Tools_get::site_hash($Original); if (!isset($filesize)) { $this->error2('notsupport', $Original); } if (!isset($this->max_size)) { $this->max_size = $this->max_size_other_host; } $msize = Tools_get::convertmb($filesize); $hash = md5($_SERVER['REMOTE_ADDR'] . $Original); if ($hash === false) { $this->error1('cantjob'); } if ($filesize > $this->max_size * 1024 * 1024) { $this->error2('filebig', $Original, $msize, Tools_get::convertmb($this->max_size * 1024 * 1024)); } if ($this->countMBIP + $filesize / (1024 * 1024) >= $this->limitMBIP) { $this->error1('countMBIP', Tools_get::convertmb($this->limitMBIP * 1024 * 1024), Tools_get::convert_time($this->ttl * 60), Tools_get::convert_time($this->timebw)); } /* check 2 */ $checkjobs = $this->Checkjobs(); $heute = $checkjobs[0]; $lefttime = $checkjobs[1]; if ($heute >= $this->limitPERIP) { $this->error1('limitPERIP', $this->limitPERIP, Tools_get::convert_time($this->ttl_ip * 60), $lefttime); } /* /check 2 */ $job = array('hash' => substr(md5($hash), 0, 10), 'path' => substr(md5(rand()), 0, 5), 'filename' => urlencode($filename), 'size' => $filesize, 'msize' => $msize, 'mtime' => time(), 'speed' => 0, 'url' => urlencode($Original), 'owner' => $this->owner, 'ip' => $_SERVER['REMOTE_ADDR'], 'type' => 'direct', 'proxy' => $this->proxy == "" ? 0 : $this->proxy, 'directlink' => array('url' => urlencode($link), 'cookies' => $this->cookie)); $this->jobs[$hash] = $job; $this->save_jobs(); $tiam = time() . rand(0, 999); $gach = explode('/', $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']); $sv_name = ""; for ($i = 0; $i < count($gach) - 1; $i++) { $sv_name .= $gach[$i] . "/"; } if ($this->acc[$site]['direct']) { $linkdown = $link; } elseif ($this->longurl) { if (function_exists("apache_get_modules") && in_array('mod_rewrite', @apache_get_modules())) { $linkdown = 'http://' . $sv_name . $hosting . '/' . $job['hash'] . '/' . urlencode($filename); } else { $linkdown = 'http://' . $sv_name . 'index.php/' . $hosting . '/' . $job['hash'] . '/' . urlencode($filename); } } else { $linkdown = 'http://' . $sv_name . '?file=' . $job['hash']; } // #########Begin short link ############ // Short link by giaythuytinh176@rapidleech.com if (empty($this->zlink) == true && empty($link) == false && empty($this->Googlzip) == false && empty($this->bitly) == true) { $datalink = $this->Googlzip($linkdown); if (preg_match('%(http:\\/\\/.++)%U', $datalink, $shortlink)) { $lik = trim($shortlink[1]); } else { $lik = $linkdown; } } elseif (empty($this->zlink) == true && empty($link) == false && empty($this->Googlzip) == true && empty($this->bitly) == false) { $datalink = $this->bitly($linkdown); if (preg_match('%(http:\\/\\/.++)%U', $datalink, $shortlink)) { $lik = trim($shortlink[1]); } else { $lik = $linkdown; } } elseif (empty($this->zlink) == false && empty($link) == false) { if (empty($this->Googlzip) == true && empty($this->bitly) == true) { if (empty($this->link_zip) == false) { if (empty($this->link_rutgon) == true) { $datalink = $this->curl($this->link_zip . $linkdown, '', '', 0); if (preg_match('%(http:\\/\\/.++)%U', $datalink, $shortlink)) { $lik = trim($shortlink[1]); } else { $lik = $linkdown; } } elseif (empty($this->link_rutgon) == false) { $apizip = $this->curl($this->link_zip . $linkdown, '', '', 0); $apizip2 = $this->curl($this->link_rutgon . $apizip, '', '', 0); if (preg_match('%(http:\\/\\/.++)%U', $apizip2, $shortlink)) { $lik = trim($shortlink[1]); } else { $lik = $linkdown; } } } elseif (empty($this->link_zip) == true) { if (empty($this->link_rutgon) == true) { $lik = $linkdown; } elseif (empty($this->link_rutgon) == false) { $datalink = $this->curl($this->link_rutgon . $linkdown, '', '', 0); if (preg_match('%(http:\\/\\/.++)%U', $datalink, $shortlink)) { $lik = trim($shortlink[1]); } else { $lik = $linkdown; } } } } elseif (empty($this->Googlzip) == false && empty($this->bitly) == true) { if (empty($this->link_zip) == false) { if (empty($this->link_rutgon) == true) { $apizip = $this->curl($this->link_zip . $linkdown, '', '', 0); $datalink = $this->Googlzip($apizip); if (preg_match('%(http:\\/\\/.++)%U', $datalink, $shortlink)) { $lik = trim($shortlink[1]); } else { $lik = $linkdown; } } elseif (empty($this->link_rutgon) == false) { $apizip = $this->curl($this->link_zip . $linkdown, '', '', 0); $apizip2 = $this->curl($this->link_rutgon . $apizip, '', '', 0); $datalink = $this->Googlzip($apizip2); if (preg_match('%(http:\\/\\/.++)%U', $datalink, $shortlink)) { $lik = trim($shortlink[1]); } else { $lik = $linkdown; } } } elseif (empty($this->link_zip) == true) { if (empty($this->link_rutgon) == true) { $datalink = $this->Googlzip($linkdown); if (preg_match('%(http:\\/\\/.++)%U', $datalink, $shortlink)) { $lik = trim($shortlink[1]); } else { $lik = $linkdown; } } elseif (empty($this->link_rutgon) == false) { $apizip = $this->curl($this->link_rutgon . $linkdown, '', '', 0); $datalink = $this->Googlzip($apizip); if (preg_match('%(http:\\/\\/.++)%U', $datalink, $shortlink)) { $lik = trim($shortlink[1]); } else { $lik = $linkdown; } } } } elseif (empty($this->Googlzip) == true && empty($this->bitly) == false) { if (empty($this->link_zip) == false) { if (empty($this->link_rutgon) == true) { $apizip = $this->curl($this->link_zip . $linkdown, '', '', 0); $datalink = $this->bitly($apizip); if (preg_match('%(http:\\/\\/.++)%U', $datalink, $shortlink)) { $lik = trim($shortlink[1]); } else { $lik = $linkdown; } } elseif (empty($this->link_rutgon) == false) { $apizip = $this->curl($this->link_zip . $linkdown, '', '', 0); $apizip2 = $this->curl($this->link_rutgon . $apizip, '', '', 0); $datalink = $this->bitly($apizip2); if (preg_match('%(http:\\/\\/.++)%U', $datalink, $shortlink)) { $lik = trim($shortlink[1]); } else { $lik = $linkdown; } } } elseif (empty($this->link_zip) == true) { if (empty($this->link_rutgon) == true) { $datalink = $this->bitly($linkdown); if (preg_match('%(http:\\/\\/.++)%U', $datalink, $shortlink)) { $lik = trim($shortlink[1]); } else { $lik = $linkdown; } } elseif (empty($this->link_rutgon) == false) { $apizip = $this->curl($this->link_rutgon . $linkdown, '', '', 0); $datalink = $this->bitly($apizip); if (preg_match('%(http:\\/\\/.++)%U', $datalink, $shortlink)) { $lik = trim($shortlink[1]); } else { $lik = $linkdown; } } } } } else { $lik = $linkdown; } $dlhtml = "<b><a title='click here to download' href='{$lik}' style='TEXT-DECORATION: none' target='{$tiam}'> <font color='#00CC00'>" . $filename . "</font> <font color='#FF66FF'>({$msize})</font> " . ($this->directdl && !$this->acc[$site]['direct'] ? "<a href='{$link}'>Direct<a> " : "") . ($this->proxy != false ? "<font id='proxy'>({$this->proxy})</font>" : "") . "</a></b>"; return $dlhtml; }