-
Notifications
You must be signed in to change notification settings - Fork 2
/
remote.php
41 lines (37 loc) · 1.09 KB
/
remote.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');
include_once("linkontrol/functions_linkontrol.php");
$linkontrol = new linkontrol();
$sessionkey = mysql_real_escape_string($_GET['id']);
if ($sessionkey == '') {
include_once('remote_start.php');
die();
}
$arr = $linkontrol->getSession($sessionkey);
$movieid = 0;
$movie_name = "No movie specified";
if (isset($arr)) {
$movieid = $arr['movieid'];
$movie_name = $arr['moviename'];
}
$scrape = new scrape();
$subpages = "";
$arr = $linkontrol->getTimeFeeds($movieid);
if (isset($arr)) {
$arr_reverse = array_reverse($arr);
foreach ($arr_reverse as $key => $val) {
$timefeed_list .= $linkontrol->timeFeedToList($val);
if ($val['linktypeid'] == 7) {
$data = $scrape->getUrl($val['href']);
$subpage_header = $data['title'];
$subpage_content = $data['content'];
$subpage_id = $val['timefeedid'];
//print_r($data);
eval('$subpages .= "' . fetchTemplate('remote_subpage') . '";');
}
}
}
eval('$content .= "' . fetchTemplate('remote') . '";');
die($content);
?>