-
Notifications
You must be signed in to change notification settings - Fork 2
/
movies.php
41 lines (39 loc) · 1.71 KB
/
movies.php
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
37
38
39
40
41
<?php
require_once('linkontrol/template.php');
require_once('linkontrol/global.php');
require_once('linkontrol/access.php');
require_once('linkontrol/functions_linkontrol.php');
$linkontrol = new linkontrol();
$arr = $linkontrol->getMovies();
$id = $_SERVER['REMOTE_ADDR'];
if (isset($arr)) {
foreach ($arr as $key => $val) {
$movies_list .= '<tr>' .
'<td>' . $val['name'] . '</td>' .
'<td>' . $val['href'] . '</td>' .
'<td>' . $val['username'] . '</td>' .
'<td>' .
'<form>' .
"<input type=\"button\" value=\"Watch\" onClick=\"window.open('movie.html?id=$id&movieid=" . $val['movieid'] . "', " .
"'movie', 'width=900,height=900,toolbar=yes,location=yes,directories=yes, status=yes,menubar=yes,scrollbar=yes,copyhistory=yes,resizable=yes,screenX=0')\")>" .
'</form>' .
'</td>' .
'<td>' .
'<form>' .
"<input type=\"button\" value=\"Open Remote\" onClick=\"window.open('remote.php?id=$id', " .
"'remote', 'width=800,height=600,toolbar=yes,location=yes,directories=yes, status=yes,menubar=yes,scrollbar=yes,copyhistory=yes,resizable=yes,screenX=600')\")>" .
'</form>' .
'</td>' .
'<td>' .
"<input type=\"button\" value=\"Open Ipadmote\" onClick=\"window.open('ipad.html?id=$id', " .
"'remote', 'width=800,height=600,toolbar=yes,location=yes,directories=yes, status=yes,menubar=yes,scrollbar=yes,copyhistory=yes,resizable=yes,screenX=600')\")>" .
'</form>' .
'</td>' .
'<td><a href="edit.php?movieid=' . $val['movieid'] . '">' . Edit . '</a></td>' .
'<td><a href="?do=delete_movie&movieid=' . $val['movieid'] . '">' . Delete . '</a></td>' .
"</tr>\n";
}
}
eval('$content .= "' . fetchTemplate('movies') . '";');
eval('printOutput("' . fetchTemplate('shell') . '");');
?>