|
From: OryNider <ory...@us...> - 2008-03-21 08:54:02
|
Update of /cvsroot/mxbb/mx_radiocast/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv22296/includes Modified Files: radiocast_cat.php radiocast_comment.php radiocast_list.php radiocast_player.php radiocast_stream.php Log Message: version 1.02 Index: radiocast_comment.php =================================================================== RCS file: /cvsroot/mxbb/mx_radiocast/includes/radiocast_comment.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** radiocast_comment.php 28 Jan 2008 21:59:28 -0000 1.2 --- radiocast_comment.php 21 Mar 2008 08:51:00 -0000 1.3 *************** *** 29,33 **** // Start session management // ! $mx_user->init($user_ip, PAGE_INDEX); // // End session management --- 29,33 ---- // Start session management // ! $mx_user->init($user_ip, PAGE_INDEX); // // End session management *************** *** 168,172 **** if (!$userdata['session_logged_in']) { ! mx_redirect(append_sid($mx_root_path . "login.php?redirect=" . this_rc_loginurl("radiocast_mode=radiocast_comment&station_id=$station_id"), true)); exit; } --- 168,172 ---- if (!$userdata['session_logged_in']) { ! mx_redirect(append_sid($mx_root_path . "login.php?redirect=" . this_rc_loginurl("radiocast_mode=radiocast_comment&station_id=$station_id"), true)); exit; } *************** *** 327,331 **** 'POSTER' => $poster, 'TIME' => create_date($board_config['default_dateformat'], $commentrow[$i]['comment_time'], $board_config['board_timezone']), ! 'IP' => ($userdata['user_level'] == ADMIN) ? '-----------------------------------<br />' . $lang['IP_Address'] . ': <a href="http://www.nic.com/cgi-bin/whois.cgi?query=' . phpBB2::decode_ip($commentrow[$i]['comment_user_ip']) . '" target="_blank">' . phpBB2::decode_ip($commentrow[$i]['comment_user_ip']) .'</a><br />' : '', 'TEXT' => nl2br($commentrow[$i]['comment_text']), --- 327,331 ---- 'POSTER' => $poster, 'TIME' => create_date($board_config['default_dateformat'], $commentrow[$i]['comment_time'], $board_config['board_timezone']), ! 'IP' => ($userdata['user_level'] == ADMIN) ? '-----------------------------------<br />' . $lang['IP_Address'] . ': <a href="http://www.nic.com/cgi-bin/whois.cgi?query=' . decode_ip($commentrow[$i]['comment_user_ip']) . '" target="_blank">' . decode_ip($commentrow[$i]['comment_user_ip']) .'</a><br />' : '', 'TEXT' => nl2br($commentrow[$i]['comment_text']), *************** *** 459,463 **** if (!$userdata['session_logged_in']) { ! mx_redirect(append_sid($mx_root_path . "login.php?redirect=" . this_rc_mxurl("radiocast_mode=radiocast_comment&station_id=$station_id"), true)); } else --- 459,463 ---- if (!$userdata['session_logged_in']) { ! mx_redirect(append_sid($mx_root_path . "login.php?redirect=" . this_rc_mxurl("radiocast_mode=radiocast_comment&station_id=$station_id"), true)); } else Index: radiocast_player.php =================================================================== RCS file: /cvsroot/mxbb/mx_radiocast/includes/radiocast_player.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** radiocast_player.php 17 Sep 2007 07:19:37 -0000 1.3 --- radiocast_player.php 21 Mar 2008 08:51:07 -0000 1.4 *************** *** 50,54 **** $radiocast_root_path = $module_root_path . 'radiocast_mod/'; $station_image_path = RADIOCAST_IMAGE_UPLOAD_PATH; ! $station_image_default = $mx_images['no_image']; // The default image // --- 50,54 ---- $radiocast_root_path = $module_root_path . 'radiocast_mod/'; $station_image_path = RADIOCAST_IMAGE_UPLOAD_PATH; ! $station_image_default = $images['no_image']; // The default image // *************** *** 267,271 **** if (!$userdata['session_logged_in']) { ! mx_redirect(append_sid($mx_root_path . "login.php?redirect=" . this_rc_loginurl("radiocast_mode=radiocast_player&station_id=$station_id"), true)); } else --- 267,271 ---- if (!$userdata['session_logged_in']) { ! mx_redirect(mx_append_sid($mx_root_path . "login.php?redirect=" . this_rc_loginurl("radiocast_mode=radiocast_player&station_id=$station_id"), true)); } else *************** *** 328,332 **** else { ! $poster = '<a href="'. append_sid($phpbb_root_path . "profile.$phpEx?mode=viewprofile&". POST_USERS_URL .'='. $thisstation['user_id']) .'">'. $thisstation['username'] .'</a>'; } --- 328,332 ---- else { ! $poster = '<a href="'. mx_append_sid($phpbb_root_path . "profile.$phpEx?mode=viewprofile&". POST_USERS_URL .'='. $thisstation['user_id']) .'">'. $thisstation['username'] .'</a>'; } *************** *** 352,356 **** { $template->assign_block_vars('flash', array()); ! $url_download = append_sid(this_rc_mxurl("radiocast_mode=radiocast_download&station_id=$station_id")); $url_video = $thisstation['station_url']; } --- 352,356 ---- { $template->assign_block_vars('flash', array()); ! $url_download = mx_append_sid(this_rc_mxurl("radiocast_mode=radiocast_download&station_id=$station_id")); $url_video = $thisstation['station_url']; } *************** *** 358,362 **** { $template->assign_block_vars('ram', array()); ! $url_download = append_sid(this_rc_mxurl("radiocast_mode=radiocast_download&station_id=$station_id")); $url_video = $url_download; } --- 358,362 ---- { $template->assign_block_vars('ram', array()); ! $url_download = mx_append_sid(this_rc_mxurl("radiocast_mode=radiocast_download&station_id=$station_id")); $url_video = $url_download; } *************** *** 364,368 **** { $template->assign_block_vars('rm', array()); ! $url_download = append_sid(this_rc_mxurl("radiocast_mode=radiocast_download&station_id=$station_id")); $url_video = $url_download; } --- 364,368 ---- { $template->assign_block_vars('rm', array()); ! $url_download = mx_append_sid(this_rc_mxurl("radiocast_mode=radiocast_download&station_id=$station_id")); $url_video = $url_download; } *************** *** 370,374 **** { $template->assign_block_vars('qt', array()); ! $url_download = append_sid(this_rc_mxurl("radiocast_mode=radiocast_download&station_id=$station_id")); $url_video = $url_download; } --- 370,374 ---- { $template->assign_block_vars('qt', array()); ! $url_download = mx_append_sid(this_rc_mxurl("radiocast_mode=radiocast_download&station_id=$station_id")); $url_video = $url_download; } *************** *** 379,383 **** if ( $thisstation['station_url'] == '' ) { ! $url_download = append_sid(this_rc_mxurl("radiocast_mode=radiocast_download&station_id=$station_id")); $url_video = $url_download; } --- 379,383 ---- if ( $thisstation['station_url'] == '' ) { ! $url_download = mx_append_sid(this_rc_mxurl("radiocast_mode=radiocast_download&station_id=$station_id")); $url_video = $url_download; } *************** *** 409,414 **** if( ($station_filetype == 'pls') && !empty($thisstation['station_url']) ) { ! $url_download = append_sid($module_root_path . 'radiocast.' . $phpEx . '?radiocast_mode=radiocast_stream&station_id=' . $station_id); ! $url_station = append_sid($module_root_path . 'radiocast.' . $phpEx . '?radiocast_mode=radiocast_stream&station_id=' . $station_id); $lang['Download'] = ( !empty($lang['Listen']) ? $lang['Listen'] : 'Listen URL' ); $url_video = $url_download; --- 409,414 ---- if( ($station_filetype == 'pls') && !empty($thisstation['station_url']) ) { ! $url_download = mx_append_sid($module_root_path . 'radiocast.' . $phpEx . '?radiocast_mode=radiocast_stream&station_id=' . $station_id); ! $url_station = mx_append_sid($module_root_path . 'radiocast.' . $phpEx . '?radiocast_mode=radiocast_stream&station_id=' . $station_id); $lang['Download'] = ( !empty($lang['Listen']) ? $lang['Listen'] : 'Listen URL' ); $url_video = $url_download; *************** *** 417,423 **** { ! //$url_download = append_sid($module_root_path . 'radiocast.' . $phpEx . '?radiocast_mode=radiocast_download&station_id=' . $station_id); ! $url_download = append_sid(this_rc_mxurl("radiocast_mode=radiocast_download&station_id=" . $station_id)); ! $url_station = append_sid(this_rc_mxurl("radiocast_mode=radiocast_download&station_id=" . $station_id)); $url_video = $url_download; } --- 417,423 ---- { ! //$url_download = mx_append_sid($module_root_path . 'radiocast.' . $phpEx . '?radiocast_mode=radiocast_download&station_id=' . $station_id); ! $url_download = mx_append_sid(this_rc_mxurl("radiocast_mode=radiocast_download&station_id=" . $station_id)); ! $url_station = mx_append_sid(this_rc_mxurl("radiocast_mode=radiocast_download&station_id=" . $station_id)); $url_video = $url_download; } *************** *** 442,447 **** if( ($station_filetype == 'pls') && !empty($thisstation['station_url']) ) { ! $url_download = append_sid(PORTAL_URL . $module_root_path . 'radiocast.' . $phpEx . '?radiocast_mode=radiocast_stream&station_id=' . $station_id); ! $url_station = append_sid(PORTAL_URL . $module_root_path . 'radiocast.' . $phpEx . '?radiocast_mode=radiocast_stream&station_id=' . $station_id); $lang['Download'] = ( !empty($lang['Listen']) ? $lang['Listen'] : 'Listen URL' ); $url_video = $url_download; --- 442,447 ---- if( ($station_filetype == 'pls') && !empty($thisstation['station_url']) ) { ! $url_download = mx_append_sid(PORTAL_URL . $module_root_path . 'radiocast.' . $phpEx . '?radiocast_mode=radiocast_stream&station_id=' . $station_id); ! $url_station = mx_append_sid(PORTAL_URL . $module_root_path . 'radiocast.' . $phpEx . '?radiocast_mode=radiocast_stream&station_id=' . $station_id); $lang['Download'] = ( !empty($lang['Listen']) ? $lang['Listen'] : 'Listen URL' ); $url_video = $url_download; *************** *** 451,461 **** if( !empty($thisstation['station_url']) ) { ! $url_download = append_sid($thisstation['station_url']); ! $url_station = append_sid($thisstation['station_url']); } else { ! $url_download = append_sid(this_rc_mxurl("radiocast_mode=radiocast_download&station_id=" . $station_id)); ! $url_station = append_sid(this_rc_mxurl("radiocast_mode=radiocast_download&station_id=" . $station_id)); } $lang['Download'] = ( !empty($lang['Listen']) ? $lang['Listen'] : 'Listen URL' ); --- 451,461 ---- if( !empty($thisstation['station_url']) ) { ! $url_download = mx_append_sid($thisstation['station_url']); ! $url_station = mx_append_sid($thisstation['station_url']); } else { ! $url_download = mx_append_sid(this_rc_mxurl("radiocast_mode=radiocast_download&station_id=" . $station_id)); ! $url_station = mx_append_sid(this_rc_mxurl("radiocast_mode=radiocast_download&station_id=" . $station_id)); } $lang['Download'] = ( !empty($lang['Listen']) ? $lang['Listen'] : 'Listen URL' ); *************** *** 466,483 **** if( empty($url_station) ) { ! //$url_station = append_sid($module_root_path . 'radiocast.' . $phpEx . '?radiocast_mode=radiocast_station&station_id=' . $station_id . '&player_mode=' . $player_mode . '&stream_mode=' . $stream_mode); ! $url_station = append_sid(this_rc_mxurl("radiocast_mode=radiocast_station&station_id=" . $station_id . "&player_mode=" . $player_mode . "&stream_mode=" . $stream_mode, true)); } ! $url_media = append_sid(this_rc_mxurl("radiocast_mode=radiocast_player&station_id=" . $station_id . "&player_mode=" . 'media' . "&stream_mode=" . $stream_mode . "&block_mode=" . $block_mode, true)); ! $url_real = append_sid(this_rc_mxurl("radiocast_mode=radiocast_player&station_id=" . $station_id . "&player_mode=" . 'real' . "&stream_mode=" . $stream_mode . "&block_mode=" . $block_mode, true)); ! $url_forced = append_sid(this_rc_mxurl("radiocast_mode=radiocast_player&station_id=" . $station_id . "&player_mode=" . $player_mode . "&stream_mode=" . 'forced' . "&block_mode=" . $block_mode, true)); ! $url_window = append_sid($module_root_path . "radiocast." . $phpEx . "?radiocast_mode=radiocast_player&station_id=" . $station_id . "&player_mode=" . $player_mode . "&stream_mode=" . $stream_mode . "&block_mode=" . 'true', true); $template->assign_vars(array( 'CAT_TITLE' => $thiscat['cat_title'], ! 'U_VIEW_CAT' => append_sid(this_rc_mxurl("radiocast_mode=radiocast_cat&cat_id=$cat_id")), ! //'U_STATION' => append_sid($module_root_path . 'radiocast.' . $phpEx . '?radiocast_mode=radiocast_station&station_id=' . $station_id), 'U_STATION' => $url_station, --- 466,483 ---- if( empty($url_station) ) { ! //$url_station = mx_append_sid($module_root_path . 'radiocast.' . $phpEx . '?radiocast_mode=radiocast_station&station_id=' . $station_id . '&player_mode=' . $player_mode . '&stream_mode=' . $stream_mode); ! $url_station = mx_append_sid(this_rc_mxurl("radiocast_mode=radiocast_station&station_id=" . $station_id . "&player_mode=" . $player_mode . "&stream_mode=" . $stream_mode, false)); } ! $url_media = mx_append_sid(this_rc_mxurl("radiocast_mode=radiocast_player&station_id=" . $station_id . "&player_mode=" . 'media' . "&stream_mode=" . $stream_mode . "&block_mode=" . $block_mode, false)); ! $url_real = mx_append_sid(this_rc_mxurl("radiocast_mode=radiocast_player&station_id=" . $station_id . "&player_mode=" . 'real' . "&stream_mode=" . $stream_mode . "&block_mode=" . $block_mode, false)); ! $url_forced = mx_append_sid(this_rc_mxurl("radiocast_mode=radiocast_player&station_id=" . $station_id . "&player_mode=" . $player_mode . "&stream_mode=" . 'forced' . "&block_mode=" . $block_mode, false)); ! $url_window = mx_append_sid(this_rc_mxurl("radiocast_mode=radiocast_player&station_id=" . $station_id . "&player_mode=" . $player_mode . "&stream_mode=" . $stream_mode . "&block_mode=" . 'true', true)); $template->assign_vars(array( 'CAT_TITLE' => $thiscat['cat_title'], ! 'U_VIEW_CAT' => mx_append_sid(this_rc_mxurl("radiocast_mode=radiocast_cat&cat_id=$cat_id", false)), ! //'U_STATION' => mx_append_sid($module_root_path . 'radiocast.' . $phpEx . '?radiocast_mode=radiocast_station&station_id=' . $station_id), 'U_STATION' => $url_station, *************** *** 490,500 **** 'U_FORCED' => $url_forced, ! 'U_IMG' => append_sid("$img_id"), ! 'IMG_REAL_FRONT' => $mx_images['real_front'], ! 'IMG_WMP_FRONT' => $mx_images['wmp_front'], ! 'IMG_IFRAME_BG' => $mx_images['iframe_bg'], 'STATION_TITLE' => $thisstation['station_title'], --- 490,500 ---- 'U_FORCED' => $url_forced, ! 'U_IMG' => mx_append_sid("$img_id"), ! 'IMG_REAL_FRONT' => $images['real_front'], ! 'IMG_WMP_FRONT' => $images['wmp_front'], ! 'IMG_IFRAME_BG' => $images['iframe_bg'], 'STATION_TITLE' => $thisstation['station_title'], *************** *** 512,516 **** 'MODULE_PATH' => $module_root_path, ! 'STATION_TIME' => create_date($board_config['default_dateformat'], $thisstation['station_time'], $board_config['board_timezone']), 'STATION_VIEW' => $thisstation['station_view_count'], --- 512,516 ---- 'MODULE_PATH' => $module_root_path, ! 'STATION_TIME' => phpBB2::create_date($board_config['default_dateformat'], $thisstation['station_time'], $board_config['board_timezone']), 'STATION_VIEW' => $thisstation['station_view_count'], *************** *** 522,532 **** 'STATION_COMMENTS' => $thisstation['comments'], ! 'U_RATE' => append_sid(this_rc_mxurl("radiocast_mode=radiocast_rate&station_id=$station_id")), ! 'U_COMMENT' => append_sid(this_rc_mxurl("radiocast_mode=radiocast_comment&station_id=$station_id")), 'U_DOWNLOAD' => $url_download, ! 'U_NEXT' => append_sid(this_rc_mxurl("radiocast_mode=radiocast_player&station_id=$station_id&mode=next")), ! 'U_PREVIOUS' => append_sid(this_rc_mxurl("radiocast_mode=radiocast_player&station_id=$station_id&mode=previous")), 'L_NEXT' => $lang['Next'], --- 522,532 ---- 'STATION_COMMENTS' => $thisstation['comments'], ! 'U_RATE' => mx_append_sid(this_rc_mxurl("radiocast_mode=radiocast_rate&station_id=$station_id", false)), ! 'U_COMMENT' => mx_append_sid(this_rc_mxurl("radiocast_mode=radiocast_comment&station_id=$station_id", false)), 'U_DOWNLOAD' => $url_download, ! 'U_NEXT' => mx_append_sid(this_rc_mxurl("radiocast_mode=radiocast_player&station_id=$station_id&mode=next", false)), ! 'U_PREVIOUS' => mx_append_sid(this_rc_mxurl("radiocast_mode=radiocast_player&station_id=$station_id&mode=previous", false)), 'L_NEXT' => $lang['Next'], *************** *** 537,545 **** 'RADIOCAST_VERSION' => '2' . $radiocast_config['radiocast_version'], 'L_INDEX' => '<<', ! 'U_INDEX' => append_sid($mx_root_path . "index.".$phpEx), 'L_RADIOCAST_INDEX' => $lang['Radio_Cast'], 'L_RADIOCAST' => $lang['Radio'], ! 'U_RADIOCAST' => append_sid(this_rc_mxurl()), ! 'U_MX_RADIOCAST' => append_sid(this_rc_portalurl()), 'WIDTH' => ( !empty($media_width) ? $media_width : '320' ), --- 537,545 ---- 'RADIOCAST_VERSION' => '2' . $radiocast_config['radiocast_version'], 'L_INDEX' => '<<', ! 'U_INDEX' => mx_append_sid($mx_root_path . "index.".$phpEx), 'L_RADIOCAST_INDEX' => $lang['Radio_Cast'], 'L_RADIOCAST' => $lang['Radio'], ! 'U_RADIOCAST' => mx_append_sid(this_rc_mxurl()), ! 'U_MX_RADIOCAST' => mx_append_sid(this_rc_portalurl()), 'WIDTH' => ( !empty($media_width) ? $media_width : '320' ), Index: radiocast_cat.php =================================================================== RCS file: /cvsroot/mxbb/mx_radiocast/includes/radiocast_cat.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** radiocast_cat.php 28 Jan 2008 21:59:28 -0000 1.2 --- radiocast_cat.php 21 Mar 2008 08:50:59 -0000 1.3 *************** *** 9,13 **** */ ! // MX if ( !defined('IN_PORTAL') ) { --- 9,13 ---- */ ! //mxBB if ( !defined('IN_PORTAL') ) { *************** *** 15,42 **** } - // - // Let's include some stuff... - // - $phpEx = substr(strrchr(__FILE__, '.'), 1); - - if ( !defined('TEMPLATE_ROOT_PATH') ) - { - include_once($mx_root_path . 'common.' . $phpEx); - - // - // Start session management - // - $mx_user->init($user_ip, PAGE_INDEX); - // - // End session management - // - } - - $radiocast_root_path = $module_root_path . 'radiocast_mod/'; - - // - // Get general music information - // - include_once($radiocast_root_path . 'radiocast_common.'.$phpEx); // ------------------------------------ --- 15,18 ---- *************** *** 96,104 **** mx_message_die(GENERAL_MESSAGE, $lang['Category_not_exist']); } // // END cat info // - // ------------------------------------ // Check permissions --- 72,100 ---- mx_message_die(GENERAL_MESSAGE, $lang['Category_not_exist']); } + + $cat_parent = $thiscat['cat_parent']; + + if ($cat_parent != 0) + { + $sql = "SELECT cat_id,cat_title + FROM ". RADIOCAST_CAT_TABLE ." + WHERE cat_id = $cat_parent"; + if ( $result = $db->sql_query($sql) ) + { + $thiscat_parent = array(); + $thiscat_parent = $db->sql_fetchrow($result); + + $template->assign_vars(array( + 'U_VIEW_CAT_PARENT' => mx_append_sid(this_rc_mxurl("c=" . $thiscat_parent['cat_id'])), + 'U_NAV_CAT_PARENT' => ' ' . $lang['Nav_Separator'] . ' <a class="nav" href="' . mx_append_sid(this_rc_mxurl("c=" . $thiscat_parent['cat_id'])) . '">' . $thiscat_parent['cat_title'] . '</a>', + 'CAT_PARENT_TITLE' => $thiscat_parent['cat_title'], + 'CAT_PARENT' => $thiscat_parent['cat_id']) + ); + } + } // // END cat info // // ------------------------------------ // Check permissions *************** *** 108,112 **** if (!$userdata['session_logged_in']) { ! mx_redirect(append_sid($mx_root_path . "login.php?redirect=" . this_rc_loginurl("radiocast_mode=radiocast_cat&cat_id=$cat_id"), true)); } else --- 104,108 ---- if (!$userdata['session_logged_in']) { ! mx_redirect(mx_append_sid($mx_root_path . "login.php?redirect=" . this_rc_loginurl("radiocast_mode=radiocast_cat&cat_id=$cat_id"), true)); } else *************** *** 115,118 **** --- 111,115 ---- } } + if ( $auth_data['upload'] ) { *************** *** 124,128 **** // - // ------------------------------------ // Build Auth List --- 121,124 ---- *************** *** 150,154 **** $auth_list .= sprintf($lang['RadioCast_moderate_can'], '<a href="'. append_sid(this_rc_mxurl("radiocast_mode=radiocast_modcp&cat_id=$cat_id")) .'">', '</a>'); } - // // END Auth List --- 146,149 ---- *************** *** 186,190 **** for ($j = 0; $j < count($grouprows); $j++) { ! $group_link = '<a href="'. append_sid($phpbb_root_path . "groupcp.$phpEx?". POST_GROUPS_URL .'='. $grouprows[$j]['group_id']) .'">'. $grouprows[$j]['group_name'] .'</a>'; $moderators_list .= ($moderators_list == '') ? $group_link : ', ' . $group_link; --- 181,185 ---- for ($j = 0; $j < count($grouprows); $j++) { ! $group_link = '<a href="'. mx_append_sid($phpbb_root_path . "groupcp.$phpEx?". POST_GROUPS_URL .'='. $grouprows[$j]['group_id']) .'">'. $grouprows[$j]['group_name'] .'</a>'; $moderators_list .= ($moderators_list == '') ? $group_link : ', ' . $group_link; *************** *** 201,205 **** // - // ------------------------------------ // Build the thumbnail page --- 196,199 ---- *************** *** 350,363 **** } ! // ! // Update the music view counter ! // ! $sql2 = "UPDATE " . RADIOCAST_CAT_TABLE . " ! SET cat_views = cat_views + 1 ! WHERE cat_id = $cat_id"; ! if ( !$db->sql_query($sql2) ) ! { ! mx_message_die(GENERAL_ERROR, "Could not update music views.", '', __LINE__, __FILE__, $sql2); ! } $stationrow = array(); --- 344,357 ---- } ! // ! // Update the music view counter ! // ! $sql = "UPDATE " . RADIOCAST_CAT_TABLE . " ! SET cat_views = cat_views + 1 ! WHERE cat_id = $cat_id"; ! if ( !$db->sql_query($sql) ) ! { ! mx_message_die(GENERAL_ERROR, "Could not update music views.", '', __LINE__, __FILE__, $sql); ! } $stationrow = array(); *************** *** 368,372 **** } - for ($i = 0; $i < count($stationrow); $i += $radiocast_config['cols_per_page']) { --- 362,365 ---- *************** *** 397,401 **** $approval_mode = ($stationrow[$j]['station_approval'] == 0) ? 'approval' : 'unapproval'; ! $approval_link .= '<a href="'. append_sid(this_rc_mxurl("radiocast_mode=radiocast_modcp&mode=$approval_mode&station_id=". $stationrow[$j]['station_id'])) .'">'; $approval_link .= ($stationrow[$j]['station_approval'] == 0) ? '<b>'. $lang['Approve'] .'</b>' : $lang['Unapprove']; --- 390,394 ---- $approval_mode = ($stationrow[$j]['station_approval'] == 0) ? 'approval' : 'unapproval'; ! $approval_link .= '<a href="'. mx_append_sid(this_rc_mxurl("radiocast_mode=radiocast_modcp&mode=$approval_mode&station_id=". $stationrow[$j]['station_id'])) .'">'; $approval_link .= ($stationrow[$j]['station_approval'] == 0) ? '<b>'. $lang['Approve'] .'</b>' : $lang['Unapprove']; *************** *** 405,413 **** } ! $template->assign_block_vars('stationrow.stationcol', array( ! 'U_STATION' => append_sid(this_rc_mxurl("radiocast_mode=radiocast_player&station_id=". $stationrow[$j]['station_id'])), 'DESC' => $stationrow[$j]['station_desc'], ! 'APPROVAL' => $approval_link ! )); if( ($stationrow[$j]['user_id'] == RADIOCAST_GUEST) or ($stationrow[$j]['username'] == '') ) --- 398,407 ---- } ! $template->assign_block_vars('stationrow.songcol', array( ! 'U_STATION' => mx_append_sid(this_rc_mxurl("radiocast_mode=radiocast_player&station_id=". $stationrow[$j]['station_id'])), 'DESC' => $stationrow[$j]['station_desc'], ! 'APPROVAL' => $approval_link, ! ) ! ); if( ($stationrow[$j]['user_id'] == RADIOCAST_GUEST) or ($stationrow[$j]['username'] == '') ) *************** *** 417,450 **** else { ! $station_poster = '<a href="'. append_sid($phpbb_root_path . "profile.$phpEx?mode=viewprofile&". POST_USERS_URL .'='. $stationrow[$j]['user_id']) .'">'. $stationrow[$j]['username'] .'</a>'; } $template->assign_block_vars('stationrow.station_detail', array( ! 'TITLE' => '<a href="'. append_sid(this_rc_mxurl("radiocast_mode=radiocast_player&station_id=". $stationrow[$j]['station_id'])) . '">' . $stationrow[$j]['station_title'] . '</a>', 'SINGER' => $stationrow[$j]['station_singer'], 'POSTER' => $station_poster, ! 'RADIO_FRONT_IMG' => $mx_images['radio_front'], ! 'TIME' => create_date($board_config['default_dateformat'], $stationrow[$j]['station_time'], $board_config['board_timezone']), 'VIEW' => $stationrow[$j]['station_view_count'], ! 'RATING' => ($radiocast_config['rate'] == 1) ? ( '<a href="'. append_sid(this_rc_mxurl("radiocast_mode=radiocast_rate&station_id=". $stationrow[$j]['station_id']) . '">' . $stationrow[$j]['rating'] . '</a>')) : '', ! 'COMMENTS' => ($radiocast_config['comment'] == 1) ? ( '<a href="'. append_sid(this_rc_mxurl("radiocast_mode=radiocast_comment&station_id=". $stationrow[$j]['station_id'])) . '">' . $stationrow[$j]['comments'] . '</a>' ) : '', ! 'EDIT' => ( ( $auth_data['edit'] and ($stationrow[$j]['station_user_id'] == $userdata['user_id']) ) or ($auth_data['moderator'] and ($thiscat['cat_edit_level'] != RADIOCAST_ADMIN) ) or ($userdata['user_level'] == ADMIN) ) ? '<a href="'. append_sid(this_rc_mxurl("radiocast_mode=radiocast_edit&station_id=". $stationrow[$j]['station_id'])) . '">' . $lang['Edit_station'] . '</a>' : '', ! 'DELETE' => ( ( $auth_data['delete'] and ($stationrow[$j]['station_user_id'] == $userdata['user_id']) ) or ($auth_data['moderator'] and ($thiscat['cat_delete_level'] != RADIOCAST_ADMIN) ) or ($userdata['user_level'] == ADMIN) ) ? '<a href="'. append_sid(this_rc_mxurl("radiocast_mode=radiocast_delete&station_id=". $stationrow[$j]['station_id'])) . '">' . $lang['Delete_station'] . '</a>' : '', ! 'MOVE' => ($auth_data['moderator']) ? '<a href="'. append_sid(this_rc_mxurl("radiocast_mode=radiocast_modcp&mode=move&station_id=". $stationrow[$j]['station_id'])) .'">'. $lang['Move'] .'</a>' : '', ! 'LOCK' => ($auth_data['moderator']) ? '<a href="'. append_sid(this_rc_mxurl("radiocast_mode=radiocast_modcp&mode=". (($stationrow[$j]['station_lock'] == 0) ? 'lock' : 'unlock') ."&station_id=". $stationrow[$j]['station_id'])) .'">'. (($stationrow[$j]['station_lock'] == 0) ? $lang['Lock'] : $lang['Unlock']) .'</a>' : '', ! 'IP' => ($userdata['user_level'] == ADMIN) ? $lang['IP_Address'] . ': <a href="http://www.nic.com/cgi-bin/whois.cgi?query=' . phpBB2::decode_ip($stationrow[$j]['station_user_ip']) . '" target="_blank">' . phpBB2::decode_ip($stationrow[$j]['station_user_ip']) .'</a><br />' : '' ! ) ); } --- 411,843 ---- else { ! $station_poster = '<a href="'. mx_append_sid($phpbb_root_path . "profile.$phpEx?mode=viewprofile&". POST_USERS_URL .'='. $stationrow[$j]['user_id']) .'">'. $stationrow[$j]['username'] .'</a>'; ! } ! ! // ------------------------------------ ! // Get this song info ! // ------------------------------------ ! ! $station_id = $stationrow[$j]['station_id']; ! ! $sql = "SELECT s.*, u.user_id, u.username, r.rate_station_id, AVG(r.rate_point) AS rating, COUNT(DISTINCT c.comment_id) AS comments ! FROM ". RADIOCAST_TABLE ." AS s ! LEFT JOIN ". USERS_TABLE ." AS u ON s.station_user_id = u.user_id ! LEFT JOIN ". RADIOCAST_RATE_TABLE ." AS r ON s.station_id = r.rate_station_id ! LEFT JOIN ". RADIOCAST_COMMENT_TABLE ." AS c ON s.station_id = c.comment_station_id ! WHERE station_id = '$station_id' ! GROUP BY s.station_id"; ! if( !($result = $db->sql_query($sql)) ) ! { ! mx_message_die(GENERAL_ERROR, 'Could not query song information', '', __LINE__, __FILE__, $sql); ! } ! $thisstation = $db->sql_fetchrow($result); ! ! $cat_id = $thisstation['station_cat_id']; ! $user_id = $thisstation['station_user_id']; ! ! if ( $thisstation['station_imagename'] == '' ) ! { ! $img_id = $images['no_image']; } + else + { + $img_id = (PORTAL_URL . str_replace('./', '/', RADIOCAST_IMAGE_UPLOAD_PATH) . $thisstation['station_imagename']); + } + + if ( $thisstation['station_url'] == '' ) + { + $station_filetype = substr($thisstation['station_filename'], strlen($thisstation['station_filename']) - 3, 3); + $station_filename = ( !empty($thisstation['station_filename']) ? $thisstation['station_filename'] : '' ); + } + else + { + $station_filetype = substr($thisstation['station_url'], strlen($thisstation['station_url']) - 3, 3); + $station_url = $thisstation['station_url']; + } + + if ( ($thisstation['station_filetype'] == '') || ($station_filetype) && ($thisstation['station_filetype'] != $station_filetype) ) + { + // + // Update the song filetype + // + $sql = "UPDATE " . RADIOCAST_TABLE . " + SET station_filetype = '" . $station_filetype . "' + WHERE station_id = '" . $station_id . "'"; + + if ( !$db->sql_query($sql) ) + { + mx_message_die(GENERAL_ERROR, "Could not update song filetype.", '', __LINE__, __FILE__, $sql); + } + } + + $url_player = ''; + + // + // Media Center + // + if ( $station_filetype == 'swf' ) + { + $template->assign_block_vars('stationrow.flash', array()); + $url_download = mx_append_sid(this_rc_mxurl("radiocast_mode=radiocast_download&station_id=$station_id")); + $url_video = $url_download; + $row_type = 'flash'; + } + else if ( $station_filetype == 'ram' ) + { + $template->assign_block_vars('stationrow.ram', array()); + $url_download = mx_append_sid(this_rc_mxurl("radiocast_mode=radiocast_download&station_id=$station_id")); + $url_video = $url_download; + $row_type = 'ram'; + } + else if ( $station_filetype == '.rm' ) + { + $template->assign_block_vars('stationrow.rm', array()); + $url_download = mx_append_sid(this_rc_mxurl("radiocast_mode=radiocast_download&station_id=$station_id")); + $url_video = $url_download; + $row_type = 'rm'; + } + else if ( $station_filetype == '.qt' ) + { + $template->assign_block_vars('stationrow.qt', array()); + $url_download = mx_append_sid(this_rc_mxurl("radiocast_mode=radiocast_download&station_id=$station_id")); + $url_video = $url_download; + $row_type = 'qt'; + } + else if ( $station_filetype == 'flv' ) + { + /* + if ( !is_object($mx_page) ) + { + $mx_page = new mx_page(); + } + $mx_page->add_footer_text( $radiocast_root_path . 'radiocast_player.js', true ); + */ + + $template->assign_block_vars('stationrow.flv', array()); + $url_download = mx_append_sid(this_rc_mxurl("radiocast_mode=radiocast_download&station_id=$station_id")); + $url_video = $radiocast_root_path . 'radiocast_player.swf'; + $row_type = 'flv'; + } + else if ( ( $station_filetype == '.jpg' ) || ( $station_filetype == '.gif' ) || ( $station_filetype == '.png' ) ) + { + $url_download = !empty($thisstation['station_url']) ? $thisstation['station_url'] : mx_append_sid(this_rc_mxurl("radiocast_mode=radiocast_download&station_id=$station_id")); + $url_video = $url_download; + $row_type = 'img'; + + $template->assign_block_vars('stationrow.img', array( + 'VIDEO_URL' => $url_video, + 'SONG_URL' => $url_video + )); + } + else if ( ( $station_filetype == 'jpg' ) || ( $station_filetype == 'gif' ) || ( $station_filetype == 'png' ) ) + { + $url_download = !empty($thisstation['station_url']) ? $thisstation['station_url'] : mx_append_sid(this_rc_mxurl("radiocast_mode=radiocast_download&station_id=$station_id")); + $url_video = $url_download; + $row_type = 'img'; + + $template->assign_block_vars('stationrow.img', array( + 'VIDEO_URL' => $url_video, + 'SONG_URL' => $url_video + )); + } + else if( ($station_filetype == 'pls') && !empty($thisstation['station_url']) ) + { + $template->assign_block_vars('stationrow.media', array()); + $url_download = mx_append_sid($module_root_path . 'galerie_media.' . $phpEx . '?radiocast_mode=radiocast_stream&station_id=' . $station_id); + $lang['Download'] = ( !empty($lang['Listen']) ? $lang['Listen'] : 'Listen URL' ); + $url_video = $url_download; + $row_type = 'media'; + } + else if(!empty($thisstation['station_url'])) + { + $host = explode("//", $thisstation['station_url']); + $host = $host[1]; + $host = explode("/", $host); + $domain = $host[0]; + $counthost = count($host) - 1; + $docid2 = $host[$counthost]; + + // $domaintmp = explode(".", $domain, -1); // Php 5 only + // $sitename = implode(".", $domaintmp); + + if( !function_exists('mx_radiocast_sitename') ) + { + function mx_radiocast_sitename($domain) { + $domaintmp = explode(".", $domain); + + $y = count($domaintmp) - 1; + $r = ""; + for ($a = 0; $y > $a; $a++) { + $r .= ".".$domaintmp[$a]; + } + return $r; + } + } + + $sitename = substr(mx_radiocast_sitename($domain), 1); + + if( !function_exists('mx_radiocast_sitesufix') ) + { + function mx_radiocast_sitesufix($domain) { + $domaintmp = explode(".", $domain); + + $y = count($domaintmp) - 1; + $r = $domaintmp[$y];; + return $r; + } + } + + $sitesufix = mx_radiocast_sitesufix($domain); + + if (!empty($sitesufix) ) + { + if ($sitesufix == 'de') + { + $sitelngprefix = 'de.'; + } + else + { + $sitelngprefix = 'en.'; + } + } + else + { + $sitelngprefix = ''; + } + + if ($sitename == 'video.google') + { + $videoid['station_url'] = explode("-", $thisstation['station_url']); + + if (empty($videoid['station_url'][1]) ) + { + $docid['station_url'] = explode("?", $thisstation['station_url']); + + if (empty($docid['station_url'][1]) ) + { + $template->assign_block_vars('stationrow.flashvideo', array()); + $url_video = ( !empty($docid['station_url'][1]) ? 'http://' . $domain . '/googleplayer.swf?' . $docid['station_url'][1] : $thisstation['station_url'] ); + $url_download = ( !empty($docid['station_url'][1]) ? 'http://' . $domain . '/videoplay?' . $docid['station_url'][1] : $thisstation['station_url'] ); + $lang['Download'] = ( !empty($lang['Share']) ? $lang['Share'] : 'Share URL' ); + $row_type = 'flashvideo'; + } + else + { + $template->assign_block_vars('stationrow.youtube', array()); + $url_video = ( !empty($docid['station_url'][1]) ? 'http://' . $domain . '/googleplayer.swf?' . $docid['station_url'][1] : $thisstation['station_url'] ); + $url_download = ( !empty($docid['station_url'][1]) ? 'http://' . $domain . '/videoplay?' . $docid['station_url'][1] : $thisstation['station_url'] ); + $lang['Download'] = ( !empty($lang['Share']) ? $lang['Watch'] : 'Watch URL' ); + $row_type = 'youtube'; + } + } + else + { + $template->assign_block_vars('stationrow.youtube', array()); + $url_video = ( !empty($videoid['station_url'][1]) ? 'http://' . $domain . '/googleplayer.swf?docId=-' . $videoid['station_url'][1] : $thisstation['station_url'] ); + $url_download = ( !empty($videoid['station_url'][1]) ? 'http://' . $domain . '/videoplay?docid=-' . $videoid['station_url'][1] : $thisstation['station_url'] ); + $lang['Download'] = ( !empty($lang['Watch']) ? $lang['Watch'] : 'Watch URL' ); + $row_type = 'youtube'; + } + } + else if ( ($sitename == 'www.youtube') || ($sitename == 'youtube') ) + { + $videoid['station_url'] = explode("=", $thisstation['station_url']); + + if (empty($videoid['station_url'][1]) ) + { + $videoid['station_url'] = explode("/v/", $thisstation['station_url']); + } + + if (empty($videoid['station_url'][1]) ) + { + $template->assign_block_vars('stationrow.flashvideo', array()); + $row_type = 'flashvideo'; + } + else + { + $template->assign_block_vars('stationrow.youtube', array()); + $row_type = 'youtube'; + } + + if ($sitename == 'www.youtube') + { + $domain = 'youtube.' . $sitesufix; + } + + $url_download = mx_append_sid($thisstation['station_url']); + $lang['Download'] = ( !empty($lang['Share']) ? $lang['Share'] : 'Share URL' ); + $img_id = !empty($thisstation['station_imagename']) ? $thisstation['station_imagename'] : 'http://img.' . $domain . '/vi/' . $videoid['station_url'][1] . '/default.jpg'; + $url_video = ( !empty($videoid['station_url'][1]) ? 'http://' . $domain . '/v/' . $videoid['station_url'][1] : $url_download ); + //$url_player = !empty($videoid['station_url'][1]) ? 'http://' . $domain . '/player2.swf?video_id=' . $videoid['station_url'][1] : $url_download; + } + else if ( ($sitename == 'www.clipfish') || ($sitename == 'clipfish') ) + { + $thisvid['station_url'] = explode("videoid", $thisstation['station_url']); + $videoid['station_url'] = explode("=", $thisvid['station_url'][1]); + + if (empty($videoid['station_url'][1]) ) + { + $template->assign_block_vars('stationrow.flashvideo', array()); + + $url_download = mx_append_sid($thisstation['station_url']); + $lang['Download'] = ( !empty($lang['Direct_url']) ? $lang['Direct_url'] : 'Direct URL' ); + $url_video = $url_download; + $row_type = 'flashvideo'; + } + else + { + $template->assign_block_vars('stationrow.youtube', array()); + + $url_download = ( !empty($videoid['station_url'][1]) ? 'http://' . $domain . '/player.php?videoid=' . $videoid['station_url'][1] : $thisstation['station_url'] ); + $lang['Download'] = ( !empty($lang['Watch']) ? $lang['Watch'] : 'Watch URL' ); + $url_video = ( !empty($videoid['station_url'][1]) ? 'http://' . $domain . '/videoplayer.swf?as=0&videoid=' . $videoid['station_url'][1] : $url_download ); + $row_type = 'youtube'; + } + + } + else if ( ($sitename == 'www.myvideo') || ($sitename == 'myvideo') ) + { + if (empty($docid2) ) + { + $template->assign_block_vars('stationrow.flashvideo', array()); + + $url_download = mx_append_sid($thisstation['station_url']); + $lang['Download'] = ( !empty($lang['Direct_url']) ? $lang['Direct_url'] : 'Direct URL' ); + $url_video = $url_download; + $row_type = 'flashvideo'; + } + else + { + $template->assign_block_vars('stationrow.youtube', array()); + + $url_download = ( !empty($docid2) ? 'http://' . $domain . '/watch/' . $docid2 : $thisstation['station_url'] ); + $lang['Download'] = ( !empty($lang['Share']) ? $lang['Share'] : 'Share URL' ); + $url_video = ( !empty($docid2) ? 'http://' . $domain . '/movie/' . $docid2 : $url_download ); + $row_type = 'youtube'; + } + } + else if ( ($sitename == 'de.sevenload') || ($sitename == 'sevenload') || ($sitename == 'page.sevenload') || ($sitename == 'www.sevenload') ) + { + $videoid['station_url'] = explode("=", $thisstation['station_url']); + + if (empty($videoid['station_url'][1]) ) + { + if (empty($docid2) ) + { + $template->assign_block_vars('stationrow.flashvideo', array()); + + $url_download = mx_append_sid($thisstation['station_url']); + $lang['Download'] = ( !empty($lang['Direct_url']) ? $lang['Direct_url'] : 'Direct URL' ); + $url_video = $url_download; + $row_type = 'flashvideo'; + } + else + { + $template->assign_block_vars('stationrow.youtube', array()); + + $url_download = ( !empty($docid2) ? 'http://' . $sitelngprefix . 'sevenload.' . 'com' . '/videos/' . $docid2 : $thisstation['station_url'] ); + $lang['Download'] = ( !empty($lang['Share']) ? $lang['Share'] : 'Share URL' ); + $url_video = ( !empty($docid2) ? 'http://' . $domain . '/swf/player.swf?id=' . $docid2 : $url_download ); + $row_type = 'youtube'; + } + } + else + { + $template->assign_block_vars('stationrow.youtube', array()); + + $url_download = ( !empty($videoid['station_url'][1]) ? 'http://' . $sitelngprefix . 'sevenload.'. 'com' . '/videos/' . $videoid['station_url'][1] : $thisstation['station_url'] ); + $lang['Download'] = ( !empty($lang['Share']) ? $lang['Share'] : 'Share URL' ); + $url_video = ( !empty($videoid['station_url'][1]) ? 'http://' . $domain . '/swf/player.swf?id=' . $videoid['station_url'][1] : $url_download ); + $row_type = 'youtube'; + } + + } + else + { + $template->assign_block_vars('stationrow.media', array()); + $url_download = mx_append_sid($thisstation['station_url']); + $lang['Download'] = ( !empty($lang['Direct_url']) ? $lang['Direct_url'] : 'Direct URL' ); + $url_video = $url_download; + $row_type = 'media'; + } + } + else + { + $template->assign_block_vars('stationrow.media', array()); + //$url_download = mx_append_sid($module_root_path . 'galerie_media.' . $phpEx . '?radiocast_mode=radiocast_download&station_id=' . $station_id); + $url_download = mx_append_sid(this_rc_mxurl("radiocast_mode=radiocast_download&station_id=" . $station_id)); + $url_video = $url_download; + $row_type = 'media'; + } + + switch ($row_type) + { + case 'img': + $switch_row_type = 'img'; + break; + + default: + $switch_row_type = 'media'; + } + + if ($station_filetype == 'flv') + { + $url_song = PORTAL_URL. str_replace('./', '/', RADIOCAST_UPLOAD_PATH) . $thisstation['station_filename']; + } + else + { + $url_song = mx_append_sid(this_rc_mxurl("radiocast_mode=radiocast_song&station_id=" . $stationrow[$j]['station_id'], true)); + } + + $station_user_ip = (@function_exists( 'decode_ip' )) ? decode_ip($stationrow[$j]['station_user_ip']) : phpBB2::decode_ip($stationrow[$j]['station_user_ip']); $template->assign_block_vars('stationrow.station_detail', array( ! 'TITLE' => '<a href="'. mx_append_sid(this_rc_mxurl("radiocast_mode=radiocast_player&station_id=". $stationrow[$j]['station_id'])) . '">' . $stationrow[$j]['station_title'] . '</a>', ! ! 'U_STATION' => $url_song, ! ! 'SONG_TITLE' => $thisstation['station_title'], ! ! 'SONG_URL' => !empty($thisstation['station_url']) ? $thisstation['station_url'] : $url_song, ! ! 'SONG_THUMB_URL' => !empty($thisstation['station_url']) ? $thisstation['station_url'] : mx_append_sid(this_rc_mxurl("radiocast_mode=radiocast_song&station_id=" . $stationrow[$j]['station_id'] . "&item_size=425", true)), ! ! 'SONG_FULL_URL' => !empty($thisstation['station_url']) ? $thisstation['station_url'] : mx_append_sid(this_rc_mxurl("radiocast_mode=radiocast_song&station_id=" . $stationrow[$j]['station_id'] . "&item_size=800", true)), ! ! 'VIDEO_URL' => !empty($url_player) ? $url_player : $url_video, ! ! 'U_IMG' => mx_append_sid($img_id), 'SINGER' => $stationrow[$j]['station_singer'], 'POSTER' => $station_poster, + + 'RADIO_FRONT_IMG' => $images['radio_front'], + + 'WIDTH' => ( !empty($media_width) ? $media_width : '425' ), ! 'HEIGHT' => ( !empty($media_height) ? $media_height : '350' ), ! 'TIME' => (@function_exists( 'create_date' )) ? create_date($board_config['default_dateformat'], $stationrow[$j]['station_time'], $board_config['board_timezone']) : phpBB2::create_date($board_config['default_dateformat'], $stationrow[$j]['station_time'], $board_config['board_timezone']), 'VIEW' => $stationrow[$j]['station_view_count'], ! 'RATING' => ($radiocast_config['rate'] == 1) ? ( '<a href="'. mx_append_sid(this_rc_mxurl("radiocast_mode=radiocast_rate&station_id=". $stationrow[$j]['station_id']) . '">' . $stationrow[$j]['rating'] . '</a>')) : '', ! 'COMMENTS' => ($radiocast_config['comment'] == 1) ? ( '<a href="'. mx_append_sid(this_rc_mxurl("radiocast_mode=radiocast_comment&station_id=". $stationrow[$j]['station_id'])) . '">' . $stationrow[$j]['comments'] . '</a>' ) : '', ! 'EDIT' => ( ( $auth_data['edit'] and ($stationrow[$j]['station_user_id'] == $userdata['user_id']) ) or ($auth_data['moderator'] and ($thiscat['cat_edit_level'] != RADIOCAST_ADMIN) ) or ($userdata['user_level'] == ADMIN) ) ? '<a href="'. mx_append_sid(this_rc_mxurl("radiocast_mode=radiocast_edit&station_id=". $stationrow[$j]['station_id'])) . '">' . $lang['Edit_song'] . '</a>' : '', ! 'DELETE' => ( ( $auth_data['delete'] and ($stationrow[$j]['station_user_id'] == $userdata['user_id']) ) or ($auth_data['moderator'] and ($thiscat['cat_delete_level'] != RADIOCAST_ADMIN) ) or ($userdata['user_level'] == ADMIN) ) ? '<a href="'. mx_append_sid(this_rc_mxurl("radiocast_mode=radiocast_delete&station_id=". $stationrow[$j]['station_id'])) . '">' . $lang['Delete_song'] . '</a>' : '', ! 'MOVE' => ($auth_data['moderator']) ? '<a href="'. mx_append_sid(this_rc_mxurl("radiocast_mode=radiocast_modcp&mode=move&station_id=". $stationrow[$j]['station_id'])) .'">'. $lang['Move'] .'</a>' : '', ! 'LOCK' => ($auth_data['moderator']) ? '<a href="'. mx_append_sid(this_rc_mxurl("radiocast_mode=radiocast_modcp&mode=". (($stationrow[$j]['station_lock'] == 0) ? 'lock' : 'unlock') ."&station_id=". $stationrow[$j]['station_id'])) .'">'. (($stationrow[$j]['station_lock'] == 0) ? $lang['Lock'] : $lang['Unlock']) .'</a>' : '', ! 'IP' => ($userdata['user_level'] == ADMIN) ? $lang['IP_Address'] . ': <a href="http://www.nic.com/cgi-bin/whois.cgi?query=' . $station_user_ip . '" target="_blank">' . $station_user_ip .'</a><br />' : '', ! ! 'S_ROW_TYPE' => $row_type, ! ! 'SWITCH_ROW_TYPE' => $switch_row_type) ); } *************** *** 452,456 **** $template->assign_vars(array( ! 'PAGINATION' => generate_pagination(append_sid(this_rc_mxurl("radiocast_mode=radiocast_cat&cat_id=$cat_id&sort_method=$sort_method&sort_order=$sort_order")), $total_stations, $stations_per_page, $start), 'PAGE_NUMBER' => sprintf($lang['Page_of'], ( floor( $start / $stations_per_page ) + 1 ), ceil( $total_stations / $stations_per_page )) ) --- 845,849 ---- $template->assign_vars(array( ! 'PAGINATION' => mx_generate_pagination(mx_append_sid(this_rc_mxurl("radiocast_mode=radiocast_cat&cat_id=$cat_id&sort_method=$sort_method&sort_order=$sort_order")), $total_stations, $stations_per_page, $start), 'PAGE_NUMBER' => sprintf($lang['Page_of'], ( floor( $start / $stations_per_page ) + 1 ), ceil( $total_stations / $stations_per_page )) ) *************** *** 465,473 **** // - // ------------------------------------ // Build Jumpbox - based on $catrows which was created at the top of this file // ------------------------------------ ! $radiocast_jumpbox = '<form name="jumpbox" action="'. append_sid(this_rc_mxurl("radiocast_mode=radiocast_cat")) .'" method="get">'; $radiocast_jumpbox .= $lang['Jump_to'] . ': <select name="cat_id" onChange="forms[\'jumpbox\'].submit()">'; for ($i = 0; $i < count($catrows); $i++) --- 858,865 ---- // // ------------------------------------ // Build Jumpbox - based on $catrows which was created at the top of this file // ------------------------------------ ! $radiocast_jumpbox = '<form name="jumpbox" action="'. mx_append_sid(this_rc_mxurl("radiocast_mode=radiocast_cat")) .'" method="get">'; $radiocast_jumpbox .= $lang['Jump_to'] . ': <select name="cat_id" onChange="forms[\'jumpbox\'].submit()">'; for ($i = 0; $i < count($catrows); $i++) *************** *** 485,489 **** // - // ------------------------------------ // additional sorting options --- 877,880 ---- *************** *** 509,514 **** } - - // // Start output of page --- 900,903 ---- *************** *** 525,536 **** $template->assign_vars(array( ! 'U_VIEW_CAT' => append_sid(this_rc_mxurl("radiocast_mode=radiocast_cat&cat_id=" . $cat_id)), 'CAT_TITLE' => $thiscat['cat_title'], 'L_MODERATORS' => $lang['Moderators'], 'MODERATORS' => $moderators_list, ! ! 'U_POST_STATION' => append_sid(this_rc_mxurl("radiocast_mode=radiocast_add&cat_id=" . $cat_id)), ! 'POST_STATION_IMG' => $mx_images['post_station'], 'L_POST_STATION' => $lang['Post_Station'], --- 914,925 ---- $template->assign_vars(array( ! 'U_VIEW_CAT' => mx_append_sid(this_rc_mxurl("radiocast_mode=radiocast_cat&cat_id=$cat_id")), 'CAT_TITLE' => $thiscat['cat_title'], 'L_MODERATORS' => $lang['Moderators'], 'MODERATORS' => $moderators_list, ! ! 'U_POST_STATION' => mx_append_sid(this_rc_mxurl("radiocast_mode=radiocast_add&cat_id=" . $cat_id)), ! 'POST_STATION_IMG' => $images['post_station'], 'L_POST_STATION' => $lang['Post_Station'], *************** *** 548,555 **** 'L_COMMENTS' => $lang['Comments'], - 'RADIOCAST_JUMPBOX' => $radiocast_jumpbox, ! 'S_RADIOCAST_ACTION' => append_sid(this_rc_mxurl("radiocast_mode=radiocast_cat&cat_id=$cat_id")), 'L_SELECT_SORT_METHOD' => $lang['Select_sort_method'], --- 937,943 ---- 'L_COMMENTS' => $lang['Comments'], 'RADIOCAST_JUMPBOX' => $radiocast_jumpbox, ! 'S_RADIOCAST_ACTION' => mx_append_sid(this_rc_mxurl("radiocast_mode=radiocast_cat&cat_id=$cat_id")), 'L_SELECT_SORT_METHOD' => $lang['Select_sort_method'], *************** *** 559,562 **** --- 947,951 ---- 'L_TIME' => $lang['Time'], 'L_STATION_TITLE' => $lang['Station_Title'], + 'L_PIC_TITLE' => $lang['Pic_Title'], 'L_SINGER' => $lang['Singer'], 'L_USERNAME' => $lang['Sort_Username'], *************** *** 578,595 **** 'SORT_DESC' => ($sort_order == 'DESC') ? 'selected="selected"' : '', 'NAV_SEP' => $lang['Nav_Separator'], 'NAV_DOT' => '•', 'RADIOCAST_VERSION' => '1' . $radiocast_config['radiocast_version'], 'L_INDEX' => '<<', ! 'U_INDEX' => append_sid($mx_root_path . "index.".$phpEx), 'L_RADIOCAST_INDEX' => $lang['Radio_Cast'], 'L_RADIOCAST' => $lang['Radio'], ! 'U_RADIOCAST' => append_sid(this_rc_mxurl()), ! 'U_MX_RADIOCAST' => append_sid(this_rc_portalurl()), 'S_AUTH_LIST' => $auth_list) ); - // // Generate the page --- 967,999 ---- 'SORT_DESC' => ($sort_order == 'DESC') ? 'selected="selected"' : '', + 'NAV_SEP' => $lang['Nav_Separator'], 'NAV_DOT' => '•', 'RADIOCAST_VERSION' => '1' . $radiocast_config['radiocast_version'], 'L_INDEX' => '<<', ! 'U_INDEX' => mx_append_sid($mx_root_path . "index.".$phpEx), 'L_RADIOCAST_INDEX' => $lang['Radio_Cast'], 'L_RADIOCAST' => $lang['Radio'], ! 'U_RADIOCAST' => mx_append_sid(this_rc_mxurl()), ! 'U_MX_RADIOCAST' => mx_append_sid(this_rc_portalurl()), ! ! 'WIDTH' => ( !empty($media_width) ? $media_width : '425' ), ! 'HEIGHT' => ( !empty($media_height) ? $media_height : '350' ), ! ! 'FLASH' => 'flash', ! 'RAM' => 'ram', ! 'FLASHVIDEO' => 'flashvideo', ! 'YOUTUBE' => 'youtube', ! 'QT' => 'qt', ! 'FLV' => 'flv', ! 'IMG' => 'img', ! 'MEDIA' => 'media', ! ! 'L_RSS' => ( !empty($lang['Rss_Feed']) ? $lang['Rss_Feed'] : 'RSS Feed' ), ! 'U_RSS' => mx_append_sid(this_rc_mxurl("radiocast_mode=radiocast_rss&cat_id=" . $cat_id . "&sid=" . $userdata['session_id'], true)), 'S_AUTH_LIST' => $auth_list) ); // // Generate the page *************** *** 602,604 **** --- 1006,1015 ---- } + // +------------------------------------------------------+ + // | Powered by Radio_Cast Online 2.0 (c) 2003 Cf Manager | + // +------------------------------------------------------+ + + // + // That's all Folks! + // -------------------- ?> \ No newline at end of file Index: radiocast_list.php =================================================================== RCS file: /cvsroot/mxbb/mx_radiocast/includes/radiocast_list.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** radiocast_list.php 8 Feb 2008 23:43:45 -0000 1.2 --- radiocast_list.php 21 Mar 2008 08:51:07 -0000 1.3 *************** *** 27,31 **** // Start session management // ! $mx_user->init($user_ip, PAGE_INDEX); // // End session management --- 27,31 ---- // Start session management // ! $mx_user->init($user_ip, PAGE_INDEX); // // End session management *************** *** 264,266 **** } ! ?> \ No newline at end of file --- 264,266 ---- } ! ?> |