PageRenderTime 50ms CodeModel.GetById 25ms RepoModel.GetById 1ms app.codeStats 0ms

/pluginz/download/hosts.php

http://rapidleech36b.googlecode.com/
PHP | 59 lines | 58 code | 0 blank | 1 comment | 22 complexity | 6e13872a79545713b3f55b11eca6adb1 MD5 | raw file
  1. <?php
  2. $host = array();
  3. $d = dir("pluginz/download/");
  4. while (false !== ($entry = $d->read())) {
  5. if (stristr($entry, '.php') && !stristr($entry, '.JD')) {
  6. $hostname = substr($entry, 0, -4);
  7. $hostname = str_replace('_', '.', $hostname);
  8. if ($hostname == 'real.debrid.com') $hostname = 'real-debrid.com';
  9. if ($hostname == 'fast.debrid.com') $hostname = 'fast-debrid.com';
  10. if ($hostname == 'file.upload.net') $hostname = 'file-upload.net';
  11. if ($hostname == 'share.online.biz') $hostname = 'share-online.biz';
  12. if ($hostname == 'cash.file.net') $hostname = 'cash-file.net';
  13. if ($hostname == 'i.filez.com') $hostname = 'i-filez.com';
  14. if ($hostname == 'galaxyscript.com' || $hostname == 'vBulletin.plug' || $hostname == 'hosts') continue;
  15. $host[$hostname] = $entry;
  16. switch ($hostname) {
  17. //define the domain so we dont need to make new plugin with only 3-6 lines code
  18. case '1fichier.com':
  19. $d1fichier_domains = array("alterupload.com", "cjoint.net", "desfichiers.com", "dfichiers.com", "megadl.fr", "mesfichiers.org",
  20. "piecejointe.net", "pjointe.com", "tenvoi.com", "dl4free.com");
  21. foreach ($d1fichier_domains as $d1fichier) {
  22. $host["$d1fichier"] = $host['1fichier.com'];
  23. }
  24. break;
  25. case 'cramit.in':
  26. $cramit_domains = array('cramitin.eu','cramitin.net','cramitin.us');
  27. foreach ($cramit_domains as $cramit) {
  28. $host["$cramit"] = $host['cramit.in'];
  29. }
  30. break;
  31. case 'crocko.com':
  32. $host['easy-share.com'] = $host['crocko.com'];
  33. break;
  34. case 'filepost.com':
  35. $host['fp.io'] = $host['filepost.com'];
  36. break;
  37. case 'filerio.com':
  38. $host['filekeen.com'] = $host['filerio.com'];
  39. break;
  40. case 'filesonic.com':
  41. $filesonic_domains = array('asia', 'at', 'be', 'bg', 'cc', 'ch', 'cl', 'co.id', 'co.il', 'co.nz', 'co.th', 'com.au',
  42. 'com.eg', 'com.hk', 'com.eg', 'com.tr', 'com.vn', 'cz', 'es', 'fi', 'fr', 'gr', 'hk', 'hr', 'hu', 'in', 'it', 'jp',
  43. 'kr', 'me', 'mx', 'my', 'net', 'ml', 'pe', 'pk', 'pt', 'ro', 'rs', 'se', 'sg', 'sk', 'tw', 'ua', 'vn');
  44. foreach ($filesonic_domains as $tld) {
  45. $host["filesonic.$tld"] = $host['filesonic.com'];
  46. }
  47. $host['sharingmatrix.com'] = $host['filesonic.com'];
  48. break;
  49. case 'freakshare.com':
  50. $host['freakshare.net'] = $host['freakshare.com'];
  51. break;
  52. case 'speedyshare.com':
  53. $host['speedy.sh'] = $host['speedyshare.com'];
  54. break;
  55. }
  56. }
  57. }
  58. $d->close();
  59. ?>