Advertisement
Tblogger

rapidleech[dl]uppit_com.php

Oct 2nd, 2014
262
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.76 KB | None | 0 0
  1. <?php
  2. if (!defined('RAPIDLEECH')) {
  3.         require_once 'index.html';
  4.         exit;
  5. }
  6.  
  7. class uppit_com extends DownloadClass {
  8.        
  9.         public function Download($link) {
  10.                 global $premium_acc;
  11.                 if (!$_REQUEST['step']) {
  12.                         $this->cookie = array('lang' => 'english');
  13.                         $this->page = $this->GetPage($link, $this->cookie);
  14.                         if (preg_match('/Location: (https?:\/\/uppit\.com\/[^\r\n]+)/i', $this->page, $rd)) {
  15.                                 $link = trim($rd[1]);
  16.                                 $this->page = $this->GetPage($link, $this->cookie);
  17.                         }
  18.                         is_present($this->page, 'The file you were looking for could not be found, sorry for any inconvenience.');
  19.                 }
  20.                 $this->link = $link;
  21.                 if ($_REQUEST['premium_acc'] == 'on' && (($_REQUEST['premium_user'] && $_REQUEST['premium_pass'])||($premium_acc['uppit_com']['user'] && $premium_acc['uppit_com']['pass']))) {
  22.                         return $this->Premium();
  23.                 } else {
  24.                         return $this->Free();
  25.                 }
  26.         }
  27.        
  28.         private function Free() {
  29.                
  30.                 if (!preg_match_all('/var count=(\d+)/i', $this->page, $w)) html_error('Error[Timer not found!]');
  31.                 $this->CountDown(array_rand($w[1]));
  32.                 $form = cut_str($this->page, '<form action="" name="pre" method="POST">', '</form>');
  33.                 if (!preg_match_all('/<input type="hidden" name="([^"]+)" value="([^"]+)?">/', $form, $one) || !preg_match_all('/<input type="submit" name="([^"]+)" id="btn_download" value="([^"]+)?">/', $form, $two)) html_error('Error[Post Data - FREE not found!]');
  34.                 $match = array_merge(array_combine($one[1], $one[2]), array_combine($two[1], $two[2]));
  35.                 $post = array();
  36.                 foreach ($match as $k => $v) {
  37.                         $post[$k] = $v;
  38.                 }
  39.                 $page = $this->GetPage($this->link, $this->cookie, $post, $this->link);
  40.                 if (!preg_match('/<a href="(https?:\/\/stor\d+\.uppcdn\.com\/dl\/[^\r\n\'"]+)"/', $page, $dl)) html_error('Error[Download Link - FREE not found!]');
  41.                 $dlink = trim($dl[1]);
  42.                 $filename = basename(parse_url($dlink, PHP_URL_PATH));
  43.                 $this->RedirectDownload($dlink, $filename, $this->cookie, 0, $this->link);
  44.                 exit;
  45.         }
  46.        
  47.         private function Premium() {
  48.                 html_error('Error[Unsupported now!]');
  49.         }
  50. }
  51.  
  52.  
  53.  
  54. //Written by Tony Fauzi Wihana/Ruud v.Tony 22-01-2013
  55. // [03-10-2014] Little Change In Regex and Fixed By Tblogger [03-10-2014]
  56. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement