Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <embed type = "application/x-vlc-plugin" width="640" height="360"
- pluginspage = "http://www.videolan.org" version = "VideoLAN.VLCPlugin.2"
- id = "vlc" loop = "yes"autoplay = "yes" target = video.php?v="' . $id . '"></embed>
- if (isset($_GET['v'])) {
- $query = 'SELECT * FROM film WHERE FilmID=' . $_GET['v'];
- $result = mysqli_query($con, $query);
- $row = mysqli_fetch_array($result);
- $path = $row['Filepath'] . '\' . $row['Filename'];
- $filetype = $row['Filetype'];
- }
- header('Content-type: video/' . $filetype);
- header('Content-Length: '.filesize($path));
- readfile($path);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement