Ejemplo n.º 1
0
                if (substr($client, 0, 10) == "WinampMPEG") {
                    $client = "<img src='" . $BASEURL . "/radiostats/images/winamp.png' width='32' height='32' border='0' alt='Winamp' title='Winamp'>";
                }
                if (substr($client, 0, 3) == "VLC") {
                    $client = "<img src='" . $BASEURL . "/radiostats/images/vlc.png' width='32' height='32' border='0' alt='VLC.Media.Player' title='VLC.Media.Player'>";
                }
                $colors = @mysqli_fetch_array(@mysqli_query($GLOBALS["___mysqli_ston"], "SELECT prefixcolor,suffixcolor FROM {$TABLE_PREFIX}users u INNER JOIN {$TABLE_PREFIX}users_level ul ON u.id_level=ul.id WHERE u.username="******"id"] = mysqli_real_escape_string($DBDT, (int) $gimme[id]);
                $list[$j]["username"] = unesc($colors[prefixcolor]) . $gimme[username] . unesc($colors[suffixcolor]);
                $list[$j]["client"] = unesc($client);
                $j++;
            }
        } else {
            $hanger = false;
            $nothing = stderr($language[ERROR], $language["NOPLAYER"]);
            $listennowtpl->set("nothing", $nothing);
        }
    } else {
        $hanger = false;
        $ohdamn = stderr($language[ERROR], $language["NOSHOUTCAST"]);
        $listennowtpl->set("ohdamn", $ohdamn);
    }
} else {
    $hanger = false;
    $ohbeep = stderr($language[ERROR], "<center>" . $language["NOSHOUTCASTCONN"] . "<br/>" . $listen->geterror() . "</center>");
    $listennowtpl->set("ohbeep", $ohbeep);
}
$listennowtpl->set("hanger", $hanger ? TRUE : FALSE, TRUE);
$listennowtpl->set("list", $list);
$listennowtpl->set("language", $language);
Ejemplo n.º 2
0
                $djname = unesc($djname);
            }
            echo "<tr><td class=header><b>" . $language['BL_DJ'] . ":</b></td><td class=lista>&nbsp;<b>" . $djname . "</b></td></tr>";
        }
        echo "<tr><td class=header><b>" . $language['BL_LISTEN'] . ":</b></td><td class=lista>&nbsp;<br><b><a href='index.php?page=listeners'> (" . $shoutcast->GetCurrentListenersCount() . " of " . $shoutcast->GetMaxListenersCount() . " listeners, peak: " . $shoutcast->GetPeakListenersCount() . ")</a><p></b></td></tr>";
        echo "<tr><td class=header><b>" . $language['BL_SONG'] . ":</b></td><td class=lista>&nbsp;<b>" . cut_string($shoutcast->GetCurrentSongTitle(), intval(50)) . "</b></td></tr>\n";
        echo "<tr><td class=header><br><b>" . $language['BL_BRATE'] . ": </b></td><td class=lista><br><b>" . $shoutcast->GetBitRate() . " kbps&nbsp;<iframe src=\"" . $BASEURL . "/radioon.php\" width=\"0\" height=\"0\"></iframe></b></td></tr><tr><td colspan=2>&nbsp;</td></tr>";
        echo "</table><br><table border=0 cellpadding=0 cellspacing=0 align=center class=main><tr><td class=header>";
        echo "<center><b>" . $language['BL_HIST'] . ":</b></center>\n";
        $history = $shoutcast->GetSongHistory();
        echo "<textarea rows=3 cols=40 class=frm>";
        if (is_array($history)) {
            for ($i = 0; $i < sizeof($history); $i++) {
                echo "[" . get_date_time($history[$i]["playedat"]) . "] - " . $history[$i]["title"] . "\n";
            }
            echo "</textarea></td></tr></table><br />";
            echo '<center><a href="http://' . $btit_settings["radio_ip"] . ':' . $btit_settings["radio_port"] . '/listen.pls" target="_new"><img src=' . $BASEURL . '/radiostats/images/winamp.png width="48" height="48" title="Winamp" border="0"></a>&nbsp;<a href="javascript:PopRadio(\'mp\');"><img src=' . $BASEURL . '/radiostats/images/mp.png width="48" height="48" title="WMP" border="0"></a>&nbsp;<a href="javascript:PopRadio(\'rp\');"><img src=' . $BASEURL . '/radiostats/images/rp.png width="48" height="48" title="RealPlayer" border="0"></a>&nbsp;<a href="javascript:PopRadio(\'qt\');"><img src=' . $BASEURL . '/radiostats/images/qt.png width="48" height="48" title="QuickTime" border="0"></a></center>';
            echo '</td></tr></table>';
        } else {
            require "../" . load_language("lang_shoutcast.php");
            echo $language['BL_HIST_NO'];
        }
        //echo "<p>";
    } else {
        require "../" . load_language("lang_shoutcast.php");
        echo "<table width=100% cellpadding=3 cellspacing=0><tr><td class=blocklist><center><br><img src=" . $BASEURL . "/radiostats/images/radio-offline.png><br><br><br><font size=3><b>" . $language['BL_NOSOURC'] . "<iframe src=\"" . $BASEURL . "/radiooff.php\" width=\"0\" height=\"0\"></iframe>&nbsp;<a href=index.php?page=dj&do=request>" . $language['BL_APP'] . "</a></b></font><br><br>\n\t\t</td></tr></table>";
    }
} else {
    // Ohhh, damnit..
    echo $shoutcast->geterror();
}