-
Notifications
You must be signed in to change notification settings - Fork 0
/
html.php
63 lines (60 loc) · 2.13 KB
/
html.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?php
require('includes/io.php');
require('includes/paths.php');
require('includes/XML_Parser.php');
require('includes/TV_Channel.php');
require('includes/TV_Program.php');
require('includes/TV_Related_Info.php');
require('includes/TV_Genre.php');
require('includes/TV_AVAttributes.php');
require('includes/TV_Program_Schedule.php');
require('includes/TV_ProgramParser.php');
require('includes/TV_ScheduleParser.php');
require('includes/TV_Outputter.php');
require('includes/TV_View.php');
require('/home/blueghos/db.php');
require('includes/DB_Connection.php');
require('includes/TV_DBConnection.php');
require('includes/Bleb_ProgramParser.php');
require('includes/Bleb_Program.php');
require('includes/Bleb_AVAttributes.php');
require('includes/Bleb_Program_Schedule.php');
require('includes/Bleb_Outputter.php');
require('includes/Bleb_Channel.php');
require('includes/AmazonSearch.php');
require('includes/AmazonSearchResults.php');
require('includes/AmazonItem.php');
require('includes/AmazonSearchParser.php');
header('Content-type: text/html');
$dbase = 'blueghos_tv';
$Database = new TV_DBConnection();
$Database->DB_connect($db_host, $db_user, $db_pwd, $dbase);
if (isset($_REQUEST['nnp'])){
$date = date("Ymd", time());
$token = explode("+", $_REQUEST['nnp']);
$token = explode(" ", $_REQUEST['nnp']);
//print_r($token);
//echo 'total_op <br />';
echo $total_op;
foreach ($token as $tok){
//echo '<br />token '.$tok.' , ';
$op = new TV_Outputter(null);
$sChannel = $Database->getChannel($tok, $date);
$nn = $sChannel->getNowAndNext(time());
if ($op->parseMultipleNNForHTML($nn['progs'], $nn['sched'], $sChannel->title)){
//$opo = $op->getOutput();
echo /*$total_op +=*/ $op->getOutput();
//$total_op += $op->getOutput();
//echo 'total_op <br />';
//echo $total_op;
}else{
/*$total_op += "\t\t<item>\n";
$total_op += "\t\t\t<title>".$sChannel->title." - No Data</title>\n";
$total_op += "\t\t\t<link>http://tv.blueghost.co.uk/channel/".$sChannel->id."</link>\n";
$total_op += "\t\t</item>\n";*/
}
}
$total_op = "</request>";
echo $total_op;
}
?>