diff --git a/vinaget/vng270/.htaccess b/.htaccess
similarity index 96%
rename from vinaget/vng270/.htaccess
rename to .htaccess
index c7e91b9..aee3d50 100644
--- a/vinaget/vng270/.htaccess
+++ b/.htaccess
@@ -1,60 +1,60 @@
-Options -Indexes
-DirectoryIndex index.php index.html index.htm
-
";
- echo "
";
-
- else echo "
- " . $this->lang['total'] . ": $totalall
";
- }
-
- function deljob()
- {
- if ($this->act['delete'] == false) return;
- if (isset($_POST['checkbox'])) {
- echo "
Direct Download
')) return array(true, "Until ".$this->lib->cut_str($this->lib->cut_str($data, 'Direct Download
')) return array(true, "Until ".$this->lib->cut_str($this->lib->cut_str($data, 'Your download will begin in a few seconds.
If it does not, click here.
Your download will begin in a few seconds.
If it does not, click here.
lib->curl("http://novafile.com/?op=my_account", "lang=english;{$cookie}", ""); + return array(true, "Until ".$this->lib->cut_str($data, 'Premium Account expires:',' Traffic Available: " .$this->lib->cut_str($this->lib->cut_str($checkbw, '
lib->curl($url, "", "");
- $this->save($this->lib->GetCookies($data));
- if(stristr($data, "This file no longer exists") || stristr($data, "The file is being transfered")) $this->error("dead", true, false, 2);
- preg_match('@\.file="(\w+)"@i', $data, $fid);
- preg_match('@\.filekey="([^"]+)"@i', $data, $fkey);
- $data = $this->lib->curl("http://www.novamov.com/api/player.api.php?user=undefined&codes=1&file={$fid[1]}&pass=undefined&key={$fkey[1]}", $this->lib->cookie, "");
- $data = $this->lib->cut_str($data, 'url=', '&title=');
- return trim(urldecode($data)."?client=FLASH");
- return false;
- }
-}
-
-/*
-* Open Source Project
-* Vinaget by ..::[H]::..
-* Version: 2.7.0
-* novamov.com Download Plugin by giaythuytinh176 [16.9.2013]
-* Downloader Class By [FZ]
-*/
-?>
+lib->curl($url, "", "");
+ $this->save($this->lib->GetCookies($data));
+ if(stristr($data, "This file no longer exists") || stristr($data, "The file is being transfered")) $this->error("dead", true, false, 2);
+ preg_match('@\.file="(\w+)"@i', $data, $fid);
+ preg_match('@\.filekey="([^"]+)"@i', $data, $fkey);
+ $data = $this->lib->curl("http://www.novamov.com/api/player.api.php?user=undefined&codes=1&file={$fid[1]}&pass=undefined&key={$fkey[1]}", $this->lib->cookie, "");
+ $data = $this->lib->cut_str($data, 'url=', '&title=');
+ return trim(urldecode($data)."?client=FLASH");
+ return false;
+ }
+}
+
+/*
+* Open Source Project
+* Vinaget by ..::[H]::..
+* Version: 2.7.0
+* novamov.com Download Plugin by giaythuytinh176 [16.9.2013]
+* Downloader Class By [FZ]
+*/
+?>
diff --git a/vinaget/vng270/hosts/nowdownload_ch.php b/hosts/nowdownload_ch.php
similarity index 97%
rename from vinaget/vng270/hosts/nowdownload_ch.php
rename to hosts/nowdownload_ch.php
index c16738d..d0644d2 100644
--- a/vinaget/vng270/hosts/nowdownload_ch.php
+++ b/hosts/nowdownload_ch.php
@@ -1,34 +1,34 @@
-lib->curl("http://www.nowdownload.ch/premium.php", $cookie, "");
- if(stristr($data, '>You are a premium user.')) return array(true, "Until ".$this->lib->cut_str($data, 'Your membership expires on', '. '));
- else if(stristr($data, 'nowdownload.ch/logout.php') && !stristr($data, '>You are a premium user.')) return array(false, "accfree");
- else return array(false, "accinvalid");
- }
-
- public function Login($user, $pass){
- $data = $this->lib->curl("http://www.nowdownload.ch/login.php", "", "user={$user}&pass={$pass}");
- return $this->lib->GetCookies($data);
- }
-
- public function Leech($url) {
- $data = $this->lib->curl($url, $this->lib->cookie, "");
- if(stristr($data, 'This file does not exist!')) $this->error("dead", true, false);
- elseif(stristr($data, 'The file is being transfered. Please wait!')) $this->error("The file is being transfered. Please wait!", true, false);
- elseif(preg_match('/>Click here/i', $data, $redir)) return trim($redir[1]);
- return false;
- }
-
-}
-
-/*
-* Open Source Project
-* Vinaget by ..::[H]::..
-* Version: 2.7.0
-* Nowdownload.ch Download Plugin by giaythuytinh176 [1.3.2014]
-* Downloader Class By [FZ]
-*/
+lib->curl("http://www.nowdownload.ch/premium.php", $cookie, "");
+ if(stristr($data, '>You are a premium user.')) return array(true, "Until ".$this->lib->cut_str($data, 'Your membership expires on', '. '));
+ else if(stristr($data, 'nowdownload.ch/logout.php') && !stristr($data, '>You are a premium user.')) return array(false, "accfree");
+ else return array(false, "accinvalid");
+ }
+
+ public function Login($user, $pass){
+ $data = $this->lib->curl("http://www.nowdownload.ch/login.php", "", "user={$user}&pass={$pass}");
+ return $this->lib->GetCookies($data);
+ }
+
+ public function Leech($url) {
+ $data = $this->lib->curl($url, $this->lib->cookie, "");
+ if(stristr($data, 'This file does not exist!')) $this->error("dead", true, false);
+ elseif(stristr($data, 'The file is being transfered. Please wait!')) $this->error("The file is being transfered. Please wait!", true, false);
+ elseif(preg_match('/>Click here/i', $data, $redir)) return trim($redir[1]);
+ return false;
+ }
+
+}
+
+/*
+* Open Source Project
+* Vinaget by ..::[H]::..
+* Version: 2.7.0
+* Nowdownload.ch Download Plugin by giaythuytinh176 [1.3.2014]
+* Downloader Class By [FZ]
+*/
?>
\ No newline at end of file
diff --git a/vinaget/vng270/hosts/oboom_com.php b/hosts/oboom_com.php
similarity index 97%
rename from vinaget/vng270/hosts/oboom_com.php
rename to hosts/oboom_com.php
index 62305ac..b822bf1 100644
--- a/vinaget/vng270/hosts/oboom_com.php
+++ b/hosts/oboom_com.php
@@ -1,146 +1,146 @@
-lib->curl('https://www.oboom.com/', 'lang=EN; ' .str_replace(':', '%3A', $cookie), '');
-
- if (preg_match('@premium_unix"\:([^,]+)@i', $data, $redir)) {
- if ($redir[1] == 'null') return array(false, "accfree");
- elseif (preg_match('@traffic"\:{"current"\:([^,]+),"increase"\:[^,]+,"last"\:[^,]+,"max"\:([^}]+)@i', $data, $redir2)) {
- if ($redir2[1] == 0 && $redir2[2] == 0) return array(false, "accfree");
- else return array(true, 'Until ' .date('H:i:s Y-m-d', $redir[1]). '
Traffic available: ' .round($redir2[1]/1073741824, 2). ' GB
Max: ' .round($redir2[2]/1073741824, 2). ' GB');
- }
- }
- else return array(false, "accinvalid");
- }
- */
- public function Login($user, $pass) {
- $mysalt = strrev($pass);
-
- $hash = $this->pbkdf2('sha1', $pass, $mysalt, 1000, 16);
-
- $page = $this->lib->curl('https://www.oboom.com/1/login', 'lang=EN', array('auth' => $user, 'pass' => $hash, 'source' => '/#app',), 0);
-
- $js = @json_decode($page, true);
-
- $cookie = 'user=' .urlencode($js[1]['cookie']). '; lang=EN; ';
- return $cookie;
- }
-
- public function Leech($link) {
-
- if (strpos($link, '#')) $link = str_replace('#', '', $link);
-
- if (!preg_match('@https?://(www.)?oboom\.com/([\w]{8})@i', $link, $id)) $this->error('Link invalid?.', true, false);
-
- $link = "https://www.oboom.com/$id[2]";
-
- $page = $this->lib->curl($link, 'lang=EN; ' .$this->lib->cookie, '');
-
- if (strpos($page, '400 Bad Request')) $this->error('Link invalid?.', true, false);
-
- if (preg_match('@ocation: (https?://(www\.)?oboom\.com/[^\r\n]+)@i', $page, $redir)) {
- $page = $this->lib->curl(trim($redir[1]), $this->lib->cookie, '');
- }
-
- if (preg_match('@ocation: (https?://[^\r\n]+)@i', $page, $redir2)) {
-
- $link = trim($redir2[1]);
-
- if (strpos($link, 'redirect=true')) {
- $page = $this->lib->curl($link, 'lang=EN; ' .$this->lib->cookie, '');
- if (preg_match('@ocation: (https?://[^\r\n]+)@i', $page, $redir3)) $link = trim($redir3[1]);
- if (strpos($link, '410,"abused"')) $this->error("Gone. The resource you requested is no longer available and will not come back.", true, false);
- if (strpos($link, '404,"item"')) $this->error("The requested file was not found.", true, false);
-
- if (strpos($link, '1/dlh?ticket')) return trim($link);
- else $this->error($this->lib->cut_str($link, '?e=[', '",'), true, false);
- }
- }
-
- if (!preg_match('@Session : "([^"]+)"@i', $page, $token)) $this->error("Token not found.", true, false);
-
- $page = $this->lib->curl('https://api.oboom.com/1/dl', $this->cookie, array('token' => $token[1], 'item' => $id[2],), 0);
-
- $json = @json_decode($page, true);
-
- if (isset($json[0]) && $json[0] == 200) {
- $link = trim('http://'.$json[1].'/1.0/dlh?ticket='.$json[2]);
- if (!preg_match('@https?://[\w]+\.oboom\.com/1\.0/dlh\?ticket=[^\r\n]+@i', $link, $dlink)) $this->error('Error: Download link not found?.', true, false);
- return trim($link);
- }
-
- if (isset($json[0]) && $json[0] != 200) $this->CheckErr($json[0]);
-
- return false;
- }
-
- private function CheckErr($code) {
- if (is_numeric($code)) {
- switch ($code) {
- default: $msg = '*No message for this error*';break;
- case 400: $msg = 'Bad request.';break;
- case 403: $msg = 'Access denied.';break;
- case 404: $msg = 'Resource not found.';break;
- case 409: $msg = 'Conflict.';break;
- case 410: $msg = 'Gone. The resource you requested is no longer available and will not come back.';break;
- case 413: $msg = 'Request entity too large.';break;
- case 421: $msg = 'Connection limit exceeded.';break;
- case 500: $msg = 'Internal server error.';break;
- case 503: $msg = 'The service is temporary not available.';break;
- case 507: $msg = 'At least one quota like storage space or item count reached.';break;
- case 509: $msg = 'Bandwidth limit exceeded.';break;
- }
- $this->error("[Error: $code] $msg.", true, false);
- }
- }
-
- private function pbkdf2($algorithm, $password, $salt, $count, $key_length, $raw_output = false)
- { //https://github.com/defuse/password-hashing/blob/master/PasswordHash.php
- $algorithm = strtolower($algorithm);
- if(!in_array($algorithm, hash_algos(), true))
- trigger_error('PBKDF2 ERROR: Invalid hash algorithm.', E_USER_ERROR);
- if($count <= 0 || $key_length <= 0)
- trigger_error('PBKDF2 ERROR: Invalid parameters.', E_USER_ERROR);
-
- if (function_exists("hash_pbkdf2")) {
- // The output length is in NIBBLES (4-bits) if $raw_output is false!
- if (!$raw_output) {
- $key_length = $key_length * 2;
- }
- return hash_pbkdf2($algorithm, $password, $salt, $count, $key_length, $raw_output);
- }
-
- $hash_length = strlen(hash($algorithm, "", true));
- $block_count = ceil($key_length / $hash_length);
-
- $output = "";
- for($i = 1; $i <= $block_count; $i++) {
- // $i encoded as 4 bytes, big endian.
- $last = $salt . pack("N", $i);
- // first iteration
- $last = $xorsum = hash_hmac($algorithm, $last, $password, true);
- // perform the other $count - 1 iterations
- for ($j = 1; $j < $count; $j++) {
- $xorsum ^= ($last = hash_hmac($algorithm, $last, $password, true));
- }
- $output .= $xorsum;
- }
-
- if($raw_output)
- return substr($output, 0, $key_length);
- else
- return bin2hex(substr($output, 0, $key_length));
- }
-
-}
-
-/*
-* Open Source Project
-* Vinaget by ..::[H]::..
-* Version: 2.7.0
-* Oboom.com Download Plugin by giaythuytinh176 [19-04-2014]
-* Downloader Class By [FZ]
-*/
+lib->curl('https://www.oboom.com/', 'lang=EN; ' .str_replace(':', '%3A', $cookie), '');
+
+ if (preg_match('@premium_unix"\:([^,]+)@i', $data, $redir)) {
+ if ($redir[1] == 'null') return array(false, "accfree");
+ elseif (preg_match('@traffic"\:{"current"\:([^,]+),"increase"\:[^,]+,"last"\:[^,]+,"max"\:([^}]+)@i', $data, $redir2)) {
+ if ($redir2[1] == 0 && $redir2[2] == 0) return array(false, "accfree");
+ else return array(true, 'Until ' .date('H:i:s Y-m-d', $redir[1]). '
Traffic available: ' .round($redir2[1]/1073741824, 2). ' GB
Max: ' .round($redir2[2]/1073741824, 2). ' GB');
+ }
+ }
+ else return array(false, "accinvalid");
+ }
+ */
+ public function Login($user, $pass) {
+ $mysalt = strrev($pass);
+
+ $hash = $this->pbkdf2('sha1', $pass, $mysalt, 1000, 16);
+
+ $page = $this->lib->curl('https://www.oboom.com/1/login', 'lang=EN', array('auth' => $user, 'pass' => $hash, 'source' => '/#app',), 0);
+
+ $js = @json_decode($page, true);
+
+ $cookie = 'user=' .urlencode($js[1]['cookie']). '; lang=EN; ';
+ return $cookie;
+ }
+
+ public function Leech($link) {
+
+ if (strpos($link, '#')) $link = str_replace('#', '', $link);
+
+ if (!preg_match('@https?://(www.)?oboom\.com/([\w]{8})@i', $link, $id)) $this->error('Link invalid?.', true, false);
+
+ $link = "https://www.oboom.com/$id[2]";
+
+ $page = $this->lib->curl($link, 'lang=EN; ' .$this->lib->cookie, '');
+
+ if (strpos($page, '400 Bad Request')) $this->error('Link invalid?.', true, false);
+
+ if (preg_match('@ocation: (https?://(www\.)?oboom\.com/[^\r\n]+)@i', $page, $redir)) {
+ $page = $this->lib->curl(trim($redir[1]), $this->lib->cookie, '');
+ }
+
+ if (preg_match('@ocation: (https?://[^\r\n]+)@i', $page, $redir2)) {
+
+ $link = trim($redir2[1]);
+
+ if (strpos($link, 'redirect=true')) {
+ $page = $this->lib->curl($link, 'lang=EN; ' .$this->lib->cookie, '');
+ if (preg_match('@ocation: (https?://[^\r\n]+)@i', $page, $redir3)) $link = trim($redir3[1]);
+ if (strpos($link, '410,"abused"')) $this->error("Gone. The resource you requested is no longer available and will not come back.", true, false);
+ if (strpos($link, '404,"item"')) $this->error("The requested file was not found.", true, false);
+
+ if (strpos($link, '1/dlh?ticket')) return trim($link);
+ else $this->error($this->lib->cut_str($link, '?e=[', '",'), true, false);
+ }
+ }
+
+ if (!preg_match('@Session : "([^"]+)"@i', $page, $token)) $this->error("Token not found.", true, false);
+
+ $page = $this->lib->curl('https://api.oboom.com/1/dl', $this->cookie, array('token' => $token[1], 'item' => $id[2],), 0);
+
+ $json = @json_decode($page, true);
+
+ if (isset($json[0]) && $json[0] == 200) {
+ $link = trim('http://'.$json[1].'/1.0/dlh?ticket='.$json[2]);
+ if (!preg_match('@https?://[\w]+\.oboom\.com/1\.0/dlh\?ticket=[^\r\n]+@i', $link, $dlink)) $this->error('Error: Download link not found?.', true, false);
+ return trim($link);
+ }
+
+ if (isset($json[0]) && $json[0] != 200) $this->CheckErr($json[0]);
+
+ return false;
+ }
+
+ private function CheckErr($code) {
+ if (is_numeric($code)) {
+ switch ($code) {
+ default: $msg = '*No message for this error*';break;
+ case 400: $msg = 'Bad request.';break;
+ case 403: $msg = 'Access denied.';break;
+ case 404: $msg = 'Resource not found.';break;
+ case 409: $msg = 'Conflict.';break;
+ case 410: $msg = 'Gone. The resource you requested is no longer available and will not come back.';break;
+ case 413: $msg = 'Request entity too large.';break;
+ case 421: $msg = 'Connection limit exceeded.';break;
+ case 500: $msg = 'Internal server error.';break;
+ case 503: $msg = 'The service is temporary not available.';break;
+ case 507: $msg = 'At least one quota like storage space or item count reached.';break;
+ case 509: $msg = 'Bandwidth limit exceeded.';break;
+ }
+ $this->error("[Error: $code] $msg.", true, false);
+ }
+ }
+
+ private function pbkdf2($algorithm, $password, $salt, $count, $key_length, $raw_output = false)
+ { //https://github.com/defuse/password-hashing/blob/master/PasswordHash.php
+ $algorithm = strtolower($algorithm);
+ if(!in_array($algorithm, hash_algos(), true))
+ trigger_error('PBKDF2 ERROR: Invalid hash algorithm.', E_USER_ERROR);
+ if($count <= 0 || $key_length <= 0)
+ trigger_error('PBKDF2 ERROR: Invalid parameters.', E_USER_ERROR);
+
+ if (function_exists("hash_pbkdf2")) {
+ // The output length is in NIBBLES (4-bits) if $raw_output is false!
+ if (!$raw_output) {
+ $key_length = $key_length * 2;
+ }
+ return hash_pbkdf2($algorithm, $password, $salt, $count, $key_length, $raw_output);
+ }
+
+ $hash_length = strlen(hash($algorithm, "", true));
+ $block_count = ceil($key_length / $hash_length);
+
+ $output = "";
+ for($i = 1; $i <= $block_count; $i++) {
+ // $i encoded as 4 bytes, big endian.
+ $last = $salt . pack("N", $i);
+ // first iteration
+ $last = $xorsum = hash_hmac($algorithm, $last, $password, true);
+ // perform the other $count - 1 iterations
+ for ($j = 1; $j < $count; $j++) {
+ $xorsum ^= ($last = hash_hmac($algorithm, $last, $password, true));
+ }
+ $output .= $xorsum;
+ }
+
+ if($raw_output)
+ return substr($output, 0, $key_length);
+ else
+ return bin2hex(substr($output, 0, $key_length));
+ }
+
+}
+
+/*
+* Open Source Project
+* Vinaget by ..::[H]::..
+* Version: 2.7.0
+* Oboom.com Download Plugin by giaythuytinh176 [19-04-2014]
+* Downloader Class By [FZ]
+*/
?>
\ No newline at end of file
diff --git a/vinaget/vng270/hosts/oteupload_com.php b/hosts/oteupload_com.php
similarity index 97%
rename from vinaget/vng270/hosts/oteupload_com.php
rename to hosts/oteupload_com.php
index 1e3148f..adc8efd 100644
--- a/vinaget/vng270/hosts/oteupload_com.php
+++ b/hosts/oteupload_com.php
@@ -1,49 +1,49 @@
-lib->curl("http://www.oteupload.com/my_account.php", "lang=english;{$cookie}", "");
- if(stristr($data, 'Your premium status runs out in:')) return array(true, "Until ".$this->lib->cut_str($data, 'Your premium status runs out in:
', '