Пример #1
0
function db_loadChannels($kaj, $vrijednost)
{
    global $dconf;
    global $myc;
    switch ($dconf['dbtype']) {
        case 'mysql':
            $tdb = sql_loadChannels($myc, $kaj, $vrijednost);
            return $tdb;
    }
    return false;
}
Пример #2
0
<html>
<head>
<title>Active Importers</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="css/nonametv.css" rel=stylesheet>
</head>

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

<?php 
//print "<h1>" . $lngstr['title'] . "</h1>\n";
//print "<p>" . $lngstr['headertext'] . "</p>\n";
//
// main
//
$channels = sql_loadChannels($myc, NULL, NULL);
if ($debug) {
    dbg("channels", $channels);
}
reset($channels);
while (list($k, $v) = each($channels)) {
    if (!$v['export']) {
        continue;
    }
    $importers[$v['grabber']][] = $v['display_name'];
}
if ($debug) {
    dbg("importers", $importers);
}
reset($importers);
while (list($k, $v) = each($importers)) {