Advertisement
Titeuf

[rapidleech][d] demo_ovh_eu.php

Nov 8th, 2013
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. <?php
  2. if (!defined('RAPIDLEECH')) {
  3. require_once("index.html");
  4. exit;
  5. }
  6.  
  7. class demo_ovh_eu extends DownloadClass {
  8. public function Download($link) {
  9. $page = $this->GetPage($link);
  10. if (preg_match('@^HTTP/1\.[0|1] 404 Not Found@i', $page)) html_error('File Not Found');
  11. if (!preg_match('@href="/(download/\w+/[^\"]+)"@i', $page, $dl)) html_error('Download link Not Found');
  12. $filename = urldecode(basename($dl[1]));
  13. $dl = "http://demo.ovh.eu/".$dl[1];
  14. $this->RedirectDownload($dl, $filename);
  15. }
  16. }
  17.  
  18. // [11-3-2012] Written by Th3-822.
  19. // [08-11-2013] Modify by Titeuf
  20.  
  21. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement