Exemplo n.º 1
0
<html>
<head>
<title>Program</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="css/nonametv.css" rel=stylesheet>
<link href="css/categories.css" rel=stylesheet>
</head>

<body bgcolor="#FFFFFF" text="#000000">

<?php 
//
// main
//
$channel_id = $_REQUEST['id'];
$chann = sql_findChannel($myc, 'id', $channel_id);
print "<h1>Programs for " . $chann['display_name'] . "</h1>\n";
if ($chann['logo']) {
    print "<img src=\"" . $dconf['urllogos'] . "/" . $chann['xmltvid'] . ".png\">\n";
}
print "<h4>ID: " . $chann['id'] . "</h4>\n";
print "<h4>XMLTV ID: " . $chann['xmltvid'] . "</h4>\n";
print "<h4>Language: " . $chann['sched_lang'] . "</h4>\n";
print "<h4>Grabber : " . $chann['grabber'] . "</h4>\n";
print "<h4>Grabber info : " . $chann['grabber_info'] . "</h4>\n";
print "<h4>Exported: " . $chann['export'] . "</h4>\n";
$pdb = sql_findProgram($myc, $channel_id, '', '');
if ($debug) {
    dbg("programs", $pdb);
}
print "<h4>Total: " . sizeof($pdb) . " items found</h4>\n";
Exemplo n.º 2
0
// check if there is already a channel with this name
//
if ($action != 'new') {
    switch ($dconf['dbtype']) {
        case 'mysql':
            // first try to find from posted data
            if (!$found && isset($channelpost['id'])) {
                $found = sql_findChannel($myc, 'id', $channelpost['id']);
            }
            if ($debug && $found) {
                dbg("sql: found from posted data", $found);
            }
            // if !found with posted data
            // try to find with data from arguments
            if (!$found && $channelarg) {
                $found = sql_findChannel($myc, 'id', $channelarg);
            }
            if ($debug && $found) {
                dbg("sql: found from arguments", $found);
            }
            break;
    }
}
//
// not found
//
if ($found == false) {
    switch ($action) {
        case 'none':
            // if action==none -> this is edit, so it must be found
            print "<h3>Invalid channel: " . $channelarg . " </h3>\n";
Exemplo n.º 3
0
</head>

<body bgcolor="#FFFFFF" text="#000000">

<?php 
//
// main
//
$id = (int) $_REQUEST['id'];
$tvuri = $_REQUEST['channel'];
if ($id) {
    $channel_id = $id;
    $chann = sql_findChannel($myc, 'id', $channel_id);
} elseif ($tvuri) {
    $tvuri = mysql_real_escape_string($tvuri);
    $chann = sql_findChannel($myc, 'xmltvid', $tvuri);
    $channel_id = $chann['id'];
}
if (!$tvuri && !$id) {
    die("Something about ages..");
}
?>
<p style="text-align:center;"><a href="?channel=<?php 
echo $chann['xmltvid'];
?>
">Today</a> - <a href="?channel=<?php 
echo $chann['xmltvid'];
?>
&time=<?php 
echo strtotime("tomorrow 06:00");
?>