Skip to content

Commit

Permalink
Add, fix plugin, support proxy like RL
Browse files Browse the repository at this point in the history
Add, fix plugin, support proxy like RL
  • Loading branch information
giaythuytinh176 committed May 9, 2015
1 parent 4f412a3 commit 7c9f45f
Show file tree
Hide file tree
Showing 324 changed files with 10,504 additions and 16,368 deletions.
120 changes: 60 additions & 60 deletions vinaget/vng270/.htaccess → .htaccess
@@ -1,60 +1,60 @@
Options -Indexes Options -Indexes
DirectoryIndex index.php index.html index.htm DirectoryIndex index.php index.html index.htm
<IfModule mod_rewrite.c> <IfModule mod_rewrite.c>
RewriteEngine on RewriteEngine on
#RewriteBase /; #RewriteBase /;
## Begin - Rewrite rules to block out some common exploits. ## Begin - Rewrite rules to block out some common exploits.
# Block out any script trying to base64_encode data within the URL. # Block out any script trying to base64_encode data within the URL.
RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR] RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]
# Block out any script that includes a <script> tag in URL. # Block out any script that includes a <script> tag in URL.
RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%3E) [NC,OR] RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL. # Block out any script trying to set a PHP GLOBALS variable via URL.
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR] RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL. # Block out any script trying to modify a _REQUEST variable via URL.
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2}) RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Return 403 Forbidden header and show the content of the root homepage # Return 403 Forbidden header and show the content of the root homepage
RewriteRule .* index.php [F] RewriteRule .* index.php [F]
# #
## End - Rewrite rules to block out some common exploits. ## End - Rewrite rules to block out some common exploits.


## Begin ## Begin
# #
RewriteCond %{REQUEST_URI} !^/index\.php RewriteCond %{REQUEST_URI} !^/index\.php
RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/(.*)/ index.php?file=$2 [L] RewriteRule ^(.*)/(.*)/ index.php?file=$2 [L]
# #
## End ## End
</IfModule> </IfModule>


<files ~ "\.(php|php.*|sphp|php3|php4|php5|phtml|cgi|pl|shtml|dhtml|html|htm|txt|dat)$"> <files ~ "\.(php|php.*|sphp|php3|php4|php5|phtml|cgi|pl|shtml|dhtml|html|htm|txt|dat)$">
deny from all deny from all
</files> </files>


<files add.php> <files add.php>
allow from all allow from all
</files> </files>


<files index.php> <files index.php>
allow from all allow from all
</files> </files>


<files login.php> <files login.php>
allow from all allow from all
</files> </files>


<files debug.php> <files debug.php>
allow from all allow from all
</files> </files>


<files proccess.php> <files proccess.php>
allow from all allow from all
</files> </files>


<files log.txt> <files log.txt>
deny from all deny from all
</files> </files>


