/vinaget/vng262/checkaccount.php
PHP | 888 lines | 838 code | 1 blank | 49 comment | 122 complexity | d663af1ac93d7bcab247d430c8e916ea MD5 | raw file
- <?
- if (isset($_POST["check"])) {
- $check = false;
- #======================= begin check acc rapidsahare =======================#
- if($_POST["check"]== "RS"){
- if(count($obj->acc["rapidshare.com"]["accounts"])>0){
- echo '<table id="tableRS" class="filelist" align="left" cellpadding="3" cellspacing="1" width="100%">
- <tr class="flisttblhdr" valign="bottom">
- <td width="30%"><B>accounts rapidshare.com</B></td>
- <td width="15%"><b>Type</b></td>
- <td><b>Validity</b></td>
- <td width="20%"><b>Report</b></td>
- </tr>
- ';
- for($i = 0; $i < count($obj->acc["rapidshare.com"]["accounts"]); $i++){
- $account = $obj->acc["rapidshare.com"]["accounts"][$i];
- if (stristr($account,':')) {
- list($user, $pass) = explode(':', $account);
- $account = substr($account, 0, 5).'****';
- $type = "account";
- $data = $obj->curl("http://api.rapidshare.com/cgi-bin/rsapi.cgi","","sub=getaccountdetails&withcookie=1&withpublicid=1&login=".$user."&cbf=RSAPIDispatcher&cbid=2&password=".$pass);
- if(strpos($data,'Login failed')) {
- echo '<tr class="flistmouseoff" align="center">
- <td><B>'.$account.'</B></td><td>'.$type.'</td>
- <td id="unknownRS"><font color=#CCFF00><b>Login failed !!!</b></font></td>
- <td id="unknownRS"><font color=green><B>Removed</B></font></td></tr>';
- $delacc[] = $i;
- continue;
- }
- else $cookie = $obj->cut_str($data, "ncookie=","\\n");
- }
- else {
- $type = "cookie";
- $cookie = $account;
- $account = substr($account, 0, 15).'****';
- }
- $cookie = preg_replace("/(enc=|Enc=|ENC=)/","",$cookie);
- $data = $obj->curl("http://api.rapidshare.com/cgi-bin/rsapi.cgi","","sub=getaccountdetails&withcookie=1&withpublicid=1&withsession=1&cookie=".$cookie."&cbf=RSAPIDispatcher&cbid=1");
- if(strpos($data,'Login failed')) {
- echo '<tr class="flistmouseoff" align="center">
- <td><B>'.$account.'</B></td><td>'.$type.'</td>
- <td id="unknownRS"><font color=#CCFF00><b>Login failed !!!</b></font></td>
- <td id="unknownRS"><font color=green><B>Removed</B></font></td></tr>';
- $delacc[] = $i;
- }
- else{
- //Validity
- preg_match('/billeduntil=([0-9]+)/', $data, $matches);
- if ($matches[1]==0){
- echo '<tr class="flistmouseoff" align="center">
- <td><B>'.$account.'</B></td><td>'.$type.'</td>
- <td id="unknownRS"><b><font color=#666666>FREE ACC</font></b></td>
- <td id="unknownRS"><font color=green><B>Removed</B></font></b></td></tr>';
- $delacc[] = $i;
- }
- else {
- if (time() > $matches[1]) {
- echo '<tr class="flistmouseoff" align="center">
- <td><B>'.$account.'</B></td><td>'.$type.'</td>
- <td id="unknownRS"><font color=red><b><s>'.date('H:i:s Y-m-d',$matches[1]).'</s></b></font></td>
- <td id="unknownRS"><font color=#330099><B>Expired</B></font></td></tr>';
- $delacc[] = $i;
- }
- else{
- echo '<tr class="flistmouseoff" align="center">
- <td><B>'.$account.'</B></td><td>'.$type.'</td>
- <td id="unknownRS"><font color=red><b>'.date('H:i:s Y-m-d',$matches[1]).'</b></font></td>
- <td id="unknownRS"><font color=blue><B>Working</B></font></td></tr>';
- }
- }
- }
- }
- echo "</table>";
- $obj = new stream_get();
- if(isset($delacc)) {
- foreach ($delacc as $i) unset($obj->acc["rapidshare.com"]["accounts"][$i]);
- unset($delacc);
- $check = true;
- }
- }
- }
- #======================= end check acc rapidsahare =======================#
- ###########################################################################
- #======================= begin check acc megaupload ======================#
- elseif($_POST["check"]== "MU"){
- if(count($obj->acc["megaupload.com"]["accounts"])>0){
- echo '<table id="tableMU" class="filelist" align="left" cellpadding="3" cellspacing="1" width="100%">
- <tr class="flisttblhdr" valign="bottom">
- <td width="30%"><B>accounts megaupload.com</B></td>
- <td width="15%"><b>Type</b></td>
- <td><b>Validity</b></td>
- <td width="20%"><b>Report</b></td>
- </tr>
- ';
- for($i = 0; $i < count($obj->acc["megaupload.com"]["accounts"]); $i++){
- $account = $obj->acc["megaupload.com"]["accounts"][$i];
- if (stristr($account,':')) {
- list($user, $pass) = explode(':', $account);
- $account = substr($account, 0, 5).'****';
- $type = "account";
- $data = $obj->curl("http://www.megaupload.com/?c=account","","username=$user&password=$pass&login=1");
- if(strpos($data,"Username and password do not match. Please try again!")) {
- echo '<tr class="flistmouseoff" align="center">
- <td><B>'.$account.'</B></td><td>'.$type.'</td>
- <td id="unknownMU"><font color=#CCFF00><b>Login failed !!!</b></font></td>
- <td id="unknownMU"><font color=green><B>Removed</B></font></td></tr>';
- $delacc[] = $i;
- continue;
- }
- else {
- preg_match('/^Set-Cookie: (.*?);/m', $data, $matches);
- $cookie = $matches[1];
- }
- }
- else {
- $type = "cookie";
- $cookie = $account;
- $account = substr($account, 0, 15).'****';
- }
- $cookie = preg_replace("/(user=|USER=|User=)/","",$cookie);
- $data = $obj->curl("http://www.megaupload.com/?c=account","user=$cookie","");
- if(strpos($data,'Not a member yet?')) {
- echo '<tr class="flistmouseoff" align="center">
- <td><B>'.$account.'</B></td><td>'.$type.'</td>
- <td id="unknownMU"><font color=#CCFF00><b>Login failed !!!</b></font></td>
- <td id="unknownMU"><font color=green><B>Removed</B></font></td></tr>';
- $delacc[] = $i;
- }
- else{
- //Validity
- if(strpos($data,"Lifetime Platinum")) {
- echo '<tr class="flistmouseoff" align="center">
- <td><B>'.$account.'</B></td><td>'.$type.'</td>
- <td id="unknownMU"><B><font color=#FF3300>Lifetime Platinum</font></B></td>
- <td id="unknownMU"><font color=blue><B>Working</B></font></td></tr>';
- }
- elseif(strpos($data,"<b>Regular</b>")) {
- echo '<tr class="flistmouseoff" align="center">
- <td><B>'.$account.'</B></td><td>'.$type.'</td>
- <td id="unknownMU"><b><font color=#666666>FREE ACC</font></b></td>
- <td id="unknownMU"><font color=green><B>Removed</B></font></b></td></tr>';
- $delacc[] = $i;
- }
- elseif(preg_match('/([0-9]{1,4}+ (days|hours)) remaining/', $data, $matches)){
- echo '<tr class="flistmouseoff" align="center">
- <td><B>'.$account.'</B></td><td>'.$type.'</td>
- <td id="unknownMU"><font color=red><b>'.$matches[1].'</b></font></td>
- <td id="unknownMU"><font color=blue><B>Working</B></font></td></tr>';
- }
- else{
- echo '<tr class="flistmouseoff" align="center">
- <td><B>'.$account.'</B></td><td>'.$type.'</td>
- <td id="unknownMU">unknown</td>
- <td id="unknownMU">unknown</td></tr>';
- }
- }
- }
- echo "</table>";
- $obj = new stream_get();
- if(isset($delacc)) {
- foreach ($delacc as $i) unset($obj->acc["megaupload.com"]["accounts"][$i]);
- unset($delacc);
- $check = true;
- }
- }
- }
- #======================= end check acc megaupload ##======================#
- ###########################################################################
- #======================= begin check acc hotfile.com =====================#
- elseif($_POST["check"]== "HF"){
- if(count($obj->acc["hotfile.com"]["accounts"])>0){
- echo '<table id="tableHF" class="filelist" align="left" cellpadding="3" cellspacing="1" width="100%">
- <tr class="flisttblhdr" valign="bottom">
- <td width="30%"><B>accounts hotfile.com</B></td>
- <td width="15%"><b>Type</b></td>
- <td><b>Validity</b></td>
- <td width="20%"><b>Report</b></td>
- </tr>
- ';
- for($i = 0; $i < count($obj->acc["hotfile.com"]["accounts"]); $i++){
- $account = $obj->acc["hotfile.com"]["accounts"][$i];
- if (stristr($account,':')) {
- list($user, $pass) = explode(':', $account);
- $account = substr($account, 0, 5).'****';
- $type = "account";
- $data = $obj->curl("http://www.hotfile.com/login.php","","user=$user&pass=$pass");
- if(strpos($data,"Bad username/password combination")) {
- echo '<tr class="flistmouseoff" align="center">
- <td><B>'.$account.'</B></td><td>'.$type.'</td>
- <td id="unknownHF"><font color=#CCFF00><b>Login failed !!!</b></font></td>
- <td id="unknownHF"><font color=green><B>Removed</B></font></td></tr>';
- $delacc[] = $i;
- continue;
- }
- else {
- preg_match('/^Set-Cookie: auth=(.*?);/m', $data, $matches);
- $cookie = $matches[1];
- }
- }
- else {
- $type = "cookie";
- $cookie = $account;
- $account = substr($account, 0, 15).'****';
- }
- $cookie = preg_replace("/(auth=|AUTH=|Auth=)/","",$cookie);
- $ch = @curl_init();
- curl_setopt($ch, CURLOPT_URL, "http://hotfile.com/myaccount.html");
- curl_setopt($ch, CURLOPT_HEADER, 1);
- curl_setopt($ch, CURLOPT_COOKIE, "auth=$cookie");
- curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 5.1; rv:2.0.1) Gecko/20100101 Firefox/4.0.1');
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_TIMEOUT, 60);
- $data = curl_exec( $ch);
- curl_close($ch);
- if(strpos($data,'Location: http://hotfile.com/')) {
- echo '<tr class="flistmouseoff" align="center">
- <td><B>'.$account.'</B></td><td>'.$type.'</td>
- <td id="unknownHF"><font color=#CCFF00><b>Login failed !!!</b></font></td>
- <td id="unknownHF"><font color=green><B>Removed</B></font></td></tr>';
- $delacc[] = $i;
- }
- else{
- //Validity
- if(strpos($data,'<div class="centerSide"><p><span>Free</span>')) {
- echo '<tr class="flistmouseoff" align="center">
- <td><B>'.$account.'</B></td><td>'.$type.'</td>
- <td id="unknownHF"><b><font color=#666666>FREE ACC</font></b></td>
- <td id="unknownHF"><font color=green><B>Removed</B></font></b></td></tr>';
- $delacc[] = $i;
- }
- elseif(preg_match('%<p>Premium until: <span class="rightSide">(.+) <b>%U', $data, $matches)) {
- echo '<tr class="flistmouseoff" align="center">
- <td><B>'.$account.'</B></td><td>'.$type.'</td>
- <td id="unknownHF"><font color=red><b>'.$matches[1].'</b></font></td>
- <td id="unknownHF"><font color=blue><B>Working</B></font></td></tr>';
- }
- else{
- echo '<tr class="flistmouseoff" align="center">
- <td><B>'.$account.'</B></td><td>'.$type.'</td>
- <td id="unknownHF">unknown</td>
- <td id="unknownHF">unknown</td></tr>';
- }
- }
- }
- echo "</table>";
- $obj = new stream_get();
- if(isset($delacc)) {
- foreach ($delacc as $i) unset($obj->acc["hotfile.com"]["accounts"][$i]);
- unset($delacc);
- $check = true;
- }
- }
- }
- #======================= end check acc hotfile.com =======================#
- ###########################################################################
- #======================= begin check acc fileserve.com ===================#
- elseif($_POST["check"]== "FSV"){
- if(count($obj->acc["fileserve.com"]["accounts"])>0){
- echo '<table id="tableFSV" class="filelist" align="left" cellpadding="3" cellspacing="1" width="100%">
- <tr class="flisttblhdr" valign="bottom">
- <td width="30%"><B>accounts fileserve.com</B></td>
- <td width="15%"><b>Type</b></td>
- <td><b>Validity</b></td>
- <td width="20%"><b>Report</b></td>
- </tr>
- ';
- for($i = 0; $i < count($obj->acc["fileserve.com"]["accounts"]); $i++){
- $account = $obj->acc["fileserve.com"]["accounts"][$i];
- if (stristr($account,':')) {
- list($user, $pass) = explode(':', $account);
- $account = substr($account, 0, 5).'****';
- $type = "account";
- $data = $obj->curl("http://fileserve.com","","");
- $cookie = $obj->GetCookies($data);
- $post['loginUserName'] = $user;
- $post['loginUserPassword'] = $pass;
- $post['loginFormSubmit'] = "Login";
- $data = $obj->curl("http://www.fileserve.com/login.php",$cookie,$post);
- if(strpos($data,"You are not logged in")) {
- echo '<tr class="flistmouseoff" align="center">
- <td><B>'.$account.'</B></td><td>'.$type.'</td>
- <td id="unknownFSV"><font color=#CCFF00><b>Login failed !!!</b></font></td>
- <td id="unknownFSV"><font color=green><B>Removed</B></font></td></tr>';
- $delacc[] = $i;
- continue;
- }
- }
- else {
- $type = "cookie";
- $cookie = $account;
- $account = substr($account, 0, 15).'****';
- }
- $cookie = preg_replace("/(phpsessid=|Phpsessid=|PHPSESSID=)/","",$cookie);
- $data = $obj->curl("http://fileserve.com/dashboard.php","PHPSESSID=".$cookie,"");
- if(strpos($data,"Location: /signup.php")) {
- echo '<tr class="flistmouseoff" align="center">
- <td><B>'.$account.'</B></td><td>'.$type.'</td>
- <td id="unknownFSV"><font color=#CCFF00><b>Login failed !!!</b></font></td>
- <td id="unknownFSV"><font color=green><B>Removed</B></font></td></tr>';
- $delacc[] = $i;
- }
- else{
- //Validity
- if(strpos($data,'<h4>Account Type</h4></td> <td><h5 class="inline">Free </h5>')) {
- echo '<tr class="flistmouseoff" align="center">
- <td><B>'.$account.'</B></td><td>'.$type.'</td>
- <td id="unknownFSV"><b><font color=#666666>FREE ACC</font></b></td>
- <td id="unknownFSV"><font color=green><B>Removed</B></font></b></td></tr>';
- $delacc[] = $i;
- }
- elseif(strpos($data,'<td><h4>Premium Until</h4></td>')) {
- $Until = $obj->cut_str($data, "<td><h4>Premium Until</h4></td>", "</td>");
- preg_match('%<h5>(.*)</h5>%U', $Until, $matches);
- echo '<tr class="flistmouseoff" align="center">
- <td><B>'.$account.'</B></td><td>'.$type.'</td>
- <td id="unknownFSV"><font color=red><b>'.$matches[1].'</b></font></td>
- <td id="unknownFSV"><font color=blue><B>Working</B></font></td></tr>';
- }
- else {
- echo '<tr class="flistmouseoff" align="center">
- <td><B>'.$account.'</B></td><td>'.$type.'</td>
- <td id="unknownFSV">unknown</td>
- <td id="unknownFSV">unknown</td></tr>';
- }
- }
- }
- echo "</table>";
- $obj = new stream_get();
- if(isset($delacc)) {
- foreach ($delacc as $i) unset($obj->acc["fileserve.com"]["accounts"][$i]);
- unset($delacc);
- $check = true;
- }
- }
- }
- #======================= end check acc fileserve.com =====================#
- ###########################################################################
- #======================= begin check acc filesonic.com ===================#
- elseif($_POST["check"]== "FSN"){
- if(count($obj->acc["filesonic.com"]["accounts"])>0){
- echo '<table id="tableFSN" class="filelist" align="left" cellpadding="3" cellspacing="1" width="100%">
- <tr class="flisttblhdr" valign="bottom">
- <td width="30%"><B>accounts filesonic.com</B></td>
- <td width="15%"><b>Type</b></td>
- <td><b>Validity</b></td>
- <td width="20%"><b>Report</b></td>
- </tr>
- ';
- //==== Fix link FSN ====
- $url = "http://www.filesonic.com/";
- $data = $obj->curl($url,"","");
- if (preg_match('/ocation: (.*)/', $data, $fsnlink)) {
- $url = trim($fsnlink[1]);
- }
- $linkFSN= explode('/', $url);$urllogin = "http://".$linkFSN[2]."/user/login";
- //==== Fix link FSN ====
- for($i = 0; $i < count($obj->acc["filesonic.com"]["accounts"]); $i++){
- $account = $obj->acc["filesonic.com"]["accounts"][$i];
- if (stristr($account,':')) {
- list($user, $pass) = explode(':', $account);
- $account = substr($account, 0, 5).'****';
- $type = "account";
- $post["email"]= $user;
- $post["password"]= $pass;
- $page = $obj->curl($urllogin,"",$post);
- if(strpos($page,"Provided password does not match.")) {
- echo '<tr class="flistmouseoff" align="center">
- <td><B>'.$account.'</B></td><td>'.$type.'</td>
- <td id="unknownFSN"><font color=#CCFF00><b>Login failed !!!</b></font></td>
- <td id="unknownFSN"><font color=green><B>Removed</B></font></td></tr>';
- $delacc[] = $i;
- continue;
- }
- else {
- $cookies = $obj->GetCookies($page);
- $cookie = explode(" ", $cookies);
- $cookie = $cookie[3];
- }
- }
- else {
- $type = "cookie";
- $cookie = $account;
- $account = substr($account, 0, 15).'****';
- }
- $cookie = preg_replace("/(phpsessid=|Phpsessid=|PHPSESSID=)/","",$cookie);
- $data = $obj->curl($url."user/settings","PHPSESSID=".$cookie,"");
- if(strpos($data,"If you have forgotten your password")) {
- echo '<tr class="flistmouseoff" align="center">
- <td><B>'.$account.'</B></td><td>'.$type.'</td>
- <td id="unknownFSN"><font color=#CCFF00><b>Login failed !!!</b></font></td>
- <td id="unknownFSN"><font color=green><B>Removed</B></font></td></tr>';
- $delacc[] = $i;
- }
- else{
- //Validity
- if(strpos($data,'Upgrade to Premium')) {
- echo '<tr class="flistmouseoff" align="center">
- <td><B>'.$account.'</B></td><td>'.$type.'</td>
- <td id="unknownFSN"><b><font color=#666666>FREE ACC</font></b></td>
- <td id="unknownFSN"><font color=green><B>Removed</B></font></b></td></tr>';
- $delacc[] = $i;
- }
- elseif(strpos($data,"Never Expires")) {
- echo '<tr class="flistmouseoff" align="center">
- <td><B>'.$account.'</B></td><td>'.$type.'</td>
- <td id="unknownFSN"><B><font color=red>Never Expires</font></B></td>
- <td id="unknownFSN"><font color=blue><B>Working</B></font></td></tr>';
- }
- elseif(preg_match('%Pro Membership Valid Until\:</span> (.*)\,%U', $data, $matches)) {
- echo '<tr class="flistmouseoff" align="center">
- <td><B>'.$account.'</B></td><td>'.$type.'</td>
- <td id="unknownFSN"><font color=red><b>'.$matches[1].'</b></font></td>
- <td id="unknownFSN"><font color=blue><B>Working</B></font></td></tr>';
- }
- else {
- echo '<tr class="flistmouseoff" align="center">
- <td><B>'.$account.'</B></td><td>'.$type.'</td>
- <td id="unknownFSN">unknown</td>
- <td id="unknownFSN">unknown</td></tr>';
- }
- }
- }
- echo "</table>";
- $obj = new stream_get();
- if(isset($delacc)) {
- foreach ($delacc as $i) unset($obj->acc["filesonic.com"]["accounts"][$i]);
- unset($delacc);
- $check = true;
- }
- }
- }
- #======================= end check acc filesonic.com =====================#
- ###########################################################################
- #======================= begin check acc wupload.com =====================#
- elseif($_POST["check"]== "WU"){
- if(count($obj->acc["wupload.com"]["accounts"])>0){
- echo '<table id="tableWU" class="filelist" align="left" cellpadding="3" cellspacing="1" width="100%">
- <tr class="flisttblhdr" valign="bottom">
- <td width="30%"><B>accounts wupload.com</B></td>
- <td width="15%"><b>Type</b></td>
- <td><b>Validity</b></td>
- <td width="20%"><b>Report</b></td>
- </tr>
- ';
- //==== Fix link ====
- $url = "http://www.wupload.com/";
- $data = $obj->curl($url,"","");
- if (preg_match('/Location: (.*)/', $data, $fsnlink)) {
- $url = trim($fsnlink[1]);
- }
- $linkWU= explode('/', $url);$urllogin = "http://".$linkWU[2]."/account/login";
- //==== Fix link ====
- for($i = 0; $i < count($obj->acc["wupload.com"]["accounts"]); $i++){
- $account = $obj->acc["wupload.com"]["accounts"][$i];
- if (stristr($account,':')) {
- list($user, $pass) = explode(':', $account);
- $account = substr($account, 0, 5).'****';
- $type = "account";
- $page = $obj->curl($urllogin,"","email=$user&redirect=%2F&password=$pass");
- if(strpos($page,"No user found with such email")) {
- echo '<tr class="flistmouseoff" align="center">
- <td><B>'.$account.'</B></td><td>'.$type.'</td>
- <td id="unknownWU"><font color=#CCFF00><b>Login failed !!!</b></font></td>
- <td id="unknownWU"><font color=green><B>Removed</B></font></td></tr>';
- $delacc[] = $i;
- continue;
- }
- else {
- $cookie = $obj->GetCookies($page);
- preg_match('/lang=en; role=anonymous;(.*); PHPSESSID=(.*);/',$cookie,$temp);
- $cookie = $temp[2];
- }
- }
- else {
- $type = "cookie";
- $cookie = $account;
- $account = substr($account, 0, 15).'****';
- }
- $cookie = preg_replace("/(phpsessid=|Phpsessid=|PHPSESSID=)/","",$cookie);
- $data = $obj->curl("http://".$linkWU[2]."/account/settings","PHPSESSID=".$cookie,"");
- if(strpos($data,"remember your password and need to reset it")) {
- echo '<tr class="flistmouseoff" align="center">
- <td><B>'.$account.'</B></td><td>'.$type.'</td>
- <td id="unknownWU"><font color=#CCFF00><b>Login failed !!!</b></font></td>
- <td id="unknownWU"><font color=green><B>Removed</B></font></td></tr>';
- $delacc[] = $i;
- }
- else{
- //Validity
- if(strpos($data,'Upgrade to Premium')) {
- echo '<tr class="flistmouseoff" align="center">
- <td><B>'.$account.'</B></td><td>'.$type.'</td>
- <td id="unknownWU"><b><font color=#666666>FREE ACC</font></b></td>
- <td id="unknownWU"><font color=green><B>Removed</B></font></b></td></tr>';
- $delacc[] = $i;
- }
- elseif(preg_match("%<li>Premium Membership Valid Until\: <strong>(.*)</strong></li>%U", $data, $matches)) {
- echo '<tr class="flistmouseoff" align="center">
- <td><B>'.$account.'</B></td><td>'.$type.'</td>
- <td id="unknownWU"><font color=red><b>'.$matches[1].'</b></font></td>
- <td id="unknownWU"><font color=blue><B>Working</B></font></td></tr>';
- }
- else {
- echo '<tr class="flistmouseoff" align="center">
- <td><B>'.$account.'</B></td><td>'.$type.'</td>
- <td id="unknownWU">unknown</td>
- <td id="unknownWU">unknown</td></tr>';
- }
- }
- }
- echo "</table>";
- $obj = new stream_get();
- if(isset($delacc)) {
- foreach ($delacc as $i) unset($obj->acc["wupload.com"]["accounts"][$i]);
- unset($delacc);
- $check = true;
- }
- }
- }
- #======================= end check acc wupload.com =======================#
- ###########################################################################
- #======================= begin check acc real-debrid.com =================#
- elseif($_POST["check"]== "real"){
- if(count($obj->acc["real-debrid.com"]["accounts"])>0){
- echo '<table id="tablereal" class="filelist" align="left" cellpadding="3" cellspacing="1" width="100%">
- <tr class="flisttblhdr" valign="bottom">
- <td width="30%"><B>accounts real-debrid.com</B></td>
- <td width="15%"><b>Type</b></td>
- <td><b>Validity</b></td>
- <td width="20%"><b>Report</b></td>
- </tr>
- ';
- for($i = 0; $i < count($obj->acc["real-debrid.com"]["accounts"]); $i++){
- $account = $obj->acc["real-debrid.com"]["accounts"][$i];
- if (stristr($account,':')) {
- list($user, $pass) = explode(':', $account);
- $account = substr($account, 0, 5).'****';
- $type = "account";
- $data = $obj->curl("https://www.real-debrid.com/ajax/login.php?user=".urlencode($user)."&pass=".urlencode($pass),"","");
- if(strpos($data,"Your login informations are incorrect") || strpos($data,"Your account is not active or has been suspended")) {
- echo '<tr class="flistmouseoff" align="center">
- <td><B>'.$account.'</B></td><td>'.$type.'</td>
- <td id="unknownreal"><font color=#CCFF00><b>Login failed !!!</b></font></td>
- <td id="unknownreal"><font color=green><B>Removed</B></font></td></tr>';
- $delacc[] = $i;
- continue;
- }
- else {
- preg_match('%(auth=.+);%U', $data, $cook);
- $cookie = $cook[1];
- }
- }
- else {
- $type = "cookie";
- $cookie = $account;
- $account = substr($account, 0, 15).'****';
- }
- $cookie = preg_replace("/(auth=|AUTH=|Auth=)/","",$cookie);
- $data = $obj->curl("https://www.real-debrid.com","auth=".$cookie,"");
- if(strpos($data,'<a href="#login-box" rel="facebox">Login</a>')) {
- echo '<tr class="flistmouseoff" align="center">
- <td><B>'.$account.'</B></td><td>'.$type.'</td>
- <td id="unknownreal"><font color=#CCFF00><b>Login failed !!!</b></font></td>
- <td id="unknownreal"><font color=green><B>Removed</B></font></td></tr>';
- $delacc[] = $i;
- }
- else{
- //Validity
- if(strpos($data,'<strong>Free</strong>')) {
- echo '<tr class="flistmouseoff" align="center">
- <td><B>'.$account.'</B></td><td>'.$type.'</td>
- <td id="unknownreal"><b><font color=#666666>FREE ACC</font></b></td>
- <td id="unknownreal"><font color=green><B>Removed</B></font></b></td></tr>';
- $delacc[] = $i;
- }
- elseif(preg_match('%<strong>Premium:</strong> (.*) </div>%U', $data, $matches)) {
- echo '<tr class="flistmouseoff" align="center">
- <td><B>'.$account.'</B></td><td>'.$type.'</td>
- <td id="unknownreal"><font color=red><b>'.$matches[1].'</b></font></td>
- <td id="unknownreal"><font color=blue><B>Working</B></font></td></tr>';
- }
- else {
- echo '<tr class="flistmouseoff" align="center">
- <td><B>'.$account.'</B></td><td>'.$type.'</td>
- <td id="unknownreal">unknown</td>
- <td id="unknownreal">unknown</td></tr>';
- }
- }
- }
- echo "</table>";
- $obj = new stream_get();
- if(isset($delacc)) {
- foreach ($delacc as $i) unset($obj->acc["real-debrid.com"]["accounts"][$i]);
- unset($delacc);
- $check = true;
- }
- }
- }
- #======================= end check acc real-debrid.com ===================#
- ###########################################################################
- #======================= begin check acc alldebrid.com ===================#
- elseif($_POST["check"]== "alld"){
- if(count($obj->acc["alldebrid.com"]["accounts"])>0){
- echo '<table id="tablealld" class="filelist" align="left" cellpadding="3" cellspacing="1" width="100%">
- <tr class="flisttblhdr" valign="bottom">
- <td width="30%"><B>accounts alldebrid.com</B></td>
- <td width="15%"><b>Type</b></td>
- <td><b>Validity</b></td>
- <td width="20%"><b>Report</b></td>
- </tr>
- ';
- for($i = 0; $i < count($obj->acc["alldebrid.com"]["accounts"]); $i++){
- $account = $obj->acc["alldebrid.com"]["accounts"][$i];
- if (stristr($account,':')) {
- list($user, $pass) = explode(':', $account);
- $account = substr($account, 0, 5).'****';
- $type = "account";
- $data = $obj->curl("http://www.alldebrid.com/register/?action=login&returnpage=","","login_login=".urlencode($user)."&login_password=".urlencode($pass));
- if(strpos($data,"The password is not valid")) {
- echo '<tr class="flistmouseoff" align="center">
- <td><B>'.$account.'</B></td><td>'.$type.'</td>
- <td id="unknownalld"><font color=#CCFF00><b>Login failed !!!</b></font></td>
- <td id="unknownalld"><font color=green><B>Removed</B></font></td></tr>';
- $delacc[] = $i;
- continue;
- }
- else if(preg_match("%uid=(.*);%U", $data, $matches)) $cookie = $matches[1];
- }
- else {
- $type = "cookie";
- $cookie = $account;
- $account = substr($account, 0, 15).'****';
- }
- $cookie = preg_replace("/(uid=|UID=|Uid=)/","",$cookie);
- $data = $obj->curl("http://www.alldebrid.com/account/","uid=".$cookie,"");
- if(strpos($data,'Location')) {
- echo '<tr class="flistmouseoff" align="center">
- <td><B>'.$account.'</B></td><td>'.$type.'</td>
- <td id="unknownalld"><font color=#CCFF00><b>Login failed !!!</b></font></td>
- <td id="unknownalld"><font color=green><B>Removed</B></font></td></tr>';
- $delacc[] = $i;
- }
- else{
- //Validity
- if(strpos($data,'</strong>normal</li>')) {
- echo '<tr class="flistmouseoff" align="center">
- <td><B>'.$account.'</B></td><td>'.$type.'</td>
- <td id="unknownalld"><b><font color=#666666>FREE ACC</font></b></td>
- <td id="unknownalld"><font color=green><B>Removed</B></font></b></td></tr>';
- $delacc[] = $i;
- }
- elseif(strpos($data,'</strong>Premium</li>')) {
- preg_match("%<li><strong>You have now \: </strong>(.*) <%U", $data, $matches);
- echo '<tr class="flistmouseoff" align="center">
- <td><B>'.$account.'</B></td><td>'.$type.'</td>
- <td id="unknownalld"><font color=red><b>'.$matches[1].'</b></font></td>
- <td id="unknownalld"><font color=blue><B>Working</B></font></td></tr>';
- }
- else {
- echo '<tr class="flistmouseoff" align="center">
- <td><B>'.$account.'</B></td><td>'.$type.'</td>
- <td id="unknownalld">unknown</td>
- <td id="unknownalld">unknown</td></tr>';
- }
- }
- }
- echo "</table>";
- $obj = new stream_get();
- if(isset($delacc)) {
- foreach ($delacc as $i) unset($obj->acc["alldebrid.com"]["accounts"][$i]);
- unset($delacc);
- $check = true;
- }
- }
- }
- #======================= end check acc alldebrid.com =====================#
- if($check == true && is_array($obj->acc) && count($obj->acc) > 0) {
- $str = "<?php";
- $str .= "\n";
- $str .= "\n\$this->acc = array(";
- $str .= "\n";
- $str .= "# Example: 'accounts' => array('user:pass','cookie'),\n";
- $str .= "# Example with letitbit.net: 'accounts' => array('user:pass,cookie,prekey=xxxx'),\n";
- $str .= "\n";
- foreach ($obj->acc as $host => $accounts) {
- $str .= "\n '".$host."' => array(";
- $str .= "\n 'max_size' => ".($accounts['max_size']?$accounts['max_size']:1024).",";
- $str .= "\n 'accounts' => array(";
- foreach ($accounts['accounts'] as $acc) {
- $str .= "\"".$acc."\",";
- }
- $str .= "),";
- $str .= "\n ),";
- $str .= "\n";
- }
- $str .= "\n);";
- $str .= $obj->max_size_other_host ? "\n\$this->max_size_other_host = ".$obj->max_size_other_host.";" : "\n\$this->max_size_other_host = 1024;";
- $str .= "\n";
- $str .= "\n?>";
- $accountPath = "account.php";
- $CF = fopen ($accountPath, "w")
- or die('<CENTER><font color=red size=3>could not open file! Try to chmod the file "<B>account.php</B>" to 666</font></CENTER>');
- fwrite ($CF, $str)
- or die('<CENTER><font color=red size=3>could not write file! Try to chmod the file "<B>account.php</B>" to 666</font></CENTER>');
- fclose ($CF);
- @chmod($accountPath, 0666);
- }
- }
- else {
-
- echo '<div style="overflow: auto; height: auto; width: 800px;" align="left">';
- if(count($obj->acc["rapidshare.com"]["accounts"])>0){
- echo '<table id="tableRS" class="filelist" align="left" cellpadding="3" cellspacing="1" width="100%">
- <tr class="flisttblhdr" valign="bottom">
- <td width="30%"><B>accounts rapidshare.com</B></td>
- <td width="15%"><b>Type</b></td>
- <td><b>Validity</b></td>
- <td width="20%"><b>Report</b></td>
- </tr>
- ';
- for($i = 0; $i < count($obj->acc["rapidshare.com"]["accounts"]); $i++){
- $account = $obj->acc["rapidshare.com"]["accounts"][$i];
- if (stristr($account,':')) $type = "account";
- else $type = "cookie";
- $account = substr($account, 0, 5)."****";
- echo '<tr class="flistmouseoff" align="center"><td><B>'.$account.'</B></td><td>'.$type.'</td><td id="unknownRS">unknown</td><td id="unknownRS">unknown</td></tr>';
- }
- echo "</table>";
- echo "<a onclick=\"checkacc('RS');\" href=\"javascript:void(0)\" style='TEXT-DECORATION: none'><font color=#FF6600>Check accounts rapidshare.com >>></font></a><BR><BR>";
- $checkall = true;
- }
- if(count($obj->acc["megaupload.com"]["accounts"])>0){
- echo '<table id="tableMU" class="filelist" align="left" cellpadding="3" cellspacing="1" width="100%">
- <tr class="flisttblhdr" valign="bottom">
- <td width="30%"><B>accounts megaupload.com</B></td>
- <td width="15%"><b>Type</b></td>
- <td><b>Validity</b></td>
- <td width="20%"><b>Report</b></td>
- </tr>
- ';
- for($i = 0; $i < count($obj->acc["megaupload.com"]["accounts"]); $i++){
- $account = $obj->acc["megaupload.com"]["accounts"][$i];
- if (stristr($account,':')) $type = "account";
- else $type = "cookie";
- $account = substr($account, 0, 5)."****";
- echo '<tr class="flistmouseoff" align="center"><td><B>'.$account.'</B></td><td>'.$type.'</td><td id="unknownMU">unknown</td><td id="unknownMU">unknown</td></tr>';
- }
- echo "</table>";
- echo "<a onclick=\"checkacc('MU');\" href=\"javascript:void(0)\" style='TEXT-DECORATION: none'><font color=#FF6600>Check accounts megaupload.com >>></font></a><BR><BR>";
- $checkall = true;
- }
- if(count($obj->acc["hotfile.com"]["accounts"])>0){
- echo '<table id="tableHF" class="filelist" align="left" cellpadding="3" cellspacing="1" width="100%">
- <tr class="flisttblhdr" valign="bottom">
- <td width="30%"><B>accounts hotfile.com</B></td>
- <td width="15%"><b>Type</b></td>
- <td><b>Validity</b></td>
- <td width="20%"><b>Report</b></td>
- </tr>
- ';
- for($i = 0; $i < count($obj->acc["hotfile.com"]["accounts"]); $i++){
- $account = $obj->acc["hotfile.com"]["accounts"][$i];
- if (stristr($account,':')) $type = "account";
- else $type = "cookie";
- $account = substr($account, 0, 5)."****";
- echo '<tr class="flistmouseoff" align="center"><td><B>'.$account.'</B></td><td>'.$type.'</td><td id="unknownHF">unknown</td><td id="unknownHF">unknown</td></tr>';
- }
- echo "</table>";
- echo "<a onclick=\"checkacc('HF');\" href=\"javascript:void(0)\" style='TEXT-DECORATION: none'><font color=#FF6600>Check accounts hotfile.com >>></font></a><BR><BR>";
- $checkall = true;
- }
- if(count($obj->acc["fileserve.com"]["accounts"])>0){
- echo '<table id="tableFSV" class="filelist" align="left" cellpadding="3" cellspacing="1" width="100%">
- <tr class="flisttblhdr" valign="bottom">
- <td width="30%"><B>accounts fileserve.com</B></td>
- <td width="15%"><b>Type</b></td>
- <td><b>Validity</b></td>
- <td width="20%"><b>Report</b></td>
- </tr>
- ';
- for($i = 0; $i < count($obj->acc["fileserve.com"]["accounts"]); $i++){
- $account = $obj->acc["fileserve.com"]["accounts"][$i];
- if (stristr($account,':')) $type = "account";
- else $type = "cookie";
- $account = substr($account, 0, 5)."****";
- echo '<tr class="flistmouseoff" align="center"><td><B>'.$account.'</B></td><td>'.$type.'</td><td id="unknownFSV">unknown</td><td id="unknownFSV">unknown</td></tr>';
- }
- echo "</table>";
- echo "<a onclick=\"checkacc('FSV');\" href=\"javascript:void(0)\" style='TEXT-DECORATION: none'><font color=#FF6600>Check accounts fileserve.com >>></font></a><BR><BR>";
- $checkall = true;
- }
- if(count($obj->acc["filesonic.com"]["accounts"])>0){
- echo '<table id="tableFSN" class="filelist" align="left" cellpadding="3" cellspacing="1" width="100%">
- <tr class="flisttblhdr" valign="bottom">
- <td width="30%"><B>accounts filesonic.com</B></td>
- <td width="15%"><b>Type</b></td>
- <td><b>Validity</b></td>
- <td width="20%"><b>Report</b></td>
- </tr>
- ';
- for($i = 0; $i < count($obj->acc["filesonic.com"]["accounts"]); $i++){
- $account = $obj->acc["filesonic.com"]["accounts"][$i];
- if (stristr($account,':')) $type = "account";
- else $type = "cookie";
- $account = substr($account, 0, 5)."****";
- echo '<tr class="flistmouseoff" align="center"><td><B>'.$account.'</B></td><td>'.$type.'</td><td id="unknownFSN">unknown</td><td id="unknownFSN">unknown</td></tr>';
- }
- echo "</table>";
- echo "<a onclick=\"checkacc('FSN');\" href=\"javascript:void(0)\" style='TEXT-DECORATION: none'><font color=#FF6600>Check accounts filesonic.com >>></font></a><BR><BR>";
- $checkall = true;
- }
- if(count($obj->acc["wupload.com"]["accounts"])>0){
- echo '<table id="tableWU" class="filelist" align="left" cellpadding="3" cellspacing="1" width="100%">
- <tr class="flisttblhdr" valign="bottom">
- <td width="30%"><B>accounts wupload.com</B></td>
- <td width="15%"><b>Type</b></td>
- <td><b>Validity</b></td>
- <td width="20%"><b>Report</b></td>
- </tr>
- ';
- for($i = 0; $i < count($obj->acc["wupload.com"]["accounts"]); $i++){
- $account = $obj->acc["wupload.com"]["accounts"][$i];
- if (stristr($account,':')) $type = "account";
- else $type = "cookie";
- $account = substr($account, 0, 5)."****";
- echo '<tr class="flistmouseoff" align="center"><td><B>'.$account.'</B></td><td>'.$type.'</td><td id="unknownWU">unknown</td><td id="unknownWU">unknown</td></tr>';
- }
- echo "</table>";
- echo "<a onclick=\"checkacc('WU');\" href=\"javascript:void(0)\" style='TEXT-DECORATION: none'><font color=#FF6600>Check accounts wupload.com >>></font></a><BR><BR>";
- $checkall = true;
- }
- if(count($obj->acc["real-debrid.com"]["accounts"])>0){
- echo '<table id="tablereal" class="filelist" align="left" cellpadding="3" cellspacing="1" width="100%">
- <tr class="flisttblhdr" valign="bottom">
- <td width="30%"><B>accounts real-debrid.com</B></td>
- <td width="15%"><b>Type</b></td>
- <td><b>Validity</b></td>
- <td width="20%"><b>Report</b></td>
- </tr>
- ';
- for($i = 0; $i < count($obj->acc["real-debrid.com"]["accounts"]); $i++){
- $account = $obj->acc["real-debrid.com"]["accounts"][$i];
- if (stristr($account,':')) $type = "account";
- else $type = "cookie";
- $account = substr($account, 0, 5)."****";
- echo '<tr class="flistmouseoff" align="center"><td><B>'.$account.'</B></td><td>'.$type.'</td><td id="unknownreal">unknown</td><td id="unknownreal">unknown</td></tr>';
- }
- echo "</table>";
- echo "<a onclick=\"checkacc('real');\" href=\"javascript:void(0)\" style='TEXT-DECORATION: none'><font color=#FF6600>Check accounts real-debrid.com >>></font></a><BR><BR>";
- $checkall = true;
- }
- if(count($obj->acc["alldebrid.com"]["accounts"])>0){
- echo '<table id="tablealld" class="filelist" align="left" cellpadding="3" cellspacing="1" width="100%">
- <tr class="flisttblhdr" valign="bottom">
- <td width="30%"><B>accounts alldebrid.com</B></td>
- <td width="15%"><b>Type</b></td>
- <td><b>Validity</b></td>
- <td width="20%"><b>Report</b></td>
- </tr>
- ';
- for($i = 0; $i < count($obj->acc["alldebrid.com"]["accounts"]); $i++){
- $account = $obj->acc["alldebrid.com"]["accounts"][$i];
- if (stristr($account,':')) $type = "account";
- else $type = "cookie";
- $account = substr($account, 0, 5)."****";
- echo '<tr class="flistmouseoff" align="center"><td><B>'.$account.'</B></td><td>'.$type.'</td><td id="unknownalld">unknown</td><td id="unknownalld">unknown</td></tr>';
- }
- echo "</table>";
- echo "<a onclick=\"checkacc('alld');\" href=\"javascript:void(0)\" style='TEXT-DECORATION: none'><font color=#FF6600>Check accounts alldebrid.com >>></font></a></div>";
- $checkall = true;
- }
- if(isset($checkall)) echo '<p align="right"><input type=button onclick="checkacc(\'all\');" value="Check all accounts"></p>';
- }
- /*
- * Home page: http://vinaget.us
- * Blog: http://blog.vinaget.us
- * Script Name: Vinaget
- * Version: 2.6.2 (18.11.2011)
- * Description:
- - 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...
- - 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.
- * Code LeechViet by VinhNhaTrang
- * Developed by ..:: [H] ::..
-
- */
- ?>