Guest User

Untitled

a guest
Sep 18th, 2018
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. function imdb2pic($imdb, $id, $poster = 1)
  2. {
  3. if(strpos($imdb, "imdb.com"))
  4. {
  5.  
  6.  
  7.  
  8. $imdb = trim($imdb);
  9. $nisse = True;
  10. $tmpfile = "weee.txt";
  11. shell_exec("wget -O $tmpfile $imdb");
  12. $fp = fopen($tmpfile, "rt");
  13.  
  14. while(!feof($fp))
  15. {
  16. $buffer = fgets($fp);
  17. $buf .= $buffer;
  18. }
  19.  
  20. $hej = $buf;
  21. @unlink($tmpfile);
  22. $pos1 = strpos($hej, '<a name="poster"');
  23. $hej = substr($hej,$pos1);
  24. $pos1 = strpos($hej, 'src="');
  25. $hej = substr($hej, $pos1+5);
  26. $pos1 = strpos($hej, '"');
  27. $hej = substr($hej,0, $pos1);
Add Comment
Please, Sign In to add comment