Advertisement
Guest User

Untitled

a guest
Nov 1st, 2014
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. <embed type = "application/x-vlc-plugin" width="640" height="360"
  2. pluginspage = "http://www.videolan.org" version = "VideoLAN.VLCPlugin.2"
  3. id = "vlc" loop = "yes"autoplay = "yes" target = video.php?v="' . $id . '"></embed>
  4.  
  5. if (isset($_GET['v'])) {
  6. $query = 'SELECT * FROM film WHERE FilmID=' . $_GET['v'];
  7. $result = mysqli_query($con, $query);
  8. $row = mysqli_fetch_array($result);
  9. $path = $row['Filepath'] . '\' . $row['Filename'];
  10. $filetype = $row['Filetype'];
  11. }
  12.  
  13. header('Content-type: video/' . $filetype);
  14. header('Content-Length: '.filesize($path));
  15. readfile($path);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement