PageRenderTime 56ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 0ms

/vinaget/vng262/checkaccount.php

http://vinaget-script.googlecode.com/
PHP | 888 lines | 838 code | 1 blank | 49 comment | 122 complexity | d663af1ac93d7bcab247d430c8e916ea MD5 | raw file
  1. <?
  2. if (isset($_POST["check"])) {
  3. $check = false;
  4. #======================= begin check acc rapidsahare =======================#
  5. if($_POST["check"]== "RS"){
  6. if(count($obj->acc["rapidshare.com"]["accounts"])>0){
  7. echo '<table id="tableRS" class="filelist" align="left" cellpadding="3" cellspacing="1" width="100%">
  8. <tr class="flisttblhdr" valign="bottom">
  9. <td width="30%"><B>accounts rapidshare.com</B></td>
  10. <td width="15%"><b>Type</b></td>
  11. <td><b>Validity</b></td>
  12. <td width="20%"><b>Report</b></td>
  13. </tr>
  14. ';
  15. for($i = 0; $i < count($obj->acc["rapidshare.com"]["accounts"]); $i++){
  16. $account = $obj->acc["rapidshare.com"]["accounts"][$i];
  17. if (stristr($account,':')) {
  18. list($user, $pass) = explode(':', $account);
  19. $account = substr($account, 0, 5).'****';
  20. $type = "account";
  21. $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);
  22. if(strpos($data,'Login failed')) {
  23. echo '<tr class="flistmouseoff" align="center">
  24. <td><B>'.$account.'</B></td><td>'.$type.'</td>
  25. <td id="unknownRS"><font color=#CCFF00><b>Login failed !!!</b></font></td>
  26. <td id="unknownRS"><font color=green><B>Removed</B></font></td></tr>';
  27. $delacc[] = $i;
  28. continue;
  29. }
  30. else $cookie = $obj->cut_str($data, "ncookie=","\\n");
  31. }
  32. else {
  33. $type = "cookie";
  34. $cookie = $account;
  35. $account = substr($account, 0, 15).'****';
  36. }
  37. $cookie = preg_replace("/(enc=|Enc=|ENC=)/","",$cookie);
  38. $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");
  39. if(strpos($data,'Login failed')) {
  40. echo '<tr class="flistmouseoff" align="center">
  41. <td><B>'.$account.'</B></td><td>'.$type.'</td>
  42. <td id="unknownRS"><font color=#CCFF00><b>Login failed !!!</b></font></td>
  43. <td id="unknownRS"><font color=green><B>Removed</B></font></td></tr>';
  44. $delacc[] = $i;
  45. }
  46. else{
  47. //Validity
  48. preg_match('/billeduntil=([0-9]+)/', $data, $matches);
  49. if ($matches[1]==0){
  50. echo '<tr class="flistmouseoff" align="center">
  51. <td><B>'.$account.'</B></td><td>'.$type.'</td>
  52. <td id="unknownRS"><b><font color=#666666>FREE ACC</font></b></td>
  53. <td id="unknownRS"><font color=green><B>Removed</B></font></b></td></tr>';
  54. $delacc[] = $i;
  55. }
  56. else {
  57. if (time() > $matches[1]) {
  58. echo '<tr class="flistmouseoff" align="center">
  59. <td><B>'.$account.'</B></td><td>'.$type.'</td>
  60. <td id="unknownRS"><font color=red><b><s>'.date('H:i:s Y-m-d',$matches[1]).'</s></b></font></td>
  61. <td id="unknownRS"><font color=#330099><B>Expired</B></font></td></tr>';
  62. $delacc[] = $i;
  63. }
  64. else{
  65. echo '<tr class="flistmouseoff" align="center">
  66. <td><B>'.$account.'</B></td><td>'.$type.'</td>
  67. <td id="unknownRS"><font color=red><b>'.date('H:i:s Y-m-d',$matches[1]).'</b></font></td>
  68. <td id="unknownRS"><font color=blue><B>Working</B></font></td></tr>';
  69. }
  70. }
  71. }
  72. }
  73. echo "</table>";
  74. $obj = new stream_get();
  75. if(isset($delacc)) {
  76. foreach ($delacc as $i) unset($obj->acc["rapidshare.com"]["accounts"][$i]);
  77. unset($delacc);
  78. $check = true;
  79. }
  80. }
  81. }
  82. #======================= end check acc rapidsahare =======================#
  83. ###########################################################################
  84. #======================= begin check acc megaupload ======================#
  85. elseif($_POST["check"]== "MU"){
  86. if(count($obj->acc["megaupload.com"]["accounts"])>0){
  87. echo '<table id="tableMU" class="filelist" align="left" cellpadding="3" cellspacing="1" width="100%">
  88. <tr class="flisttblhdr" valign="bottom">
  89. <td width="30%"><B>accounts megaupload.com</B></td>
  90. <td width="15%"><b>Type</b></td>
  91. <td><b>Validity</b></td>
  92. <td width="20%"><b>Report</b></td>
  93. </tr>
  94. ';
  95. for($i = 0; $i < count($obj->acc["megaupload.com"]["accounts"]); $i++){
  96. $account = $obj->acc["megaupload.com"]["accounts"][$i];
  97. if (stristr($account,':')) {
  98. list($user, $pass) = explode(':', $account);
  99. $account = substr($account, 0, 5).'****';
  100. $type = "account";
  101. $data = $obj->curl("http://www.megaupload.com/?c=account","","username=$user&password=$pass&login=1");
  102. if(strpos($data,"Username and password do not match. Please try again!")) {
  103. echo '<tr class="flistmouseoff" align="center">
  104. <td><B>'.$account.'</B></td><td>'.$type.'</td>
  105. <td id="unknownMU"><font color=#CCFF00><b>Login failed !!!</b></font></td>
  106. <td id="unknownMU"><font color=green><B>Removed</B></font></td></tr>';
  107. $delacc[] = $i;
  108. continue;
  109. }
  110. else {
  111. preg_match('/^Set-Cookie: (.*?);/m', $data, $matches);
  112. $cookie = $matches[1];
  113. }
  114. }
  115. else {
  116. $type = "cookie";
  117. $cookie = $account;
  118. $account = substr($account, 0, 15).'****';
  119. }
  120. $cookie = preg_replace("/(user=|USER=|User=)/","",$cookie);
  121. $data = $obj->curl("http://www.megaupload.com/?c=account","user=$cookie","");
  122. if(strpos($data,'Not a member yet?')) {
  123. echo '<tr class="flistmouseoff" align="center">
  124. <td><B>'.$account.'</B></td><td>'.$type.'</td>
  125. <td id="unknownMU"><font color=#CCFF00><b>Login failed !!!</b></font></td>
  126. <td id="unknownMU"><font color=green><B>Removed</B></font></td></tr>';
  127. $delacc[] = $i;
  128. }
  129. else{
  130. //Validity
  131. if(strpos($data,"Lifetime Platinum")) {
  132. echo '<tr class="flistmouseoff" align="center">
  133. <td><B>'.$account.'</B></td><td>'.$type.'</td>
  134. <td id="unknownMU"><B><font color=#FF3300>Lifetime Platinum</font></B></td>
  135. <td id="unknownMU"><font color=blue><B>Working</B></font></td></tr>';
  136. }
  137. elseif(strpos($data,"<b>Regular</b>")) {
  138. echo '<tr class="flistmouseoff" align="center">
  139. <td><B>'.$account.'</B></td><td>'.$type.'</td>
  140. <td id="unknownMU"><b><font color=#666666>FREE ACC</font></b></td>
  141. <td id="unknownMU"><font color=green><B>Removed</B></font></b></td></tr>';
  142. $delacc[] = $i;
  143. }
  144. elseif(preg_match('/([0-9]{1,4}+ (days|hours)) remaining/', $data, $matches)){
  145. echo '<tr class="flistmouseoff" align="center">
  146. <td><B>'.$account.'</B></td><td>'.$type.'</td>
  147. <td id="unknownMU"><font color=red><b>'.$matches[1].'</b></font></td>
  148. <td id="unknownMU"><font color=blue><B>Working</B></font></td></tr>';
  149. }
  150. else{
  151. echo '<tr class="flistmouseoff" align="center">
  152. <td><B>'.$account.'</B></td><td>'.$type.'</td>
  153. <td id="unknownMU">unknown</td>
  154. <td id="unknownMU">unknown</td></tr>';
  155. }
  156. }
  157. }
  158. echo "</table>";
  159. $obj = new stream_get();
  160. if(isset($delacc)) {
  161. foreach ($delacc as $i) unset($obj->acc["megaupload.com"]["accounts"][$i]);
  162. unset($delacc);
  163. $check = true;
  164. }
  165. }
  166. }
  167. #======================= end check acc megaupload ##======================#
  168. ###########################################################################
  169. #======================= begin check acc hotfile.com =====================#
  170. elseif($_POST["check"]== "HF"){
  171. if(count($obj->acc["hotfile.com"]["accounts"])>0){
  172. echo '<table id="tableHF" class="filelist" align="left" cellpadding="3" cellspacing="1" width="100%">
  173. <tr class="flisttblhdr" valign="bottom">
  174. <td width="30%"><B>accounts hotfile.com</B></td>
  175. <td width="15%"><b>Type</b></td>
  176. <td><b>Validity</b></td>
  177. <td width="20%"><b>Report</b></td>
  178. </tr>
  179. ';
  180. for($i = 0; $i < count($obj->acc["hotfile.com"]["accounts"]); $i++){
  181. $account = $obj->acc["hotfile.com"]["accounts"][$i];
  182. if (stristr($account,':')) {
  183. list($user, $pass) = explode(':', $account);
  184. $account = substr($account, 0, 5).'****';
  185. $type = "account";
  186. $data = $obj->curl("http://www.hotfile.com/login.php","","user=$user&pass=$pass");
  187. if(strpos($data,"Bad username/password combination")) {
  188. echo '<tr class="flistmouseoff" align="center">
  189. <td><B>'.$account.'</B></td><td>'.$type.'</td>
  190. <td id="unknownHF"><font color=#CCFF00><b>Login failed !!!</b></font></td>
  191. <td id="unknownHF"><font color=green><B>Removed</B></font></td></tr>';
  192. $delacc[] = $i;
  193. continue;
  194. }
  195. else {
  196. preg_match('/^Set-Cookie: auth=(.*?);/m', $data, $matches);
  197. $cookie = $matches[1];
  198. }
  199. }
  200. else {
  201. $type = "cookie";
  202. $cookie = $account;
  203. $account = substr($account, 0, 15).'****';
  204. }
  205. $cookie = preg_replace("/(auth=|AUTH=|Auth=)/","",$cookie);
  206. $ch = @curl_init();
  207. curl_setopt($ch, CURLOPT_URL, "http://hotfile.com/myaccount.html");
  208. curl_setopt($ch, CURLOPT_HEADER, 1);
  209. curl_setopt($ch, CURLOPT_COOKIE, "auth=$cookie");
  210. curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 5.1; rv:2.0.1) Gecko/20100101 Firefox/4.0.1');
  211. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  212. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  213. $data = curl_exec( $ch);
  214. curl_close($ch);
  215. if(strpos($data,'Location: http://hotfile.com/')) {
  216. echo '<tr class="flistmouseoff" align="center">
  217. <td><B>'.$account.'</B></td><td>'.$type.'</td>
  218. <td id="unknownHF"><font color=#CCFF00><b>Login failed !!!</b></font></td>
  219. <td id="unknownHF"><font color=green><B>Removed</B></font></td></tr>';
  220. $delacc[] = $i;
  221. }
  222. else{
  223. //Validity
  224. if(strpos($data,'<div class="centerSide"><p><span>Free</span>')) {
  225. echo '<tr class="flistmouseoff" align="center">
  226. <td><B>'.$account.'</B></td><td>'.$type.'</td>
  227. <td id="unknownHF"><b><font color=#666666>FREE ACC</font></b></td>
  228. <td id="unknownHF"><font color=green><B>Removed</B></font></b></td></tr>';
  229. $delacc[] = $i;
  230. }
  231. elseif(preg_match('%<p>Premium until: <span class="rightSide">(.+) <b>%U', $data, $matches)) {
  232. echo '<tr class="flistmouseoff" align="center">
  233. <td><B>'.$account.'</B></td><td>'.$type.'</td>
  234. <td id="unknownHF"><font color=red><b>'.$matches[1].'</b></font></td>
  235. <td id="unknownHF"><font color=blue><B>Working</B></font></td></tr>';
  236. }
  237. else{
  238. echo '<tr class="flistmouseoff" align="center">
  239. <td><B>'.$account.'</B></td><td>'.$type.'</td>
  240. <td id="unknownHF">unknown</td>
  241. <td id="unknownHF">unknown</td></tr>';
  242. }
  243. }
  244. }
  245. echo "</table>";
  246. $obj = new stream_get();
  247. if(isset($delacc)) {
  248. foreach ($delacc as $i) unset($obj->acc["hotfile.com"]["accounts"][$i]);
  249. unset($delacc);
  250. $check = true;
  251. }
  252. }
  253. }
  254. #======================= end check acc hotfile.com =======================#
  255. ###########################################################################
  256. #======================= begin check acc fileserve.com ===================#
  257. elseif($_POST["check"]== "FSV"){
  258. if(count($obj->acc["fileserve.com"]["accounts"])>0){
  259. echo '<table id="tableFSV" class="filelist" align="left" cellpadding="3" cellspacing="1" width="100%">
  260. <tr class="flisttblhdr" valign="bottom">
  261. <td width="30%"><B>accounts fileserve.com</B></td>
  262. <td width="15%"><b>Type</b></td>
  263. <td><b>Validity</b></td>
  264. <td width="20%"><b>Report</b></td>
  265. </tr>
  266. ';
  267. for($i = 0; $i < count($obj->acc["fileserve.com"]["accounts"]); $i++){
  268. $account = $obj->acc["fileserve.com"]["accounts"][$i];
  269. if (stristr($account,':')) {
  270. list($user, $pass) = explode(':', $account);
  271. $account = substr($account, 0, 5).'****';
  272. $type = "account";
  273. $data = $obj->curl("http://fileserve.com","","");
  274. $cookie = $obj->GetCookies($data);
  275. $post['loginUserName'] = $user;
  276. $post['loginUserPassword'] = $pass;
  277. $post['loginFormSubmit'] = "Login";
  278. $data = $obj->curl("http://www.fileserve.com/login.php",$cookie,$post);
  279. if(strpos($data,"You are not logged in")) {
  280. echo '<tr class="flistmouseoff" align="center">
  281. <td><B>'.$account.'</B></td><td>'.$type.'</td>
  282. <td id="unknownFSV"><font color=#CCFF00><b>Login failed !!!</b></font></td>
  283. <td id="unknownFSV"><font color=green><B>Removed</B></font></td></tr>';
  284. $delacc[] = $i;
  285. continue;
  286. }
  287. }
  288. else {
  289. $type = "cookie";
  290. $cookie = $account;
  291. $account = substr($account, 0, 15).'****';
  292. }
  293. $cookie = preg_replace("/(phpsessid=|Phpsessid=|PHPSESSID=)/","",$cookie);
  294. $data = $obj->curl("http://fileserve.com/dashboard.php","PHPSESSID=".$cookie,"");
  295. if(strpos($data,"Location: /signup.php")) {
  296. echo '<tr class="flistmouseoff" align="center">
  297. <td><B>'.$account.'</B></td><td>'.$type.'</td>
  298. <td id="unknownFSV"><font color=#CCFF00><b>Login failed !!!</b></font></td>
  299. <td id="unknownFSV"><font color=green><B>Removed</B></font></td></tr>';
  300. $delacc[] = $i;
  301. }
  302. else{
  303. //Validity
  304. if(strpos($data,'<h4>Account Type</h4></td> <td><h5 class="inline">Free </h5>')) {
  305. echo '<tr class="flistmouseoff" align="center">
  306. <td><B>'.$account.'</B></td><td>'.$type.'</td>
  307. <td id="unknownFSV"><b><font color=#666666>FREE ACC</font></b></td>
  308. <td id="unknownFSV"><font color=green><B>Removed</B></font></b></td></tr>';
  309. $delacc[] = $i;
  310. }
  311. elseif(strpos($data,'<td><h4>Premium Until</h4></td>')) {
  312. $Until = $obj->cut_str($data, "<td><h4>Premium Until</h4></td>", "</td>");
  313. preg_match('%<h5>(.*)</h5>%U', $Until, $matches);
  314. echo '<tr class="flistmouseoff" align="center">
  315. <td><B>'.$account.'</B></td><td>'.$type.'</td>
  316. <td id="unknownFSV"><font color=red><b>'.$matches[1].'</b></font></td>
  317. <td id="unknownFSV"><font color=blue><B>Working</B></font></td></tr>';
  318. }
  319. else {
  320. echo '<tr class="flistmouseoff" align="center">
  321. <td><B>'.$account.'</B></td><td>'.$type.'</td>
  322. <td id="unknownFSV">unknown</td>
  323. <td id="unknownFSV">unknown</td></tr>';
  324. }
  325. }
  326. }
  327. echo "</table>";
  328. $obj = new stream_get();
  329. if(isset($delacc)) {
  330. foreach ($delacc as $i) unset($obj->acc["fileserve.com"]["accounts"][$i]);
  331. unset($delacc);
  332. $check = true;
  333. }
  334. }
  335. }
  336. #======================= end check acc fileserve.com =====================#
  337. ###########################################################################
  338. #======================= begin check acc filesonic.com ===================#
  339. elseif($_POST["check"]== "FSN"){
  340. if(count($obj->acc["filesonic.com"]["accounts"])>0){
  341. echo '<table id="tableFSN" class="filelist" align="left" cellpadding="3" cellspacing="1" width="100%">
  342. <tr class="flisttblhdr" valign="bottom">
  343. <td width="30%"><B>accounts filesonic.com</B></td>
  344. <td width="15%"><b>Type</b></td>
  345. <td><b>Validity</b></td>
  346. <td width="20%"><b>Report</b></td>
  347. </tr>
  348. ';
  349. //==== Fix link FSN ====
  350. $url = "http://www.filesonic.com/";
  351. $data = $obj->curl($url,"","");
  352. if (preg_match('/ocation: (.*)/', $data, $fsnlink)) {
  353. $url = trim($fsnlink[1]);
  354. }
  355. $linkFSN= explode('/', $url);$urllogin = "http://".$linkFSN[2]."/user/login";
  356. //==== Fix link FSN ====
  357. for($i = 0; $i < count($obj->acc["filesonic.com"]["accounts"]); $i++){
  358. $account = $obj->acc["filesonic.com"]["accounts"][$i];
  359. if (stristr($account,':')) {
  360. list($user, $pass) = explode(':', $account);
  361. $account = substr($account, 0, 5).'****';
  362. $type = "account";
  363. $post["email"]= $user;
  364. $post["password"]= $pass;
  365. $page = $obj->curl($urllogin,"",$post);
  366. if(strpos($page,"Provided password does not match.")) {
  367. echo '<tr class="flistmouseoff" align="center">
  368. <td><B>'.$account.'</B></td><td>'.$type.'</td>
  369. <td id="unknownFSN"><font color=#CCFF00><b>Login failed !!!</b></font></td>
  370. <td id="unknownFSN"><font color=green><B>Removed</B></font></td></tr>';
  371. $delacc[] = $i;
  372. continue;
  373. }
  374. else {
  375. $cookies = $obj->GetCookies($page);
  376. $cookie = explode(" ", $cookies);
  377. $cookie = $cookie[3];
  378. }
  379. }
  380. else {
  381. $type = "cookie";
  382. $cookie = $account;
  383. $account = substr($account, 0, 15).'****';
  384. }
  385. $cookie = preg_replace("/(phpsessid=|Phpsessid=|PHPSESSID=)/","",$cookie);
  386. $data = $obj->curl($url."user/settings","PHPSESSID=".$cookie,"");
  387. if(strpos($data,"If you have forgotten your password")) {
  388. echo '<tr class="flistmouseoff" align="center">
  389. <td><B>'.$account.'</B></td><td>'.$type.'</td>
  390. <td id="unknownFSN"><font color=#CCFF00><b>Login failed !!!</b></font></td>
  391. <td id="unknownFSN"><font color=green><B>Removed</B></font></td></tr>';
  392. $delacc[] = $i;
  393. }
  394. else{
  395. //Validity
  396. if(strpos($data,'Upgrade to Premium')) {
  397. echo '<tr class="flistmouseoff" align="center">
  398. <td><B>'.$account.'</B></td><td>'.$type.'</td>
  399. <td id="unknownFSN"><b><font color=#666666>FREE ACC</font></b></td>
  400. <td id="unknownFSN"><font color=green><B>Removed</B></font></b></td></tr>';
  401. $delacc[] = $i;
  402. }
  403. elseif(strpos($data,"Never Expires")) {
  404. echo '<tr class="flistmouseoff" align="center">
  405. <td><B>'.$account.'</B></td><td>'.$type.'</td>
  406. <td id="unknownFSN"><B><font color=red>Never Expires</font></B></td>
  407. <td id="unknownFSN"><font color=blue><B>Working</B></font></td></tr>';
  408. }
  409. elseif(preg_match('%Pro Membership Valid Until\:</span> (.*)\,%U', $data, $matches)) {
  410. echo '<tr class="flistmouseoff" align="center">
  411. <td><B>'.$account.'</B></td><td>'.$type.'</td>
  412. <td id="unknownFSN"><font color=red><b>'.$matches[1].'</b></font></td>
  413. <td id="unknownFSN"><font color=blue><B>Working</B></font></td></tr>';
  414. }
  415. else {
  416. echo '<tr class="flistmouseoff" align="center">
  417. <td><B>'.$account.'</B></td><td>'.$type.'</td>
  418. <td id="unknownFSN">unknown</td>
  419. <td id="unknownFSN">unknown</td></tr>';
  420. }
  421. }
  422. }
  423. echo "</table>";
  424. $obj = new stream_get();
  425. if(isset($delacc)) {
  426. foreach ($delacc as $i) unset($obj->acc["filesonic.com"]["accounts"][$i]);
  427. unset($delacc);
  428. $check = true;
  429. }
  430. }
  431. }
  432. #======================= end check acc filesonic.com =====================#
  433. ###########################################################################
  434. #======================= begin check acc wupload.com =====================#
  435. elseif($_POST["check"]== "WU"){
  436. if(count($obj->acc["wupload.com"]["accounts"])>0){
  437. echo '<table id="tableWU" class="filelist" align="left" cellpadding="3" cellspacing="1" width="100%">
  438. <tr class="flisttblhdr" valign="bottom">
  439. <td width="30%"><B>accounts wupload.com</B></td>
  440. <td width="15%"><b>Type</b></td>
  441. <td><b>Validity</b></td>
  442. <td width="20%"><b>Report</b></td>
  443. </tr>
  444. ';
  445. //==== Fix link ====
  446. $url = "http://www.wupload.com/";
  447. $data = $obj->curl($url,"","");
  448. if (preg_match('/Location: (.*)/', $data, $fsnlink)) {
  449. $url = trim($fsnlink[1]);
  450. }
  451. $linkWU= explode('/', $url);$urllogin = "http://".$linkWU[2]."/account/login";
  452. //==== Fix link ====
  453. for($i = 0; $i < count($obj->acc["wupload.com"]["accounts"]); $i++){
  454. $account = $obj->acc["wupload.com"]["accounts"][$i];
  455. if (stristr($account,':')) {
  456. list($user, $pass) = explode(':', $account);
  457. $account = substr($account, 0, 5).'****';
  458. $type = "account";
  459. $page = $obj->curl($urllogin,"","email=$user&redirect=%2F&password=$pass");
  460. if(strpos($page,"No user found with such email")) {
  461. echo '<tr class="flistmouseoff" align="center">
  462. <td><B>'.$account.'</B></td><td>'.$type.'</td>
  463. <td id="unknownWU"><font color=#CCFF00><b>Login failed !!!</b></font></td>
  464. <td id="unknownWU"><font color=green><B>Removed</B></font></td></tr>';
  465. $delacc[] = $i;
  466. continue;
  467. }
  468. else {
  469. $cookie = $obj->GetCookies($page);
  470. preg_match('/lang=en; role=anonymous;(.*); PHPSESSID=(.*);/',$cookie,$temp);
  471. $cookie = $temp[2];
  472. }
  473. }
  474. else {
  475. $type = "cookie";
  476. $cookie = $account;
  477. $account = substr($account, 0, 15).'****';
  478. }
  479. $cookie = preg_replace("/(phpsessid=|Phpsessid=|PHPSESSID=)/","",$cookie);
  480. $data = $obj->curl("http://".$linkWU[2]."/account/settings","PHPSESSID=".$cookie,"");
  481. if(strpos($data,"remember your password and need to reset it")) {
  482. echo '<tr class="flistmouseoff" align="center">
  483. <td><B>'.$account.'</B></td><td>'.$type.'</td>
  484. <td id="unknownWU"><font color=#CCFF00><b>Login failed !!!</b></font></td>
  485. <td id="unknownWU"><font color=green><B>Removed</B></font></td></tr>';
  486. $delacc[] = $i;
  487. }
  488. else{
  489. //Validity
  490. if(strpos($data,'Upgrade to Premium')) {
  491. echo '<tr class="flistmouseoff" align="center">
  492. <td><B>'.$account.'</B></td><td>'.$type.'</td>
  493. <td id="unknownWU"><b><font color=#666666>FREE ACC</font></b></td>
  494. <td id="unknownWU"><font color=green><B>Removed</B></font></b></td></tr>';
  495. $delacc[] = $i;
  496. }
  497. elseif(preg_match("%<li>Premium Membership Valid Until\: <strong>(.*)</strong></li>%U", $data, $matches)) {
  498. echo '<tr class="flistmouseoff" align="center">
  499. <td><B>'.$account.'</B></td><td>'.$type.'</td>
  500. <td id="unknownWU"><font color=red><b>'.$matches[1].'</b></font></td>
  501. <td id="unknownWU"><font color=blue><B>Working</B></font></td></tr>';
  502. }
  503. else {
  504. echo '<tr class="flistmouseoff" align="center">
  505. <td><B>'.$account.'</B></td><td>'.$type.'</td>
  506. <td id="unknownWU">unknown</td>
  507. <td id="unknownWU">unknown</td></tr>';
  508. }
  509. }
  510. }
  511. echo "</table>";
  512. $obj = new stream_get();
  513. if(isset($delacc)) {
  514. foreach ($delacc as $i) unset($obj->acc["wupload.com"]["accounts"][$i]);
  515. unset($delacc);
  516. $check = true;
  517. }
  518. }
  519. }
  520. #======================= end check acc wupload.com =======================#
  521. ###########################################################################
  522. #======================= begin check acc real-debrid.com =================#
  523. elseif($_POST["check"]== "real"){
  524. if(count($obj->acc["real-debrid.com"]["accounts"])>0){
  525. echo '<table id="tablereal" class="filelist" align="left" cellpadding="3" cellspacing="1" width="100%">
  526. <tr class="flisttblhdr" valign="bottom">
  527. <td width="30%"><B>accounts real-debrid.com</B></td>
  528. <td width="15%"><b>Type</b></td>
  529. <td><b>Validity</b></td>
  530. <td width="20%"><b>Report</b></td>
  531. </tr>
  532. ';
  533. for($i = 0; $i < count($obj->acc["real-debrid.com"]["accounts"]); $i++){
  534. $account = $obj->acc["real-debrid.com"]["accounts"][$i];
  535. if (stristr($account,':')) {
  536. list($user, $pass) = explode(':', $account);
  537. $account = substr($account, 0, 5).'****';
  538. $type = "account";
  539. $data = $obj->curl("https://www.real-debrid.com/ajax/login.php?user=".urlencode($user)."&pass=".urlencode($pass),"","");
  540. if(strpos($data,"Your login informations are incorrect") || strpos($data,"Your account is not active or has been suspended")) {
  541. echo '<tr class="flistmouseoff" align="center">
  542. <td><B>'.$account.'</B></td><td>'.$type.'</td>
  543. <td id="unknownreal"><font color=#CCFF00><b>Login failed !!!</b></font></td>
  544. <td id="unknownreal"><font color=green><B>Removed</B></font></td></tr>';
  545. $delacc[] = $i;
  546. continue;
  547. }
  548. else {
  549. preg_match('%(auth=.+);%U', $data, $cook);
  550. $cookie = $cook[1];
  551. }
  552. }
  553. else {
  554. $type = "cookie";
  555. $cookie = $account;
  556. $account = substr($account, 0, 15).'****';
  557. }
  558. $cookie = preg_replace("/(auth=|AUTH=|Auth=)/","",$cookie);
  559. $data = $obj->curl("https://www.real-debrid.com","auth=".$cookie,"");
  560. if(strpos($data,'<a href="#login-box" rel="facebox">Login</a>')) {
  561. echo '<tr class="flistmouseoff" align="center">
  562. <td><B>'.$account.'</B></td><td>'.$type.'</td>
  563. <td id="unknownreal"><font color=#CCFF00><b>Login failed !!!</b></font></td>
  564. <td id="unknownreal"><font color=green><B>Removed</B></font></td></tr>';
  565. $delacc[] = $i;
  566. }
  567. else{
  568. //Validity
  569. if(strpos($data,'<strong>Free</strong>')) {
  570. echo '<tr class="flistmouseoff" align="center">
  571. <td><B>'.$account.'</B></td><td>'.$type.'</td>
  572. <td id="unknownreal"><b><font color=#666666>FREE ACC</font></b></td>
  573. <td id="unknownreal"><font color=green><B>Removed</B></font></b></td></tr>';
  574. $delacc[] = $i;
  575. }
  576. elseif(preg_match('%<strong>Premium:</strong> (.*) </div>%U', $data, $matches)) {
  577. echo '<tr class="flistmouseoff" align="center">
  578. <td><B>'.$account.'</B></td><td>'.$type.'</td>
  579. <td id="unknownreal"><font color=red><b>'.$matches[1].'</b></font></td>
  580. <td id="unknownreal"><font color=blue><B>Working</B></font></td></tr>';
  581. }
  582. else {
  583. echo '<tr class="flistmouseoff" align="center">
  584. <td><B>'.$account.'</B></td><td>'.$type.'</td>
  585. <td id="unknownreal">unknown</td>
  586. <td id="unknownreal">unknown</td></tr>';
  587. }
  588. }
  589. }
  590. echo "</table>";
  591. $obj = new stream_get();
  592. if(isset($delacc)) {
  593. foreach ($delacc as $i) unset($obj->acc["real-debrid.com"]["accounts"][$i]);
  594. unset($delacc);
  595. $check = true;
  596. }
  597. }
  598. }
  599. #======================= end check acc real-debrid.com ===================#
  600. ###########################################################################
  601. #======================= begin check acc alldebrid.com ===================#
  602. elseif($_POST["check"]== "alld"){
  603. if(count($obj->acc["alldebrid.com"]["accounts"])>0){
  604. echo '<table id="tablealld" class="filelist" align="left" cellpadding="3" cellspacing="1" width="100%">
  605. <tr class="flisttblhdr" valign="bottom">
  606. <td width="30%"><B>accounts alldebrid.com</B></td>
  607. <td width="15%"><b>Type</b></td>
  608. <td><b>Validity</b></td>
  609. <td width="20%"><b>Report</b></td>
  610. </tr>
  611. ';
  612. for($i = 0; $i < count($obj->acc["alldebrid.com"]["accounts"]); $i++){
  613. $account = $obj->acc["alldebrid.com"]["accounts"][$i];
  614. if (stristr($account,':')) {
  615. list($user, $pass) = explode(':', $account);
  616. $account = substr($account, 0, 5).'****';
  617. $type = "account";
  618. $data = $obj->curl("http://www.alldebrid.com/register/?action=login&returnpage=","","login_login=".urlencode($user)."&login_password=".urlencode($pass));
  619. if(strpos($data,"The password is not valid")) {
  620. echo '<tr class="flistmouseoff" align="center">
  621. <td><B>'.$account.'</B></td><td>'.$type.'</td>
  622. <td id="unknownalld"><font color=#CCFF00><b>Login failed !!!</b></font></td>
  623. <td id="unknownalld"><font color=green><B>Removed</B></font></td></tr>';
  624. $delacc[] = $i;
  625. continue;
  626. }
  627. else if(preg_match("%uid=(.*);%U", $data, $matches)) $cookie = $matches[1];
  628. }
  629. else {
  630. $type = "cookie";
  631. $cookie = $account;
  632. $account = substr($account, 0, 15).'****';
  633. }
  634. $cookie = preg_replace("/(uid=|UID=|Uid=)/","",$cookie);
  635. $data = $obj->curl("http://www.alldebrid.com/account/","uid=".$cookie,"");
  636. if(strpos($data,'Location')) {
  637. echo '<tr class="flistmouseoff" align="center">
  638. <td><B>'.$account.'</B></td><td>'.$type.'</td>
  639. <td id="unknownalld"><font color=#CCFF00><b>Login failed !!!</b></font></td>
  640. <td id="unknownalld"><font color=green><B>Removed</B></font></td></tr>';
  641. $delacc[] = $i;
  642. }
  643. else{
  644. //Validity
  645. if(strpos($data,'</strong>normal</li>')) {
  646. echo '<tr class="flistmouseoff" align="center">
  647. <td><B>'.$account.'</B></td><td>'.$type.'</td>
  648. <td id="unknownalld"><b><font color=#666666>FREE ACC</font></b></td>
  649. <td id="unknownalld"><font color=green><B>Removed</B></font></b></td></tr>';
  650. $delacc[] = $i;
  651. }
  652. elseif(strpos($data,'</strong>Premium</li>')) {
  653. preg_match("%<li><strong>You have now \: </strong>(.*) <%U", $data, $matches);
  654. echo '<tr class="flistmouseoff" align="center">
  655. <td><B>'.$account.'</B></td><td>'.$type.'</td>
  656. <td id="unknownalld"><font color=red><b>'.$matches[1].'</b></font></td>
  657. <td id="unknownalld"><font color=blue><B>Working</B></font></td></tr>';
  658. }
  659. else {
  660. echo '<tr class="flistmouseoff" align="center">
  661. <td><B>'.$account.'</B></td><td>'.$type.'</td>
  662. <td id="unknownalld">unknown</td>
  663. <td id="unknownalld">unknown</td></tr>';
  664. }
  665. }
  666. }
  667. echo "</table>";
  668. $obj = new stream_get();
  669. if(isset($delacc)) {
  670. foreach ($delacc as $i) unset($obj->acc["alldebrid.com"]["accounts"][$i]);
  671. unset($delacc);
  672. $check = true;
  673. }
  674. }
  675. }
  676. #======================= end check acc alldebrid.com =====================#
  677. if($check == true && is_array($obj->acc) && count($obj->acc) > 0) {
  678. $str = "<?php";
  679. $str .= "\n";
  680. $str .= "\n\$this->acc = array(";
  681. $str .= "\n";
  682. $str .= "# Example: 'accounts' => array('user:pass','cookie'),\n";
  683. $str .= "# Example with letitbit.net: 'accounts' => array('user:pass,cookie,prekey=xxxx'),\n";
  684. $str .= "\n";
  685. foreach ($obj->acc as $host => $accounts) {
  686. $str .= "\n '".$host."' => array(";
  687. $str .= "\n 'max_size' => ".($accounts['max_size']?$accounts['max_size']:1024).",";
  688. $str .= "\n 'accounts' => array(";
  689. foreach ($accounts['accounts'] as $acc) {
  690. $str .= "\"".$acc."\",";
  691. }
  692. $str .= "),";
  693. $str .= "\n ),";
  694. $str .= "\n";
  695. }
  696. $str .= "\n);";
  697. $str .= $obj->max_size_other_host ? "\n\$this->max_size_other_host = ".$obj->max_size_other_host.";" : "\n\$this->max_size_other_host = 1024;";
  698. $str .= "\n";
  699. $str .= "\n?>";
  700. $accountPath = "account.php";
  701. $CF = fopen ($accountPath, "w")
  702. 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>');
  703. fwrite ($CF, $str)
  704. 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>');
  705. fclose ($CF);
  706. @chmod($accountPath, 0666);
  707. }
  708. }
  709. else {
  710. echo '<div style="overflow: auto; height: auto; width: 800px;" align="left">';
  711. if(count($obj->acc["rapidshare.com"]["accounts"])>0){
  712. echo '<table id="tableRS" class="filelist" align="left" cellpadding="3" cellspacing="1" width="100%">
  713. <tr class="flisttblhdr" valign="bottom">
  714. <td width="30%"><B>accounts rapidshare.com</B></td>
  715. <td width="15%"><b>Type</b></td>
  716. <td><b>Validity</b></td>
  717. <td width="20%"><b>Report</b></td>
  718. </tr>
  719. ';
  720. for($i = 0; $i < count($obj->acc["rapidshare.com"]["accounts"]); $i++){
  721. $account = $obj->acc["rapidshare.com"]["accounts"][$i];
  722. if (stristr($account,':')) $type = "account";
  723. else $type = "cookie";
  724. $account = substr($account, 0, 5)."****";
  725. 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>';
  726. }
  727. echo "</table>";
  728. echo "<a onclick=\"checkacc('RS');\" href=\"javascript:void(0)\" style='TEXT-DECORATION: none'><font color=#FF6600>Check accounts rapidshare.com >>></font></a><BR><BR>";
  729. $checkall = true;
  730. }
  731. if(count($obj->acc["megaupload.com"]["accounts"])>0){
  732. echo '<table id="tableMU" class="filelist" align="left" cellpadding="3" cellspacing="1" width="100%">
  733. <tr class="flisttblhdr" valign="bottom">
  734. <td width="30%"><B>accounts megaupload.com</B></td>
  735. <td width="15%"><b>Type</b></td>
  736. <td><b>Validity</b></td>
  737. <td width="20%"><b>Report</b></td>
  738. </tr>
  739. ';
  740. for($i = 0; $i < count($obj->acc["megaupload.com"]["accounts"]); $i++){
  741. $account = $obj->acc["megaupload.com"]["accounts"][$i];
  742. if (stristr($account,':')) $type = "account";
  743. else $type = "cookie";
  744. $account = substr($account, 0, 5)."****";
  745. 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>';
  746. }
  747. echo "</table>";
  748. echo "<a onclick=\"checkacc('MU');\" href=\"javascript:void(0)\" style='TEXT-DECORATION: none'><font color=#FF6600>Check accounts megaupload.com >>></font></a><BR><BR>";
  749. $checkall = true;
  750. }
  751. if(count($obj->acc["hotfile.com"]["accounts"])>0){
  752. echo '<table id="tableHF" class="filelist" align="left" cellpadding="3" cellspacing="1" width="100%">
  753. <tr class="flisttblhdr" valign="bottom">
  754. <td width="30%"><B>accounts hotfile.com</B></td>
  755. <td width="15%"><b>Type</b></td>
  756. <td><b>Validity</b></td>
  757. <td width="20%"><b>Report</b></td>
  758. </tr>
  759. ';
  760. for($i = 0; $i < count($obj->acc["hotfile.com"]["accounts"]); $i++){
  761. $account = $obj->acc["hotfile.com"]["accounts"][$i];
  762. if (stristr($account,':')) $type = "account";
  763. else $type = "cookie";
  764. $account = substr($account, 0, 5)."****";
  765. 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>';
  766. }
  767. echo "</table>";
  768. echo "<a onclick=\"checkacc('HF');\" href=\"javascript:void(0)\" style='TEXT-DECORATION: none'><font color=#FF6600>Check accounts hotfile.com >>></font></a><BR><BR>";
  769. $checkall = true;
  770. }
  771. if(count($obj->acc["fileserve.com"]["accounts"])>0){
  772. echo '<table id="tableFSV" class="filelist" align="left" cellpadding="3" cellspacing="1" width="100%">
  773. <tr class="flisttblhdr" valign="bottom">
  774. <td width="30%"><B>accounts fileserve.com</B></td>
  775. <td width="15%"><b>Type</b></td>
  776. <td><b>Validity</b></td>
  777. <td width="20%"><b>Report</b></td>
  778. </tr>
  779. ';
  780. for($i = 0; $i < count($obj->acc["fileserve.com"]["accounts"]); $i++){
  781. $account = $obj->acc["fileserve.com"]["accounts"][$i];
  782. if (stristr($account,':')) $type = "account";
  783. else $type = "cookie";
  784. $account = substr($account, 0, 5)."****";
  785. 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>';
  786. }
  787. echo "</table>";
  788. echo "<a onclick=\"checkacc('FSV');\" href=\"javascript:void(0)\" style='TEXT-DECORATION: none'><font color=#FF6600>Check accounts fileserve.com >>></font></a><BR><BR>";
  789. $checkall = true;
  790. }
  791. if(count($obj->acc["filesonic.com"]["accounts"])>0){
  792. echo '<table id="tableFSN" class="filelist" align="left" cellpadding="3" cellspacing="1" width="100%">
  793. <tr class="flisttblhdr" valign="bottom">
  794. <td width="30%"><B>accounts filesonic.com</B></td>
  795. <td width="15%"><b>Type</b></td>
  796. <td><b>Validity</b></td>
  797. <td width="20%"><b>Report</b></td>
  798. </tr>
  799. ';
  800. for($i = 0; $i < count($obj->acc["filesonic.com"]["accounts"]); $i++){
  801. $account = $obj->acc["filesonic.com"]["accounts"][$i];
  802. if (stristr($account,':')) $type = "account";
  803. else $type = "cookie";
  804. $account = substr($account, 0, 5)."****";
  805. 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>';
  806. }
  807. echo "</table>";
  808. echo "<a onclick=\"checkacc('FSN');\" href=\"javascript:void(0)\" style='TEXT-DECORATION: none'><font color=#FF6600>Check accounts filesonic.com >>></font></a><BR><BR>";
  809. $checkall = true;
  810. }
  811. if(count($obj->acc["wupload.com"]["accounts"])>0){
  812. echo '<table id="tableWU" class="filelist" align="left" cellpadding="3" cellspacing="1" width="100%">
  813. <tr class="flisttblhdr" valign="bottom">
  814. <td width="30%"><B>accounts wupload.com</B></td>
  815. <td width="15%"><b>Type</b></td>
  816. <td><b>Validity</b></td>
  817. <td width="20%"><b>Report</b></td>
  818. </tr>
  819. ';
  820. for($i = 0; $i < count($obj->acc["wupload.com"]["accounts"]); $i++){
  821. $account = $obj->acc["wupload.com"]["accounts"][$i];
  822. if (stristr($account,':')) $type = "account";
  823. else $type = "cookie";
  824. $account = substr($account, 0, 5)."****";
  825. 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>';
  826. }
  827. echo "</table>";
  828. echo "<a onclick=\"checkacc('WU');\" href=\"javascript:void(0)\" style='TEXT-DECORATION: none'><font color=#FF6600>Check accounts wupload.com >>></font></a><BR><BR>";
  829. $checkall = true;
  830. }
  831. if(count($obj->acc["real-debrid.com"]["accounts"])>0){
  832. echo '<table id="tablereal" class="filelist" align="left" cellpadding="3" cellspacing="1" width="100%">
  833. <tr class="flisttblhdr" valign="bottom">
  834. <td width="30%"><B>accounts real-debrid.com</B></td>
  835. <td width="15%"><b>Type</b></td>
  836. <td><b>Validity</b></td>
  837. <td width="20%"><b>Report</b></td>
  838. </tr>
  839. ';
  840. for($i = 0; $i < count($obj->acc["real-debrid.com"]["accounts"]); $i++){
  841. $account = $obj->acc["real-debrid.com"]["accounts"][$i];
  842. if (stristr($account,':')) $type = "account";
  843. else $type = "cookie";
  844. $account = substr($account, 0, 5)."****";
  845. 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>';
  846. }
  847. echo "</table>";
  848. 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>";
  849. $checkall = true;
  850. }
  851. if(count($obj->acc["alldebrid.com"]["accounts"])>0){
  852. echo '<table id="tablealld" class="filelist" align="left" cellpadding="3" cellspacing="1" width="100%">
  853. <tr class="flisttblhdr" valign="bottom">
  854. <td width="30%"><B>accounts alldebrid.com</B></td>
  855. <td width="15%"><b>Type</b></td>
  856. <td><b>Validity</b></td>
  857. <td width="20%"><b>Report</b></td>
  858. </tr>
  859. ';
  860. for($i = 0; $i < count($obj->acc["alldebrid.com"]["accounts"]); $i++){
  861. $account = $obj->acc["alldebrid.com"]["accounts"][$i];
  862. if (stristr($account,':')) $type = "account";
  863. else $type = "cookie";
  864. $account = substr($account, 0, 5)."****";
  865. 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>';
  866. }
  867. echo "</table>";
  868. echo "<a onclick=\"checkacc('alld');\" href=\"javascript:void(0)\" style='TEXT-DECORATION: none'><font color=#FF6600>Check accounts alldebrid.com >>></font></a></div>";
  869. $checkall = true;
  870. }
  871. if(isset($checkall)) echo '<p align="right"><input type=button onclick="checkacc(\'all\');" value="Check all accounts"></p>';
  872. }
  873. /*
  874. * Home page: http://vinaget.us
  875. * Blog: http://blog.vinaget.us
  876. * Script Name: Vinaget
  877. * Version: 2.6.2 (18.11.2011)
  878. * Description:
  879. - Vinaget is script generator premium link that allows you to download files instantly and at the best of your Internet speed.
  880. - Vinaget is your personal proxy host protecting your real IP to download files hosted on hosters like RapidShare, megaupload, hotfile...
  881. - You can now download files with full resume support from filehosts using download managers like IDM etc
  882. - Vinaget is a Free Open Source, supported by a growing community.
  883. * Code LeechViet by VinhNhaTrang
  884. * Developed by ..:: [H] ::..
  885. */
  886. ?>