$xoopsTpl = new XoopsTpl(); $radio_id = $_GET['select']; $sql = "\r\n\tSELECT radio_name, radio_stream, radio_url, radio_picture\r\n\tFROM " . $xoopsDB->prefix('debaserradio') . "\r\n\tWHERE radio_id = " . intval($radio_id) . ""; $result = $xoopsDB->query($sql); list($radio_name, $radio_stream, $radio_url, $radio_picture) = $xoopsDB->fetchRow($result); $xoopsTpl->assign('radio_name', $radio_name); $xoopsTpl->assign('radio_url', $radio_url); if ($radio_url != '') { $xoopsTpl->assign('urlavail', true); $xoopsTpl->assign('radio_url', $radio_url); } if ($radio_picture != '') { $xoopsTpl->assign('pictureavail', true); $xoopsTpl->assign('radio_picture', $radio_picture); } if (check_real($radio_stream) == true) { $xoopsTpl->assign('radioplayer', "<object id=player classid='clsid:cfcdaa03-8be4-11cf-b84b-0020afbbccfa' height='60' width='300'>\r\n\t\t<param name='controls' value='controlpanel,statusfield' />\r\n\t\t<param name='console' value='clip1' />\r\n\t\t<param name='autostart' value='1' />\r\n\t\t<param name='src' value='{$radio_stream}' />\r\n\t\t<embed src='{$radio_stream}' type='audio/x-pn-realaudio-plugin' console='clip1' controls='controlpanel,statusfield' height='60' width='300' autostart='true' pluginspage='http://www.real.com/'>\r\n\t\t</embed>\r\n\t\t<noembed><a href='{$radio_stream}>play {$radio_name}</a></noembed>\r\n\t\t</object>"); } else { $xoopsTpl->assign('radioplayer', "\r\n\t\t<object id='player' height='50' width='300' classid='clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95' codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#version=6,4,7,1112' standby='loading microsoft® windows® media player components...' type='application/x-oleobject'>\r\n\t\t<param name='filename' value='{$radio_stream}' />\r\n\t\t<param name='showcontrols' value='true' />\r\n\t\t<param name='showstatusbar' value='true' />\r\n\t\t<param name='showpositioncontrols' value='false' />\r\n\t\t<param name='showtracker' value='false' />\r\n\t\t<embed type='application/x-mplayer2' pluginspage = 'http://www.microsoft.com/windows/mediaplayer/' src='{$radio_stream}' name='player' width='300 height='60' autostart='true' showcontrols='1' showstatusbar='1' showdisplay='1'>\r\n\t\t</embed>\r\n\t\t<noembed><a href='{$radio_stream}'>play {$radio_name}</a></noembed>\r\n\t\t</object>"); } /* Function to check for real player files */ function check_real($t_url) { $temp_url = basename($t_url); $temp_url = trim($temp_url); $temp_url = strtolower($temp_url); $check_ram = substr($temp_url, -3); $check_rm = substr($temp_url, -2); $check_smil = substr($temp_url, -4); if ($check_rm == "rm") { return true;
} for ($g = 1; $g <= $tr_numb + $new_line1; $g++) { $qveda .= "<tr>"; $vrtikal = 'vertikal="' . $g . '"'; for ($i = 1; $i <= $month_day; $i++) { $horizontal = 'horizontal="' . $i . '"'; $week_day = "{$i}-{$month}-{$year}"; if (check_holyday("{$year}-{$month}-{$i}") == 1) { $background = 'red'; $name_r = ''; $hour = 0; $wsi = 0; $hco = 0; } else { $background = "none"; $rr = check_real("{$year}-{$month}-{$i}", "rigi" . $g, $project_id); $hour = 0; if ($rr[1] != '') { $background = $rr[1]; $name_r = $rr[2]; if ($rr[4] == 0) { $hour = $rr[3]; //round(((abs($rr[3]) / 60) / 60),2); } else { $hour = $rr[4]; //round(((abs($rr[4]) / 60) / 60),2); $hour1 = $rr[5]; //round(((abs($rr[5]) / 60) / 60),2); $hco = $i + 1; } $wsi = $rr[0];