-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvideoloader.php
More file actions
36 lines (29 loc) · 929 Bytes
/
Copy pathvideoloader.php
File metadata and controls
36 lines (29 loc) · 929 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
34
35
36
<?php
require_once('conf/config.php');
$nookid = get_request('nookid', 0);
if ($nookid>0){
$imageObj = new image();
$video = $imageObj->getNookById($nookid);
if ($video){
//debug($video);//['videourl'];
echo '
<div style="width:500px; height: 370px;">
<br><center>
<object width="425" height="344">
<param name="movie" value="http://www.youtube.com/v/'.$video['videourl'].'&hl=en_US&fs=1&">
<param name="allowFullScreen" value="true">
<param name="allowscriptaccess" value="always">
<embed src="http://www.youtube.com/v/'.$video['videourl'].'&hl=en_US&fs=1&"
type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true"
width="425" height="344">
</object>
</center>
</div>
';
} else {
echo 'error in DB';
}
} else {
echo 'error in ID';
}
?>