function rs_panel($info) { global $userdata, $locale, $settings, $match; $server_data = ""; $server_data = unserialize($info); $ausgabe = ""; $dj_anzeige = ""; $server = ""; $server = new SHOUTcast(); if ($server->GetStatus($server_data['ip'], $server_data['port'], $server_data['pw'])) { if ($server->GetStreamStatus()) { // if ($server_data['usertyp'] == 1) { // $server_name = $server->GetAIM(); // } elseif ($server_data['usertyp'] == 2) { // $server_name = $server->GetICQ(); // } elseif ($server_data['usertyp'] == 3) { // $server_name = $server->GetIRC(); // } elseif ($server_data['usertyp'] == 4) { // $server_name = $server->GetServerTitle(); // } else { // $server_name = $server->GetAIM(); // } // if ($server_name == "N/A"){ // $server_name_rlf = $match; // } $server_name_rlf = $match; $result = dbquery("SELECT * FROM " . DB_USERS . " WHERE user_name='" . stripinput($server_name_rlf) . "'"); if (dbrows($result)) { $data = dbarray($result); $DJ_NAME = "<a href='" . RADIOSTATUS_SELF . "../../profile.php?lookup=" . $data['user_id'] . "'>" . trimlink($server_name_rlf, 20) . "</a>"; if ($data['user_avatar'] && file_exists(IMAGES . "avatars/" . $data['user_avatar'])) { $DJ_PIC = RADIOSTATUS_SELF . IMAGES . "avatars/" . $data['user_avatar']; } else { $DJ_PIC = RADIOSTATUS_SELF . "images/nopic.gif"; } // if (array_key_exists("user_aim", $data) && $data['user_aim']) { // $MSG_AIM="<img src='".RADIOSTATUS_SELF."images/aim.gif' border='0' width='16' height='16' alt='AIM' onclick='msg(\"".$data['user_aim']."\")' />"; // } else { // $MSG_AIM=""; // } // if (array_key_exists("user_icq", $data) && $data['user_icq']) { // $MSG_ICQ="<img src='".RADIOSTATUS_SELF."images/icq.gif' border='0' width='16' height='16' alt='ICQ' onclick='msg(\"".$data['user_icq']."\")' />"; // } else { // $MSG_ICQ=""; // } // if (array_key_exists("user_msn", $data) && $data['user_msn']) { // $MSG_MSN="<img src='".RADIOSTATUS_SELF."images/msn.gif' border='0' width='16' height='16' alt='MSN' onclick='msg(\"".$data['user_msn']."\")' />"; // } else { // $MSG_MSN=""; // } // if (array_key_exists("user_yahoo", $data) && $data['user_yahoo']) { // $MSG_YAHOO="<img src='".RADIOSTATUS_SELF."images/yahoo.gif' border='0' width='16' height='16' alt='Yahoo' onclick='msg(\"".$data['user_yahoo']."\")' />"; // } else { // $MSG_YAHOO=""; // } // if($server_data['gb']) { // $MSG_GWB="<img src='".RADIOSTATUS_SELF."images/popup.gif' border='0' alt='GB' onclick='gb(\"".$server_data['id']."\")' />"; // } else { // $MSG_GWB=""; // } $DJ_STYLE = 1; } else { $DJ_NAME = $locale['grrs_37']; $DJ_PIC = RADIOSTATUS_SELF . "images/autodj2.png"; $MSG_GWB = ""; $MSG_AIM = ""; $MSG_ICQ = ""; $MSG_MSN = ""; $MSG_YAHOO = ""; $DJ_STYLE = 0; } $ausgabe .= "<div align='center'>\n<hr class='side-hr' />\n<span style='font-weight: bold;color: #ff0000;font-size: 16px;'>" . $server_data['name'] . "</span>\n<hr class='side-hr' />\n</div>\n"; $ausgabe .= "<table align='center' border='0' cellpadding='1' cellspacing='1' width='150px'>\n"; $ausgabe .= "<tr>\n"; if ($DJ_STYLE == 1) { $ausgabe .= "<td colspan='2' align='center' height='25px' valign='middle'>" . $DJ_NAME . "</td>\n"; $ausgabe .= "</tr>\n"; $ausgabe .= "<tr>\n"; $ausgabe .= "<td width='50px' align='center'><img src='" . $DJ_PIC . "' border='0' height='100' alt='" . $server_name_rlf . "' /></td>\n"; $ausgabe .= "</tr>"; // $ausgabe .= "</tr><tr>\n"; // $ausgabe .= "<td valign='middle' align='center' height='60px'>".(($MSG_GWB != "" ? $MSG_GWB : "")."<br />".($MSG_AIM != "" ? $MSG_AIM : "")."    ".($MSG_ICQ != "" ? $MSG_ICQ : "")."    ".($MSG_MSN != "" ? $MSG_MSN : "")."    ".($MSG_YAHOO != "" ? $MSG_YAHOO : ""))."</td>\n"; // $ausgabe .= "</tr>\n"; } else { $ausgabe .= "<tr><td height='25px' valign='middle' align='center'><span style='font-weight: bold;'>" . $DJ_NAME . "</span></td>\n"; $ausgabe .= "<tr><td width='50px' align='center'><img src='" . $DJ_PIC . "' border='0' height='100' alt='" . $server_name_rlf . "' /></td></tr>\n"; //$ausgabe .= "<td> </td>\n"; $ausgabe .= "</tr>\n"; } $ausgabe .= "<tr>\n"; if (isset($_SERVER['HTTP_USER_AGENT']) && !preg_match('/firefox/i', $_SERVER['HTTP_USER_AGENT'])) { $ausgabe .= "<td colspan='2'><marquee name='marquee' behavior='scroll' scrollamount='2' scrolldelay='80' width='100%' onmouseover='this.stop()' onmouseout='this.start()'>" . $server->GetCurrentSongTitle() . "</marquee></td>\n"; } else { $ausgabe .= "<td colspan='2'><marquee scrollamount='2' scrolldelay='80'>" . $server->GetCurrentSongTitle() . "</marquee></td>\n"; } $ausgabe .= "</tr>\n"; $ausgabe .= "<tr>\n"; $ausgabe .= "<td colspan='2' align='center' height='40px' valign='middle'>" . rs_player($server_data['id'], $server_data['ip'], $server_data['port'], $server_data['ps'], $server_data['tele']) . "</td>\n"; $ausgabe .= "</tr>\n"; $ausgabe .= "</table>\n"; } else { $ausgabe .= "<div align='center'>\n<hr class='side-hr' />\n" . $server_data['name'] . "\n<hr class='side-hr' />\n"; $ausgabe .= "<img src='" . RADIOSTATUS_SELF . "images/offline.gif' border='0' alt='Offline' />\n</div>\n"; } } else { $ausgabe .= "<div align='center'>\n<hr class='side-hr' />\n" . $server_data['name'] . "\n<hr class='side-hr' />\n"; $ausgabe .= "<img src='" . RADIOSTATUS_SELF . "images/offline.gif' border='0' alt='Offline' />"; if (iSUPERADMIN) { $ausgabe .= "<br />" . $server->GetError(); } $ausgabe .= "</div>\n"; } return $ausgabe; }
function wunsch_sound($file, $start, $loop) { echo "<object type='application/x-shockwave-flash' data='" . INFUSIONS . "gr_radiostatus_panel/standard.swf?src=" . INFUSIONS . "gr_radiostatus_panel/" . $file . ".mp3&autostart=" . $start . "&loop=" . $loop . "' width='0' height='0'></object>"; } if (isset($_GET['delete']) && isnum($_GET['delete'])) { $result = dbquery("DELETE FROM " . DB_GR_RADIOSTATUS_GRUSSBOX . " WHERE rsgb_id='" . $_GET['delete'] . "'"); redirect(FUSION_SELF . "?id=" . $_GET['id'] . "&admin"); } opentable($data['rs_name'] . " - " . $locale['grrs_06']); if (function_exists('fsockopen')) { include INFUSIONS . "gr_radiostatus_panel/gr_radiostatus_class.php"; // Live.... $server = ""; $server = new SHOUTcast(); if ($server->GetStatus($data['rs_ip'], $data['rs_port'], $data['rs_pw'])) { if ($server->GetStreamStatus()) { echo "<table cellpadding='0' cellspacing='0' width='100%' align='center' class='tbl-border'>\n<tr>\n"; echo "<td class='tbl1' width='50%'>Aktuelle Zuhörer:</td>\n"; echo "<td class='tbl1' width='50%'>" . $server->GetCurrentListeners() . "/" . $server->GetMaxListeners() . "</td>\n"; echo "</tr>\n</table>\n"; } } // .... Live } $result = dbquery("SELECT * FROM " . DB_GR_RADIOSTATUS_GRUSSBOX . " WHERE rsgb_stream='" . $_GET['id'] . "' ORDER BY rsgb_time LIMIT " . $_GET['rowstart'] . ",5"); if (dbrows($result)) { echo "<table cellpadding='1' cellspacing='1' width='100%' align='center' class='tbl-border'>\n"; echo "<tr>\n"; echo "<td class='tbl1' width='100px'>" . $locale['grrs_01'] . "</td>\n"; echo "<td class='tbl1' width='100px'>" . $locale['grrs_51'] . "</td>\n"; echo "<td class='tbl1'>" . $locale['grrs_52'] . "</td>\n";