-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathviewmovie.php
More file actions
executable file
·33 lines (29 loc) · 836 Bytes
/
Copy pathviewmovie.php
File metadata and controls
executable file
·33 lines (29 loc) · 836 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?
/*
* viewmovie.php - this page checks if a user is authenticated,
* then shows them the movie if they are
*
* Actual video files go in the /player/video folder
*/
include("include/session.php");
include("include/functions.php");
if($session->logged_in){
$title = "View Movie";
include 'head.php';
$url = $_GET['url'];
?>
<center>
<h2 style="padding-top:20px;">View Movie</h2>
<embed src="player/mediaplayer/player.swf" width="512" height="404"
type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" bgcolor="#FFFFFF" name="theMediaPlayer" allowfullscreen="true"
<? echo("flashvars=\"file=$url.flv&streamer=../showvideo.php?position=0\"");?>
</embed>
</center>
<?
include 'foot.php';
}
else{
$url = curPageUrl();
header("Location: main.php?returl=$url");
}
?>