<files ~ "^\."> <files ~ "^\.">
deny from all deny from all
</files> </files>
136 changes: 68 additions & 68 deletions vinaget/vng270/add.php → add.php
@@ -1,69 +1,69 @@
<?php <?php
error_reporting (E_ALL); error_reporting (E_ALL);
define('vinaget', 'yes'); define('vinaget', 'yes');
include("class.php"); include("class.php");
function check_account($host,$account){ function check_account($host,$account){
global $obj; global $obj;
if(empty($obj->acc[$host]['accounts'])) return false; if(empty($obj->acc[$host]['accounts'])) return false;
foreach ($obj->acc[$host]['accounts'] as $value) if ($account == $value) return true; foreach ($obj->acc[$host]['accounts'] as $value) if ($account == $value) return true;
return false; return false;
} }
if (!empty($_POST["accounts"])) { if (!empty($_POST["accounts"])) {
$obj = new stream_get(); $obj = new stream_get();
$type = $_POST['type']; $type = $_POST['type'];
$_POST["accounts"] = str_replace(" ","",$_POST["accounts"]); $_POST["accounts"] = str_replace(" ","",$_POST["accounts"]);
$account = trim($_POST['accounts']); $account = trim($_POST['accounts']);
$donate = false; $donate = false;
if(check_account($type,$account)) die("false duplicate"); if(check_account($type,$account)) die("false duplicate");
require_once ('hosts/' . $obj->list_host[$type]['file']); require_once ('hosts/' . $obj->list_host[$type]['file']);
$download = new $obj->list_host[$type]['class']($obj, $type); $download = new $obj->list_host[$type]['class']($obj, $type);
if($download->lib->acc[$download->site]['proxy'] != "") $download->lib->proxy = $download->lib->acc[$download->site]['proxy']; if($download->lib->acc[$download->site]['proxy'] != "") $download->lib->proxy = $download->lib->acc[$download->site]['proxy'];
if(method_exists($download, "CheckAcc")) { if(method_exists($download, "CheckAcc")) {
if (strpos($account, ":")) { if (strpos($account, ":")) {
list($user, $pass) = explode(':',$account); list($user, $pass) = explode(':',$account);
$cookie = $download->Login($user, $pass); $cookie = $download->Login($user, $pass);
} }
else $cookie = $account; else $cookie = $account;
$status = $download->CheckAcc($cookie); $status = $download->CheckAcc($cookie);
if($status[0]) { if($status[0]) {
echo "true"; echo "true";
$update = true; $update = true;
if(empty($obj->acc[$type])){ if(empty($obj->acc[$type])){
$obj->acc[$type]['max_size'] = $obj->max_size_default; $obj->acc[$type]['max_size'] = $obj->max_size_default;
$obj->acc[$type]['proxy'] = ""; $obj->acc[$type]['proxy'] = "";
$obj->acc[$type]['direct'] = false; $obj->acc[$type]['direct'] = false;
} }
$obj->acc[$type]['accounts'][] = $account; $obj->acc[$type]['accounts'][] = $account;
$download->save($cookie); $download->save($cookie);
} }
else { else {
echo "false {$status[1]}"; echo "false {$status[1]}";
$update = false; $update = false;
} }
} }
else { else {
echo "false plugin fail"; echo "false plugin fail";
$update = false; $update = false;
} }
################################## save account ############################################################################# ################################## save account #############################################################################
if($update == true && is_array($obj->acc) && count($obj->acc) > 0){ if($update == true && is_array($obj->acc) && count($obj->acc) > 0){
$obj->save_json($obj->fileaccount, $obj->acc); $obj->save_json($obj->fileaccount, $obj->acc);
} }
################################## savve account ############################################################################# ################################## savve account #############################################################################


} }
/* /*
* Home page: http://vinaget.us * Home page: http://vinaget.us
* Blog: http://blog.vinaget.us * Blog: http://blog.vinaget.us
* Script Name: Vinaget * Script Name: Vinaget
* Version: 2.6.3 * Version: 2.6.3
* Description: * Description:
- Vinaget is script generator premium link that allows you to download files instantly and at the best of your Internet speed. - Vinaget is script generator premium link that allows you to download files instantly and at the best of your Internet speed.
- Vinaget is your personal proxy host protecting your real IP to download files hosted on hosters like RapidShare, megaupload, hotfile... - Vinaget is your personal proxy host protecting your real IP to download files hosted on hosters like RapidShare, megaupload, hotfile...
- You can now download files with full resume support from filehosts using download managers like IDM etc - You can now download files with full resume support from filehosts using download managers like IDM etc
- Vinaget is a Free Open Source, supported by a growing community. - Vinaget is a Free Open Source, supported by a growing community.
* Code LeechViet by VinhNhaTrang * Code LeechViet by VinhNhaTrang
* Developed by ..:: [H] ::.. * Developed by ..:: [H] ::..
*/ */
?> ?>

0 comments on commit 7c9f45f

Please sign in to comment.