Advertisement
scriptz-team

[PHP] PORNTUBE.COM RECENTLY ADDED ViDEO THUMBS

Jul 10th, 2012
3,965
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. <?php
  2. /*
  3. _____ _____ _ _____ _____ _____ _____ _____ _____
  4. ___| | __ |_| _ |_ _|___ ___|_ _| __| _ | |
  5. |_ -| --| -| | __| | | |- _|___| | | | __| | | | |
  6. |___|_____|__|__|_|__| |_| |___| |_| |_____|__|__|_|_|_|
  7. |s C R i P T z - T E A M . i N F O|
  8.  
  9. PORNTUBE.COM RECENTLY ADDED ViDEO THUMBS
  10.  
  11. SiNCE WE LOVE GiRLz, DONT U ?! :D
  12. */
  13. function pretty($arr)
  14. {
  15. $retStr = '<ul>';
  16. if (is_array($arr)) {
  17. foreach ($arr as $key => $val) {
  18. if (is_array($val)) {
  19. $retStr .= '<li>' . $key . ' => ' . pp($val) . '</li>';
  20. } else {
  21. $retStr .= '<li>' . $key . ' => ' . $val . '</li>';
  22. }
  23. }
  24. }
  25. $retStr .= '</ul>';
  26. return $retStr;
  27. }
  28.  
  29. function get_thumbz()
  30. {
  31. $request = file_get_contents("http://www.porntube.com/");
  32. preg_match_all('/<img src="(.*)".* class="RotatingThumbs.*/i', $request, $items);
  33. return $items[0];
  34. }
  35. echo pretty(get_thumbz());
  36. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement