You can subscribe to this list here.
| 2005 |
Jan
|
Feb
|
Mar
(95) |
Apr
(270) |
May
(111) |
Jun
|
Jul
|
Aug
(64) |
Sep
(130) |
Oct
(319) |
Nov
(17) |
Dec
(191) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2006 |
Jan
(53) |
Feb
|
Mar
|
Apr
|
May
(6) |
Jun
(387) |
Jul
(102) |
Aug
(247) |
Sep
(120) |
Oct
(1) |
Nov
(8) |
Dec
(21) |
| 2007 |
Jan
(38) |
Feb
(36) |
Mar
|
Apr
(32) |
May
(135) |
Jun
(523) |
Jul
(192) |
Aug
(103) |
Sep
(533) |
Oct
(77) |
Nov
(23) |
Dec
(203) |
| 2008 |
Jan
(312) |
Feb
(1193) |
Mar
(404) |
Apr
(67) |
May
(62) |
Jun
(497) |
Jul
(297) |
Aug
(110) |
Sep
(335) |
Oct
(256) |
Nov
(50) |
Dec
(118) |
| 2009 |
Jan
(67) |
Feb
(10) |
Mar
(1) |
Apr
(1) |
May
|
Jun
(10) |
Jul
(61) |
Aug
|
Sep
(16) |
Oct
(45) |
Nov
(12) |
Dec
(14) |
| 2010 |
Jan
(30) |
Feb
|
Mar
|
Apr
(4) |
May
|
Jun
|
Jul
(7) |
Aug
(7) |
Sep
(5) |
Oct
(5) |
Nov
|
Dec
|
| 2011 |
Jan
(7) |
Feb
(3) |
Mar
(89) |
Apr
(11) |
May
(5) |
Jun
|
Jul
(8) |
Aug
(1) |
Sep
(2) |
Oct
|
Nov
(2) |
Dec
(89) |
| 2012 |
Jan
(7) |
Feb
(1) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(4) |
Sep
(3) |
Oct
(42) |
Nov
(1) |
Dec
|
| 2013 |
Jan
|
Feb
|
Mar
(19) |
Apr
(90) |
May
(38) |
Jun
(235) |
Jul
(38) |
Aug
(10) |
Sep
|
Oct
(29) |
Nov
|
Dec
|
| 2014 |
Jan
|
Feb
|
Mar
|
Apr
(6) |
May
(52) |
Jun
|
Jul
(7) |
Aug
|
Sep
(17) |
Oct
|
Nov
|
Dec
|
|
From: OryNider <ory...@us...> - 2008-03-21 23:07:16
|
Update of /cvsroot/mxbb/mx_shotcast/templates/subSilver In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv12842/subSilver Modified Files: shotcast_stats.tpl Log Message: fix for ie8 Index: shotcast_stats.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/templates/subSilver/shotcast_stats.tpl,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** shotcast_stats.tpl 24 Feb 2008 01:15:08 -0000 1.3 --- shotcast_stats.tpl 21 Mar 2008 23:07:12 -0000 1.4 *************** *** 1,9 **** - <style type="text/css"> - <!-- - .table { font-family: Verdana; font-size: 10px; background-color: #c0c0c0; } - td.nav { border-top: 1px solid #FFFFFF; border-bottom: 1px solid #859288; padding: 1px 0 1px 5px; font-weight: bold; font-size: 12px} - td.stat { border-top: 1px solid #FFFFFF; border-bottom: 1px solid #859288; padding: 1px 0 1px 5px; color: ##000e88;} - --> - </style> <table width="{BLOCK_SIZE}" cellpadding="1" cellspacing="1" border="0" class="forumline" style="border-top:none;"> <tr> --- 1,2 ---- *************** *** 16,35 **** <span class="gensmall"> <tr class="table"> ! <td class="nav" align="left" valign="bottom"> <h8><b>{L_STATION} <i>{S_STATION}</i></b></h8> </td> </tr> <tr class="table"> ! <td class="stat" align="left" valign="bottom"> <i>{L_STATE} <b>{S_STATE}</b></i> </td> </tr> <tr class="table"> ! <td class="stat" align="left" valign="bottom"> <i>{L_SERVER_TITLE} <b>{S_SERVER_TITLE}</b></i> </td> </tr> <tr class="table"> ! <td class="stat" align="left" valign="bottom"> <i>{L_SERVERGENRE} <b>{S_SERVERGENRE}</b></i> </td> --- 9,28 ---- <span class="gensmall"> <tr class="table"> ! <td class="row1" align="left" valign="bottom"> <h8><b>{L_STATION} <i>{S_STATION}</i></b></h8> </td> </tr> <tr class="table"> ! <td class="row2" align="left" valign="bottom"> <i>{L_STATE} <b>{S_STATE}</b></i> </td> </tr> <tr class="table"> ! <td class="row2" align="left" valign="bottom"> <i>{L_SERVER_TITLE} <b>{S_SERVER_TITLE}</b></i> </td> </tr> <tr class="table"> ! <td class="row2" align="left" valign="bottom"> <i>{L_SERVERGENRE} <b>{S_SERVERGENRE}</b></i> </td> *************** *** 37,41 **** </tr> <tr class="table"> ! <td class="stat" align="left" valign="bottom"> <i>{L_SONGURL} <b><a href="{S_SONGURL}">{S_SONGURL}</a></b></i> </td> --- 30,34 ---- </tr> <tr class="table"> ! <td class="row2" align="left" valign="bottom"> <i>{L_SONGURL} <b><a href="{S_SONGURL}">{S_SONGURL}</a></b></i> </td> *************** *** 43,47 **** </tr> <tr class="table"> ! <td class="stat" align="left" valign="bottom"> <i>{L_SONG} <b>{S_SONG}</b></i> </td> --- 36,40 ---- </tr> <tr class="table"> ! <td class="row2" align="left" valign="bottom"> <i>{L_SONG} <b>{S_SONG}</b></i> </td> *************** *** 49,68 **** </tr> <tr class="table"> ! <td class="stat" align="left" valign="bottom"> <i>{L_BITRATE} <b>{S_BITRATE} kbps</b></i> </td> </tr> <tr class="table"> ! <td class="stat" align="left" valign="bottom"> <i>{L_REPORTEDLISTENERS} <b>{S_REPORTEDLISTENERS}</b></i> </td> </tr> <tr class="table"> ! <td class="stat" align="left" valign="bottom"> <i>{L_PEAK_LISTENERS} <b>{S_PEAK_LISTENERS}</b></i> </td> </tr> <tr class="table"> ! <td class="stat" align="left" valign="bottom"> <i>{L_MAX_LISTENERS} <b>{S_MAX_LISTENERS}</b></i></td> </tr> --- 42,61 ---- </tr> <tr class="table"> ! <td class="row2" align="left" valign="bottom"> <i>{L_BITRATE} <b>{S_BITRATE} kbps</b></i> </td> </tr> <tr class="table"> ! <td class="row2" align="left" valign="bottom"> <i>{L_REPORTEDLISTENERS} <b>{S_REPORTEDLISTENERS}</b></i> </td> </tr> <tr class="table"> ! <td class="row2" align="left" valign="bottom"> <i>{L_PEAK_LISTENERS} <b>{S_PEAK_LISTENERS}</b></i> </td> </tr> <tr class="table"> ! <td class="row2" align="left" valign="bottom"> <i>{L_MAX_LISTENERS} <b>{S_MAX_LISTENERS}</b></i></td> </tr> |
|
From: OryNider <ory...@us...> - 2008-03-21 22:50:44
|
Update of /cvsroot/mxbb/core/modules/mx_navmenu/templates/subSilver In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv1754 Modified Files: mx_menu_overall_navigation.tpl Log Message: upgraded for ie8 !!! Index: mx_menu_overall_navigation.tpl =================================================================== RCS file: /cvsroot/mxbb/core/modules/mx_navmenu/templates/subSilver/mx_menu_overall_navigation.tpl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** mx_menu_overall_navigation.tpl 8 Feb 2008 08:58:30 -0000 1.2 --- mx_menu_overall_navigation.tpl 21 Mar 2008 22:50:40 -0000 1.3 *************** *** 1,64 **** ! <style type="text/css"> ! <!-- ! .nav-cat .nav-button { ! border-width: 1px; ! border-color: {T_TH_COLOR1}; ! border-style: none none solid none; ! position: relative; ! } ! .nav-cat .nav-button-current { ! background-color: {T_TR_COLOR1}; ! border-width: 1px; ! border-color: {T_TH_COLOR1}; ! border-style: solid solid none solid; ! position: relative; ! } ! td.nav-button { ! background-color: {T_TR_COLOR1}; ! } ! td.nav-button-current { ! background-color: {T_TR_COLOR2}; ! } ! * html .nav-cat td { position: relative; } /* ie 5.0 fix */ ! --> ! </style> ! ! <table width="100%" cellpadding="0" cellspacing="1" border="0" align="center"> ! <tr> ! <td class="cat" align="center" valign="top"> ! <table cellpadding="0" cellspacing="0" border="0" class="nav-cat"> <tr> ! <!-- BEGIN catrow --> ! <td align="left" valign="top"> ! <div class="nav-button{catrow.CURRENT}"> ! <table cellpadding="5" cellspacing="0" border="0"> <tr> ! <td align="left" width="100%" height="30" style="border:none;"> ! {catrow.U_MENU_ICON}{catrow.CATEGORY} </td> </tr> </table> - </div> </td> - <!-- END catrow --> </tr> </table> - </td> - </tr> - </table> ! <table width="100%" cellpadding="0" cellspacing="1" border="0" align="center"> ! <tr> ! <td class="row1" align="center" valign="top"> ! <table cellpadding="3" cellspacing="0" border="0" class="nav-menu"> <tr> <!-- BEGIN menurow --> ! <td style="border:none;" class="" valign="center" onmouseout="this.className='';" onmouseover="this.className='nav-button-current';"> <div class="nav-button{menurow.CURRENT}" onmouseout="this.className='nav-button{menurow.CURRENT}';" onmouseover="this.className='nav-button-current';">{menurow.U_MENU_ICON}<a href="{menurow.U_MENU_URL}" target="{menurow.U_MENU_URL_TARGET}">{menurow.MENU_NAME}</a></div> </td> <!-- END menurow --> </tr> ! </table> ! </td> ! </tr> ! </table> --- 1,58 ---- ! <style type="text/css"> ! <!-- ! .nav-cat .nav-button { ! border-width: 1px; ! border-color: {T_TH_COLOR1}; ! border-style: none none solid none; ! position: relative; ! } ! .nav-cat .nav-button-current { ! background-color: {T_TR_COLOR1}; ! border-width: 1px; ! border-color: {T_TH_COLOR1}; ! border-style: solid solid none solid; ! position: relative; ! } ! td.nav-button { ! background-color: {T_TR_COLOR1}; ! } ! td.nav-button-current { ! background-color: {T_TR_COLOR2}; ! } ! * html .nav-cat td { position: relative; } /* ie 5.0 fix */ ! --> ! </style> ! ! <table width="100%" cellpadding="0" cellspacing="1" border="0"> <tr> ! <td class="cat"> ! <table cellpadding="0" cellspacing="0" border="0" class="nav-cat" align="center" valign="top"> <tr> ! <!-- BEGIN catrow --> ! <td align="left" valign="top"> ! <div class="nav-button{catrow.CURRENT}"> ! <table cellpadding="5" cellspacing="0" border="0"> ! <tr> ! <td width="100%" height="30" style="border:none; text-align:center;"> ! {catrow.U_MENU_ICON}{catrow.CATEGORY} ! </td> ! </tr> ! </table> ! </div> </td> + <!-- END catrow --> </tr> </table> </td> </tr> </table> ! <table cellpadding="5" cellspacing="0" border="0" align="center"> <tr> <!-- BEGIN menurow --> ! <td align="center" valign="middle"> <div class="nav-button{menurow.CURRENT}" onmouseout="this.className='nav-button{menurow.CURRENT}';" onmouseover="this.className='nav-button-current';">{menurow.U_MENU_ICON}<a href="{menurow.U_MENU_URL}" target="{menurow.U_MENU_URL_TARGET}">{menurow.MENU_NAME}</a></div> </td> <!-- END menurow --> </tr> ! </table> \ No newline at end of file |
|
From: OryNider <ory...@us...> - 2008-03-21 20:18:52
|
Update of /cvsroot/mxbb/mx_music/music_box/language/lang_romanian In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv32230/music_box/language/lang_romanian Added Files: index.htm lang_admin.php lang_main.php Log Message: aprovall thing --- NEW FILE: lang_main.php --- <?php /** * * @package mxBB Portal Module - mx_music * @version $Id: lang_main.php,v 1.1 2008/03/21 20:18:43 orynider Exp $ * @copyright (c) 2003 [ory...@rd..., OryNider] mxBB Development Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ /* Translation: Românã (Romanian) Rev date: September 02, 2006 Copyright: (C) 2006 Romanian phpBB online community - http://www.phpbb.ro/ Translator: Aliniuz < al...@ya... > */ // // Music Online // $lang['Music'] = 'Media Center'; // // Music Index // $lang['Music_Online'] = 'Muzicã'; $lang['Songs'] = 'Melodii'; $lang['Cat_Views'] = 'Board Views'; $lang['Last_Song'] = 'Ultima melodie'; $lang['Public_Categories'] = 'Categorii publice'; $lang['Music_sub_categories'] = 'Sub-categorii'; $lang['No_Songs'] = 'Nici o melodie'; $lang['Top_Songs'] = 'Top melodii'; $lang['Recent_Songs'] = 'Melodii recente'; $lang['Song_Limit'] = 'Limitã de melodii'; $lang['Nav_Separator'] = ' » '; $lang['View'] = 'Ascultã'; $lang['Singer'] = 'Solist'; // // Category View // $lang['Category_not_exist'] = 'Aceastã categorie nu existã'; $lang['Upload_Song'] = 'Uploadeazã melodie'; $lang['Song_Title'] = 'Numele melodiei'; $lang['Pic_Title'] = 'Numele imaginii'; $lang['Category_pics'] = 'Vezi Imaginile din categorie'; $lang['Images'] = 'Imagini'; $lang['Category_songs'] = 'Vezi Videos ºi Media din categorie'; $lang['Media'] = 'Media'; $lang['Edit_song'] = 'Editeazã'; $lang['Delete_song'] = 'ªterge'; $lang['Rating'] = 'Rating'; $lang['Comments'] = 'Comentarii'; $lang['Download'] = 'Download'; $lang['New_Comment'] = 'Comentariu nou'; $lang['Not_rated'] = '<i>nu este votat</i>'; // // Upload // $lang['Song_url'] = 'Adresa catre melodie'; $lang['Song_Desc'] = 'Versurile cântecului'; $lang['Plain_text_only'] = 'Numai text plan'; $lang['Max_length'] = 'Dimensiunea maximã (bytes)'; $lang['Upload_song_from_machine'] = 'Uploadeazã melodie din PC-ul tãu'; $lang['Upload_to_Category'] = 'Uploadeazã cãtre categorie'; $lang['Upload_no_title'] = 'Ai uitat sa precizezi numele melodiei'; $lang['Upload_no_file'] = 'Trebuie sa precizati calea cãtre melodie'; $lang['Upload_both_file'] = 'Puteþi alege doar o singura cale: Upload sau Adresa cãtre melodie'; $lang['Desc_too_long'] = 'Versurile melodiei depãseste numarul maxim de caractere'; $lang['Max_file_size'] = 'Dimensiunea maximã a unei melodii (bytes)'; $lang['Allowed_file'] = 'Aceste fiºiere sunt permise'; $lang['Music_reached_quota'] = 'Aceastã categorie a atins numãrul maxim de melodii. Acum nu mai poþi uploada melodii. Contacteazã administratorii pentru mai multe informaþii'; $lang['User_reached_songs_quota'] = 'Ai atins numãrul maxim de melodii pe care le poþi uploada. Acum nu mai poþi uploada melodii. Contacteazã administratorii pentru mai multe informaþii'; $lang['Bad_upload_file_size'] = 'Melodia uploadatã de tine este coruptã sau depãseste dimensiunea maxima'; $lang['Not_allowed_file_type'] = 'Extensia fiºierului tãu nu e permisã'; $lang['Missed_song_title'] = 'Nu ai precizat numele melodiei'; $lang['Missed_song_url'] = 'Nu ai precizat adresa cãtre melodie'; $lang['Music_upload_successful'] = 'Melodia ta a fost uploadatã cu succes'; $lang['Music_upload_need_approval'] = 'Melodia ta a fost uploadatã cu succes.<br /><br />Dar facilitatea Aprobarea Melodiei este activatã, aºa cã trebuie ca melodia ta sa fie aprobatã de un administrator sau de un moderator înainte de a fi postatã'; $lang['Click_return_category'] = 'Click %saici%s pentru a te întoarce la categorie'; $lang['Click_return_music_index'] = 'Click %saici%s pentru a te întoarce la Pagina de Muzicã Online'; // View song $lang['Song_not_exist'] = 'Aceastã melodie nu existã'; // Edit song $lang['Edit_Song_Info'] = 'Editeazã informaþiile melodiei'; $lang['Songs_updated_successfully'] = 'Informaþiile melodiei au fost actualizate cu succes'; // Delete song $lang['Music_delete_confirm'] = 'Eºti sigur cã vrei sã ºtergi aceasta(aceste) melodie(melodii)?'; $lang['Songs_deleted_successfully'] = 'Aceasta(aceste) melodie(melodii) a(au) fost ºterse cu succes'; // // ModCP // $lang['Approval'] = 'Aprobare'; $lang['Approve'] = 'Aprobã'; $lang['Unapprove'] = 'Dezaprobã'; $lang['Status'] = 'Statut'; $lang['Locked'] = 'Închis'; $lang['Not_approved'] = 'Nu este aprobat'; $lang['Approved'] = 'Aprobat'; $lang['Move_to_Category'] = 'Mutã la Categorie'; $lang['Songs_moved_successfully'] = 'Melodiile tale au fost mutate cu succes'; $lang['Songs_locked_successfully'] = 'Melodiile tale au fost închise cu succes'; $lang['Songs_unlocked_successfully'] = 'Melodiile tale au fost deschise cu succes'; $lang['Songs_approved_successfully'] = 'Melodiile tale au fost aprobate cu succes'; $lang['Songs_unapproved_successfully'] = 'Melodiile tale au fost dezaprobate cu succes'; // // Rate // $lang['Current_Rating'] = 'Nota curentã'; $lang['Please_Rate_It'] = 'Voteazã'; $lang['Already_rated'] = 'Ai votat deja aceastã melodie'; $lang['Music_rate_successfully'] = 'Melodia ta a fost votatã cu succes'; // // Comment // $lang['Comment_no_text'] = 'Scrie comentariul'; $lang['Comment_too_long'] = 'Comentariul tãu e prea lung'; $lang['Comment_delete_confirm'] = 'Eºti sigur cã vrei sã ºtergi acest comentariu?'; $lang['Song_Locked'] = 'Scuze, aceastã melodie a fost închisã. Deci nu mai puteþi posta comentarii'; // // Song Image // $lang['Song_image'] = 'Song Image'; $lang['Song_image_desc'] = 'The Image of this song<br />(such as CD Cover, Artist Photo...)'; $lang['No_image'] = 'No Image'; $lang['Upload_image'] = 'Upload Image from your PC'; $lang['Not_allowed_image_type'] = 'Your uploaded image type is not allowed'; $lang['Bad_upload_image_size'] = 'Bad upload image size'; $lang['Upload_image_size_too_big'] = 'Your uploaded image size is too big'; // // Search Song // $lang['Search_song'] = 'Cautã melodii'; // auth_key $lang['Music_view_can'] = '<b>Poþi</b> vizualiza melodii în aceastã categorie'; $lang['Music_view_cannot'] = '<b>Nu poþi</b> vizualiza melodii în aceastã categorie'; $lang['Music_upload_can'] = '<b>Poþi</b> uploada noi melodii în aceastã categorie'; $lang['Music_upload_cannot'] = '<b>Nu poþi</b> uploada noi melodii în aceastã categorie'; $lang['Music_download_can'] = '<b>Poþi</b> downloada melodii în aceastã categorie'; $lang['Music_download_cannot'] = '<b>Nu poþi</b> downloada melodii în aceastã categorie'; $lang['Music_rate_can'] = '<b>Poþi</b> vota melodii în aceastã categorie'; $lang['Music_rate_cannot'] = '<b>Nu poþi</b> vota melodii în aceastã categorie'; $lang['Music_comment_can'] = '<b>Poþi</b> adãuga comentarii melodiilor din aceastã categorie'; $lang['Music_comment_cannot'] = '<b>Nu poþi</b> adãuga comentarii melodiilor din aceastã categorie'; $lang['Music_edit_can'] = '<b>Poþi</b> edita melodiile tale ºi comentariile acestora din aceastã categorie'; $lang['Music_edit_cannot'] = '<b>Nu poþi</b> edita melodiile tale ºi comentariile acestora din aceastã categorie'; $lang['Music_delete_can'] = '<b>Poþi</b> ºterge melodiile tale ºi comentariile acestora din aceastã categorie'; $lang['Music_delete_cannot'] = '<b>Nu poþi</b> ºterge melodiile tale ºi comentariile din aceastã categorie'; $lang['Music_moderate_can'] = '<b>Poþi</b> %smodera%s aceastã categorie'; ?> --- NEW FILE: lang_admin.php --- <?php /** * * @package mxBB Portal Module - mx_music * @version $Id: lang_admin.php,v 1.1 2008/03/21 20:18:43 orynider Exp $ * @copyright (c) 2007 [ory...@rd..., OryNider] mxBB Development Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ // // The format of this file is: // // ---> $lang["message"] = "text"; // // Specify your language character encoding... [optional] // // setlocale(LC_ALL, "en"); /* Translation: Românã (Romanian) Rev date: September 02, 2006 Copyright: (C) 2006 Romanian phpBB online community - http://www.phpbb.ro/ Translator: Aliniuz < al...@ya... > */ $lang['display_most_posts'] = "Display most posts"; $lang['display_random_posts'] = "Display random posts"; $lang['display_top_ranked'] = "Display top ranked"; $lang['display_latest_posts'] = "Display latest posts"; $lang['num_of_cols'] = "Num of cols"; $lang['num_of_rows'] = "Num of rows"; $lang['music_config_updated'] = 'Mx MOM Configuration Updated Successfully.'; $lang['Click_return_music_config'] = 'Click %sHere%s to return to mx_music Configuration'; $lang['index'] = 'Mx MOM Album Index'; $lang['mx_music_admin'] = 'mxBB MOM Integration'; $lang['mx_music_admin_explain'] = 'Here, you can do music index and mxBB page mappings.'; $lang['default_pages_title'] = 'mxBB and MOM integration'; $lang['default_pages_title_explain'] = ''; $lang['default_pages_more_title'] = 'More mappings...'; $lang['default_pages_more_title_explain'] = ''; $lang['integration_enabled'] = 'Activate the Integration?'; $lang['integration_enabled_explain'] = 'When the MOM module integration is activated, all mx_music URLs will be directed to mxBB pages. If deactivated, music.php will operate "as usual"'; $lang['integration_enabled_yes'] = 'Activate'; $lang['integration_enabled_no'] = 'Do not integrate music.php'; $lang['override'] = 'Associate music.php and mxBB pages'; $lang['override_explain'] = 'All mx_music urls are redirected to mxBB pages following these settings.'; $lang['override_yes'] = 'Use Block Settings'; $lang['override_no'] = 'Use fixed mappings (see below)'; // // Configuration // $lang['Music_config'] = 'Configuraþia Melodiilor'; $lang['Music_config_explain'] = 'Aici poþi schimba setãrile generale Music Online-ului instalat pe forumul tãu'; $lang['Music_config_updated'] = 'Configuraþia Melodiilor a fost actualizatã cu succes'; $lang['Click_return_music_config'] = 'Click %saici%s pentru a te întoarce la Configuraþia Melodiilor'; $lang['Max_songs'] = 'Numãrul maxim de melodii pentru fiecare categorie (-1 = nelimitat)'; $lang['User_songs_limit'] = 'Limita de melodii pe fiecare categorie pentru fiecare membru (-1 = nelimitat)'; $lang['Moderator_songs_limit'] = 'Limita de melodii pe fiecare categorie pentru fiecare moderator (-1 = nelimitat)'; $lang['Songs_Approval'] = 'Aprobarea melodiilor'; $lang['Rows_per_page'] = 'Numãrul de rânduri'; $lang['Cols_per_page'] = 'Numãrul de coloane'; $lang['Rows_per_page_music_pic_cat'] = 'Numãrul de rânduri în subcategorie virtualã de imagini'; $lang['Cols_per_page_music_pic_cat'] = 'Numãrul de coloane în subcategorie virtualã de imagini'; $lang['Rows_per_page_music_media_cat'] = 'Number of rows în subcategorie virtualã media'; $lang['Cols_per_page_music_media_cat'] = 'Number of columns în subcategorie virtualã media'; $lang['Top'] = 'Numãrul de melodii pe lista Top Melodii'; $lang['Song_Desc_Max_Length'] = 'Lungimea maximã a versurilor/comentariilor melodiilor (bytes)'; $lang['Hotlink_prevent'] = 'Prevenire HotLink'; $lang['Hotlink_allowed'] = 'Domenii acceptate pentru hotlink (separate printr-o virgulã)'; $lang['Rate_system'] = 'Activare sistemul de votare'; $lang['Rate_Scale'] =' Scala notelor (pentru rating)'; $lang['Comment_system'] = 'Activeazã sistemul pentru comentarii'; $lang['Download_system'] = 'Activeazã sistemul pentru download'; $lang['Extra_Settings'] = 'Setãri suplimentare'; $lang['Default_Sort_Method'] = 'Metoda implicitã de sortare'; $lang['Default_Sort_Order'] = 'Ordinea implicitã de sortare'; //Index $lang['Music_Index_Settings'] = 'Music Index'; $lang['Show_Index_Subcats'] = 'Aratã subcategorii în index'; // // Categories // $lang['Music_Categories_Title'] = 'Configuraþia Categoriilor de Melodii'; $lang['Music_Categories_Explain'] = 'În aceastã secþiune îþi poþi conduce categoriile: creazã, modificã, ºterge, sorteazã, etc.'; $lang['Category_Permissions'] = 'Permisiunile Categoriilor'; $lang['Category_Title'] = 'Titlul Categoriei'; $lang['Category_Desc'] = 'Descrierea Categoriei'; $lang['View_level'] = 'Nivelul de vizualizãri'; $lang['Upload_level'] = 'Nivelul de upload'; $lang['Rate_level'] = 'Nivelul de votare'; $lang['Comment_level'] = 'Nivelul de comentarii'; $lang['Edit_level'] = ' Nivelul de editare'; $lang['Delete_level'] = 'Nivelul de ºtergere'; $lang['New_category_created'] = 'Categoria a fost creatã cu succes'; $lang['Click_return_music_category'] = 'Click %saici%s pentru a te intoarce la Configuraþia Categoriilor de Melodii'; $lang['Category_updated'] = 'Categoria a fost actualizatã cu succes'; $lang['Delete_Category'] = 'ºterge categoria'; $lang['Delete_Category_Explain'] = 'Formularul de mai jos îþi vã permite sã ºtergi o categorie ºi sã decizi unde vrei sã pui melodiile pe care le conþine categoria respectivã'; $lang['Delete_all_songs'] = 'ºterge toate melodiile'; $lang['Category_deleted'] = 'Categoria a fost ºtearsã cu succes'; $lang['Category_changed_order'] = 'Categoria s-a mutat cu succes'; $lang['Create_music'] = 'Create new music'; $lang['Create_sub_music'] = 'Create sub-music'; // // Permissions // $lang['Music_Auth_Title'] = 'Permisiuni'; $lang['Music_Auth_Explain'] = 'Aici poþi alege ce grupuri pot deveni moderator pentru fiecare categorie de muzicã sau sã aibã doar acces privat'; $lang['Select_a_Category'] = 'Selecteazã o categorie'; $lang['Look_up_Category'] = 'Vezi aceastã categorie'; $lang['Music_Auth_successfully'] = 'Permisiunile au fost actualizate cu succes'; $lang['Click_return_music_auth'] = 'Click %saici%s pentru a te intoarce la Permisiuni'; $lang['Upload'] = 'Upload'; $lang['Rate'] = 'Vot'; $lang['Comment'] = 'Comentariu'; //Allowed File Types $lang['MP3_allowed'] = 'MP3 Acceptatã'; $lang['WAV_allowed'] = 'WAV Acceptatã'; $lang['WMA_allowed'] = 'WMA Acceptatã'; $lang['WMV_allowed'] = 'WMV Acceptatã'; $lang['MIDI_allowed'] = 'MIDI Acceptatã'; $lang['RAM_allowed'] = 'RAM Acceptatã'; $lang['AU_allowed'] = 'AU Acceptatã'; $lang['MPEG_allowed'] = 'MPEG Acceptatã'; $lang['AVI_allowed'] = 'AVI Acceptatã'; $lang['SWF_allowed'] = 'SWF Acceptatã'; $lang['QT_allowed'] = 'QT Acceptatã'; $lang['FLV_allowed'] = 'FLV Acceptatã'; $lang['RM_allowed'] = 'RM Acceptatã'; $lang['IMG_allowed'] = 'JPG, GIF and PNG Acceptate'; // // Song Image // $lang['Max_image_size'] = 'Max song image size (bytes)'; $lang['Max_image_width'] = 'Max song image width (pixel)'; $lang['Max_image_height'] = 'Max song image height (pixel)'; // // That's all Folks! // ------------------------------------------------- ?> --- NEW FILE: index.htm --- <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body bgcolor="#FFFFFF" text="#000000"> </body> </html> |
|
From: OryNider <ory...@us...> - 2008-03-21 20:18:51
|
Update of /cvsroot/mxbb/mx_music/music_box/language/lang_english In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv32230/music_box/language/lang_english Added Files: index.htm lang_admin.php lang_main.php Log Message: aprovall thing --- NEW FILE: lang_main.php --- <?php /** * * @package mxBB Portal Module - mx_music * @version $Id: lang_main.php,v 1.2 2008/03/21 20:18:42 orynider Exp $ * @copyright (c) 2003 [ory...@rd..., OryNider] mxBB Development Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ // // Music Online // $lang['Music'] = 'Media Center'; // // Music Index // $lang['Music_Online'] = 'Music Online'; $lang['Songs'] = 'Songs'; $lang['Cat_Views'] = 'Board Views'; $lang['Last_Song'] = 'Last Song'; $lang['Public_Categories'] = 'Public Categories'; $lang['Music_sub_categories'] = 'Sub-categories'; $lang['No_Songs'] = 'No Song'; $lang['Top_Songs'] = 'Top Songs'; $lang['Recent_Songs'] = 'Recent Songs'; $lang['Song_Limit'] = 'Song limit'; $lang['Nav_Separator'] = ' » '; $lang['View'] = 'Listen'; $lang['Singer'] = 'Singer'; // // Category View // $lang['Category_not_exist'] = 'This category does not exist'; $lang['Upload_Song'] = 'Upload Song'; $lang['Song_Title'] = 'Song Title'; $lang['Pic_Title'] = 'Pic Title'; $lang['Category_pics'] = 'Category Images'; $lang['Images'] = 'Images'; $lang['Category_songs'] = 'Category Media'; $lang['Media'] = 'Media'; $lang['Edit_song'] = 'Edit'; $lang['Delete_song'] = 'Del'; $lang['Rating'] = 'Rating'; $lang['Comments'] = 'Comments'; $lang['Download'] = 'Download'; $lang['Listen'] = 'Listen URL'; $lang['New_Comment'] = 'New Comment'; $lang['Not_rated'] = '<i>not rated</i>'; // // Upload // $lang['Song_url'] = 'Song URL'; $lang['Song_Desc'] = 'Song Lyric'; $lang['Plain_text_only'] = 'Plain text only'; $lang['Max_length'] = 'Max length (bytes)'; $lang['Upload_song_from_machine'] = 'Upload song from your PC'; $lang['Upload_to_Category'] = 'Upload to Category'; $lang['Upload_no_title'] = 'You missed the song title'; $lang['Upload_no_file'] = 'You must enter the path of song'; $lang['Upload_both_file'] = 'You can just choose 1 in 2 way Upload or Link URL'; $lang['Desc_too_long'] = 'Song lyric is too long'; $lang['Max_file_size'] = 'Maximum file size (bytes)'; $lang['Allowed_file'] = 'These files are allowed'; $lang['Music_reached_quota'] = 'This category has reached the quota of songs. Now you cannot upload any more. Please contact the administrators for more information'; $lang['User_reached_songs_quota'] = 'You have reached your quota of songs. Now you cannot upload any more. Please contact the administrators for more information'; $lang['Bad_upload_file_size'] = 'Your uploaded file is too large or corrupted'; $lang['Not_allowed_file_type'] = 'Your file type is not allowed'; $lang['Missed_song_title'] = 'You missed the song title'; $lang['Missed_song_url'] = 'You missed the song url'; $lang['Music_upload_successful'] = 'Your song has been uploaded successfully'; $lang['Music_upload_need_approval'] = 'Your song has been uploaded successfully.<br /><br />But the feature Song Approval has been enabled so your song must be approved by a administrator or a moderator before posting'; $lang['Click_return_category'] = 'Click %shere%s to return to the category'; $lang['Click_return_music_index'] = 'Click %shere%s to return to the Music Index'; // View song $lang['Song_not_exist'] = 'This song does not exits'; // Edit song $lang['Edit_Song_Info'] = 'Edit Song infomation'; $lang['Songs_updated_successfully'] = 'Your song information has been updated successfully'; // Delete song $lang['Music_delete_confirm'] = 'Are you sure to delete these song(s)?'; $lang['Songs_deleted_successfully'] = 'These song(s) have been deleted successfully'; // // ModCP // $lang['Approval'] = 'Approval'; $lang['Approve'] = 'Approve'; $lang['Unapprove'] = 'Unapprove'; $lang['Status'] = 'Status'; $lang['Locked'] = 'Locked'; $lang['Not_approved'] = 'Not approved'; $lang['Approved'] = 'Approved'; $lang['Move_to_Category'] = 'Move to Category'; $lang['Songs_moved_successfully'] = 'Your song(s) have been moved successfully'; $lang['Songs_locked_successfully'] = 'Your song(s) have been locked successfully'; $lang['Songs_unlocked_successfully'] = 'Your song(s) have been unlocked successfully'; $lang['Songs_approved_successfully'] = 'Your song(s) have been approved successfully'; $lang['Songs_unapproved_successfully'] = 'Your song(s) have been unapproved successfully'; // // Rate // $lang['Current_Rating'] = 'Current Rating'; $lang['Please_Rate_It'] = 'Please Rate It'; $lang['Already_rated'] = 'You have already rated this song'; $lang['Music_rate_successfully'] = 'Your song has been rated successfully'; // // Comment // $lang['Comment_no_text'] = 'Please enter your comment'; $lang['Comment_too_long'] = 'Your comment is too long'; $lang['Comment_delete_confirm'] = 'Are you sure to delete this comment?'; $lang['Song_Locked'] = 'Sorry, this song was locked. So you cannot post comment for this song anymore'; // // Song Image // $lang['Song_image'] = 'Song Image'; $lang['Song_image_desc'] = 'The Image of this song<br />(such as CD Cover, Artist Photo...)'; $lang['No_image'] = 'No Image'; $lang['Upload_image'] = 'Upload Image from your PC'; $lang['Not_allowed_image_type'] = 'Your uploaded image type is not allowed'; $lang['Bad_upload_image_size'] = 'Bad upload image size'; $lang['Upload_image_size_toobig'] = 'Your uploaded image size is too big'; // // Search Song // $lang['Search_song'] = 'Search song'; // auth_key $lang['Music_view_can'] = 'You <b>can</b> view songs in this category'; $lang['Music_view_cannot'] = 'You <b>cannot</b> view songs in this category'; $lang['Music_download_can'] = 'You <b>can</b> download songs in this category'; $lang['Music_download_cannot'] = 'You <b>cannot</b> download songs in this category'; $lang['Music_upload_can'] = 'You <b>can</b> upload new songs in this category'; $lang['Music_upload_cannot'] = 'You <b>cannot</b> upload new songs in this category'; $lang['Music_rate_can'] = 'You <b>can</b> rate songs in this category'; $lang['Music_rate_cannot'] = 'You <b>cannot</b> rate songs in this category'; $lang['Music_comment_can'] = 'You <b>can</b> post comments to songs in this category'; $lang['Music_comment_cannot'] = 'You <b>cannot</b> post comments to songs in this category'; $lang['Music_edit_can'] = 'You <b>can</b> edit your songs and comments in this category'; $lang['Music_edit_cannot'] = 'You <b>cannot</b> edit your songs and comments in this category'; $lang['Music_delete_can'] = 'You <b>can</b> delete your songs and comments in this category'; $lang['Music_delete_cannot'] = 'You <b>cannot</b> delete your songs and comments in this category'; $lang['Music_moderate_can'] = 'You <b>can</b> %smoderate%s this category'; ?> --- NEW FILE: lang_admin.php --- <?php /** * * @package mxBB Portal Module - mx_music * @version $Id: lang_admin.php,v 1.2 2008/03/21 20:18:42 orynider Exp $ * @copyright (c) 2007 [ory...@rd..., OryNider] mxBB Development Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ // // The format of this file is: // // ---> $lang["message"] = "text"; // // Specify your language character encoding... [optional] // // setlocale(LC_ALL, "en"); $lang['display_most_posts'] = "Display most posts"; $lang['display_random_posts'] = "Display random posts"; $lang['display_top_ranked'] = "Display top ranked"; $lang['display_latest_posts'] = "Display latest posts"; $lang['num_of_cols'] = "Num of cols"; $lang['num_of_rows'] = "Num of rows"; $lang['music_config_updated'] = 'Mx MOM Configuration Updated Successfully.'; $lang['Click_return_music_config'] = 'Click %sHere%s to return to mx_music Configuration'; $lang['index'] = 'Mx MOM Album Index'; $lang['mx_music_admin'] = 'mxBB MOM Integration'; $lang['mx_music_admin_explain'] = 'Here, you can do music index and mxBB page mappings.'; $lang['default_pages_title'] = 'mxBB and MOM integration'; $lang['default_pages_title_explain'] = ''; $lang['default_pages_more_title'] = 'More mappings...'; $lang['default_pages_more_title_explain'] = ''; $lang['integration_enabled'] = 'Activate the Integration?'; $lang['integration_enabled_explain'] = 'When the MOM module integration is activated, all mx_music URLs will be directed to mxBB pages. If deactivated, music.php will operate "as usual"'; $lang['integration_enabled_yes'] = 'Activate'; $lang['integration_enabled_no'] = 'Do not integrate music.php'; $lang['override'] = 'Associate music.php and mxBB pages'; $lang['override_explain'] = 'All mx_music urls are redirected to mxBB pages following these settings.'; $lang['override_yes'] = 'Use Block Settings'; $lang['override_no'] = 'Use fixed mappings (see below)'; // // Configuration // $lang['Music_config'] = 'Music Configuration'; $lang['Music_config_explain'] = 'You can change the general settings of your Music Online here'; $lang['Music_config_updated'] = 'Music Configuration has been updated successfully'; $lang['Click_return_music_config'] = 'Click %sHere%s to return to the Music Configuration'; $lang['Max_songs'] = 'Maximum songs for each Category (-1 = unlimited)'; $lang['User_songs_limit'] = 'Songs limit per category for each user (-1 = unlimited)'; $lang['Moderator_songs_limit'] = 'Songs limit per category for each moderator (-1 = unlimited)'; $lang['Songs_Approval'] = 'Songs Approval'; $lang['Rows_per_page'] = 'Number of rows'; $lang['Cols_per_page'] = 'Number of columns'; $lang['Rows_per_page_music_pic_cat'] = 'Number of rows in virtual images subcategories'; $lang['Cols_per_page_music_pic_cat'] = 'Number of columns in virtual images subcategories'; $lang['Rows_per_page_music_media_cat'] = 'Number of rows in virtual media subcategories'; $lang['Cols_per_page_music_media_cat'] = 'Number of columns in virtual media subcategories'; $lang['Top'] = 'Number of songs on Top Hit List'; $lang['Song_Desc_Max_Length'] = 'Song Lyric/Comment Max Length (bytes)'; $lang['Hotlink_prevent'] = 'Hotlink Prevention'; $lang['Hotlink_allowed'] = 'Allowed domains for hotlink (separated by a comma)'; $lang['Rate_system'] = 'Enable rate system'; $lang['Rate_Scale'] =' Rating Scale'; $lang['Comment_system'] = 'Enable comment system'; $lang['Download_system'] = 'Enable download system'; $lang['Extra_Settings'] = 'Extra Settings'; $lang['Default_Sort_Method'] = 'Default Sort Method'; $lang['Default_Sort_Order'] = 'Default Sort Order'; //Index $lang['Music_Index_Settings'] = 'Music Index'; $lang['Show_Index_Subcats'] = 'Show sub categories in index table'; // // Categories // $lang['Music_Categories_Title'] = 'Music Categories Control'; $lang['Music_Categories_Explain'] = 'On this screen you can manage your categories: create, alter, delete, sort, etc.'; $lang['Category_Permissions'] = 'Category Permissions'; $lang['Category_Title'] = 'Category Title'; $lang['Category_Desc'] = 'Category Description'; $lang['View_level'] = 'View Level'; $lang['Upload_level'] = 'Upload Level'; $lang['Rate_level'] = 'Rate Level'; $lang['Comment_level'] = 'Comment Level'; $lang['Edit_level'] = ' Edit Level'; $lang['Delete_level'] = 'Delete Level'; $lang['New_category_created'] = 'New category has been created successfully'; $lang['Click_return_music_category'] = 'Click %sHere%s to return to the Music Categories Manager'; $lang['Category_updated'] = 'This category has been updated successfully'; $lang['Delete_Category'] = 'Delete Category'; $lang['Delete_Category_Explain'] = 'The form below will allow you to delete a category and decide where you want to put songs it contained'; $lang['Delete_all_songs'] = 'Delete all songs'; $lang['Category_deleted'] = 'This category has been deleted successfully'; $lang['Category_changed_order'] = 'This category has been changed order successfully'; $lang['Create_music'] = 'Create new music'; $lang['Create_sub_music'] = 'Create sub-music'; // // Permissions // $lang['Music_Auth_Title'] = 'Music Permissions'; $lang['Music_Auth_Explain'] = 'Here you can choose which usergroup(s) can be the moderators for each Music category or just has the private access'; $lang['Select_a_Category'] = 'Select a Category'; $lang['Look_up_Category'] = 'Look up Category'; $lang['Music_Auth_successfully'] = 'Auth has been updated successfully'; $lang['Click_return_music_auth'] = 'Click %sHere%s to return to the Music Permissions'; $lang['Upload'] = 'Upload'; $lang['Rate'] = 'Rate'; $lang['Comment'] = 'Comment'; //Allowed File Types $lang['MP3_allowed'] = 'MP3 Allowed'; $lang['WAV_allowed'] = 'WAV Allowed'; $lang['WMA_allowed'] = 'WMA Allowed'; $lang['WMV_allowed'] = 'WMV Allowed'; $lang['MIDI_allowed'] = 'MIDI Allowed'; $lang['RAM_allowed'] = 'RAM Allowed'; $lang['AU_allowed'] = 'AU Allowed'; $lang['MPEG_allowed'] = 'MPEG Allowed'; $lang['AVI_allowed'] = 'AVI Allowed'; $lang['SWF_allowed'] = 'SWF Allowed'; $lang['QT_allowed'] = 'QT Allowed'; $lang['FLV_allowed'] = 'FLV Allowed'; $lang['RM_allowed'] = 'RM Allowed'; $lang['IMG_allowed'] = 'JPG, GIF and PNG Allowed'; // // Song Image // $lang['Max_image_size'] = 'Max song image size (bytes)'; $lang['Max_image_width'] = 'Max song image width (pixel)'; $lang['Max_image_height'] = 'Max song image height (pixel)'; // // That's all Folks! // ------------------------------------------------- ?> --- NEW FILE: index.htm --- <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body bgcolor="#FFFFFF" text="#000000"> </body> </html> |
|
From: OryNider <ory...@us...> - 2008-03-21 20:18:46
|
Update of /cvsroot/mxbb/mx_music/music_box/language In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv32230/music_box/language Added Files: index.htm Log Message: aprovall thing --- NEW FILE: index.htm --- <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body bgcolor="#FFFFFF" text="#000000"> </body> </html> |
|
From: OryNider <ory...@us...> - 2008-03-21 20:18:45
|
Update of /cvsroot/mxbb/mx_music/templates/subSilver In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv32230/templates/subSilver Modified Files: music_cat_body.tpl Log Message: aprovall thing Index: music_cat_body.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_music/templates/subSilver/music_cat_body.tpl,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** music_cat_body.tpl 8 Sep 2007 13:29:03 -0000 1.3 --- music_cat_body.tpl 21 Mar 2008 20:18:42 -0000 1.4 *************** *** 55,59 **** <tr> <td width="31%" align="center" class="row2"><span class="genmed">{songrow.song_detail.TITLE} ! </span></td> <td width="15%" align="center" class="row1"><span class="genmed">{songrow.song_detail.SINGER}</span></td> <td width="25%" align="center" class="row2"><span class="gensmall">{songrow.song_detail.POSTER}<BR>{songrow.song_detail.TIME}</span></td> --- 55,59 ---- <tr> <td width="31%" align="center" class="row2"><span class="genmed">{songrow.song_detail.TITLE} ! <BR />{songrow.station_detail.APPROVAL}</span></td> <td width="15%" align="center" class="row1"><span class="genmed">{songrow.song_detail.SINGER}</span></td> <td width="25%" align="center" class="row2"><span class="gensmall">{songrow.song_detail.POSTER}<BR>{songrow.song_detail.TIME}</span></td> |
|
From: OryNider <ory...@us...> - 2008-03-21 20:18:45
|
Update of /cvsroot/mxbb/mx_music/templates/_core In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv32230/templates/_core Modified Files: music_cat_body.tpl Log Message: aprovall thing Index: music_cat_body.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_music/templates/_core/music_cat_body.tpl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** music_cat_body.tpl 29 Jan 2008 07:51:29 -0000 1.1 --- music_cat_body.tpl 21 Mar 2008 20:18:42 -0000 1.2 *************** *** 55,59 **** <tr> <td width="31%" align="center" class="row2"><span class="genmed">{songrow.song_detail.TITLE} ! </span></td> <td width="15%" align="center" class="row1"><span class="genmed">{songrow.song_detail.SINGER}</span></td> <td width="25%" align="center" class="row2"><span class="gensmall">{songrow.song_detail.POSTER}<BR>{songrow.song_detail.TIME}</span></td> --- 55,59 ---- <tr> <td width="31%" align="center" class="row2"><span class="genmed">{songrow.song_detail.TITLE} ! <BR />{songrow.station_detail.APPROVAL}</span></td> <td width="15%" align="center" class="row1"><span class="genmed">{songrow.song_detail.SINGER}</span></td> <td width="25%" align="center" class="row2"><span class="gensmall">{songrow.song_detail.POSTER}<BR>{songrow.song_detail.TIME}</span></td> |
|
From: OryNider <ory...@us...> - 2008-03-21 20:18:45
|
Update of /cvsroot/mxbb/mx_music/music_box/modules In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv32230/music_box/modules Modified Files: music_cat.php music_stream.php Log Message: aprovall thing Index: music_stream.php =================================================================== RCS file: /cvsroot/mxbb/mx_music/music_box/modules/music_stream.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** music_stream.php 8 Mar 2008 20:54:51 -0000 1.3 --- music_stream.php 21 Mar 2008 20:18:42 -0000 1.4 *************** *** 28,56 **** } - // - // 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 - // - } - - - $music_root_path = $module_root_path . 'music_box/'; - - // - // Get general music information - // - include_once($music_root_path . 'music_common.'.$phpEx); // ------------------------------------ --- 28,31 ---- *************** *** 235,239 **** $errno = "errno"; $errstr = "errstr"; ! $fp = fsockopen($ip, $port, $errno, $errstr, 30); --- 210,221 ---- $errno = "errno"; $errstr = "errstr"; ! ! $fp = @fsockopen($ip, $port, $errno, $errstr, 30); ! ! if (!$fp) ! { ! $station_url = str_replace("/listen.pls", "", htmlspecialchars(trim($thissong['station_url']))); ! die($station_url); ! } Index: music_cat.php =================================================================== RCS file: /cvsroot/mxbb/mx_music/music_box/modules/music_cat.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** music_cat.php 15 Mar 2008 17:17:45 -0000 1.4 --- music_cat.php 21 Mar 2008 20:18:42 -0000 1.5 *************** *** 799,802 **** --- 799,806 ---- 'SONG_TITLE' => $thissong['song_title'], + + 'DESC' => $thissong['station_desc'], + + 'APPROVAL' => $approval_link, 'SONG_URL' => !empty($thissong['song_url']) ? $thissong['song_url'] : $url_song, |
|
From: OryNider <ory...@us...> - 2008-03-21 20:17:57
|
Update of /cvsroot/mxbb/mx_music/music_box/language/lang_romanian In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv31804/lang_romanian Log Message: Directory /cvsroot/mxbb/mx_music/music_box/language/lang_romanian added to the repository |
|
From: Jon O. <jon...@us...> - 2008-03-21 20:12:48
|
Update of /cvsroot/mxbb/core/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv29535 Modified Files: mx_functions_tools.php Log Message: Automessages...forgot to update HEAD Index: mx_functions_tools.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/mx_functions_tools.php,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** mx_functions_tools.php 14 Mar 2008 20:40:58 -0000 1.25 --- mx_functions_tools.php 21 Mar 2008 20:12:45 -0000 1.26 *************** *** 2064,2074 **** //$this->temp_url = PORTAL_URL . this_kb_mxurl("mode=" . "article&k=" . $this->data['item_id'], false, true); ! $this->auto_message = "<br /><b>" . $this->langs['item_title'] . ":</b> " . $this->data['item_title'] . "<br />"; ! $this->auto_message .= "<b>" . $this->langs['author'] . ":</b> " . $this->data['item_author'] . "<br />"; ! $this->auto_message .= "<b>" . $this->langs['item_description'] . ":</b> <i>" . $this->data['item_desc'] . "</i><br />"; if ($action != MX_DELETED_NOTIFICATION) { ! $this->auto_message .= "<br /><b><a href=\"" . $this->temp_url . "\">" . $this->langs['read_full_item'] . "</a></b>"; } --- 2064,2074 ---- //$this->temp_url = PORTAL_URL . this_kb_mxurl("mode=" . "article&k=" . $this->data['item_id'], false, true); ! $this->auto_message = $this->langs['item_title'] . ": " . $this->data['item_title'] . "\n"; ! $this->auto_message .= $this->langs['author'] . ": " . $this->data['item_author'] . "\n"; ! $this->auto_message .= $this->langs['item_description'] . ": " . $this->data['item_desc'] . "\n"; if ($action != MX_DELETED_NOTIFICATION) { ! $this->auto_message .= "\n" . $this->langs['read_full_item'] . ": \n" . $this->temp_url . "\n"; } *************** *** 2076,2080 **** // Update message // ! $this->auto_message_update = "<br /><i>" . $this->langs['edited_item_info'] . $this->data['item_editor'] . "</i>" . "<br />"; // --- 2076,2080 ---- // Update message // ! $this->auto_message_update = $this->langs['edited_item_info'] . $this->data['item_editor'] . "\n"; // |
|
From: Jon O. <jon...@us...> - 2008-03-21 20:05:21
|
Update of /cvsroot/mxbb/core/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv26049/includes Modified Files: Tag: core28x mx_functions_phpbb.php mx_functions_tools.php Log Message: Corrected what phpbb functions to include... Index: mx_functions_phpbb.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/mx_functions_phpbb.php,v retrieving revision 1.32.2.15 retrieving revision 1.32.2.16 diff -C2 -d -r1.32.2.15 -r1.32.2.16 *** mx_functions_phpbb.php 23 Feb 2008 19:38:24 -0000 1.32.2.15 --- mx_functions_phpbb.php 21 Mar 2008 20:05:16 -0000 1.32.2.16 *************** *** 15,18 **** --- 15,25 ---- } + // + // First off, include common vanilla phpBB functions, from our shared dir + // Note: These functions will later be accessible wrapped as phpBBX::orig_functionname() + // + include($mx_root_path . 'includes/shared/phpbb2/includes/functions.' . $phpEx); + include_once($phpbb_root_path . 'includes/functions.' . $phpEx); // In case we need old functions... + /** * phpBB Smilies pass. Index: mx_functions_tools.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/mx_functions_tools.php,v retrieving revision 1.15.2.6 retrieving revision 1.15.2.7 diff -C2 -d -r1.15.2.6 -r1.15.2.7 *** mx_functions_tools.php 18 Feb 2008 20:20:08 -0000 1.15.2.6 --- mx_functions_tools.php 21 Mar 2008 20:05:17 -0000 1.15.2.7 *************** *** 2033,2043 **** //$this->temp_url = PORTAL_URL . this_kb_mxurl("mode=" . "article&k=" . $this->data['item_id'], false, true); ! $this->auto_message = "<br /><b>" . $this->langs['item_title'] . ":</b> " . $this->data['item_title'] . "<br />"; ! $this->auto_message .= "<b>" . $this->langs['author'] . ":</b> " . $this->data['item_author'] . "<br />"; ! $this->auto_message .= "<b>" . $this->langs['item_description'] . ":</b> <i>" . $this->data['item_desc'] . "</i><br />"; if ($action != MX_DELETED_NOTIFICATION) { ! $this->auto_message .= "<br /><b><a href=\"" . $this->temp_url . "\">" . $this->langs['read_full_item'] . "</a></b>"; } --- 2033,2043 ---- //$this->temp_url = PORTAL_URL . this_kb_mxurl("mode=" . "article&k=" . $this->data['item_id'], false, true); ! $this->auto_message = $this->langs['item_title'] . ": " . $this->data['item_title'] . "\n"; ! $this->auto_message .= $this->langs['author'] . ": " . $this->data['item_author'] . "\n"; ! $this->auto_message .= $this->langs['item_description'] . ": " . $this->data['item_desc'] . "\n"; if ($action != MX_DELETED_NOTIFICATION) { ! $this->auto_message .= "\n" . $this->langs['read_full_item'] . ": \n" . $this->temp_url . "\n"; } *************** *** 2045,2049 **** // Update message // ! $this->auto_message_update = "<br /><i>" . $this->langs['edited_item_info'] . $this->data['item_editor'] . "</i>" . "<br />"; // --- 2045,2049 ---- // Update message // ! $this->auto_message_update = $this->langs['edited_item_info'] . $this->data['item_editor'] . "\n"; // |
|
From: Jon O. <jon...@us...> - 2008-03-21 20:05:20
|
Update of /cvsroot/mxbb/core In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv26049 Modified Files: Tag: core28x common.php Log Message: Corrected what phpbb functions to include... Index: common.php =================================================================== RCS file: /cvsroot/mxbb/core/common.php,v retrieving revision 1.67.2.11 retrieving revision 1.67.2.12 diff -C2 -d -r1.67.2.11 -r1.67.2.12 *** common.php 10 Mar 2008 13:26:35 -0000 1.67.2.11 --- common.php 21 Mar 2008 20:05:15 -0000 1.67.2.12 *************** *** 297,308 **** include_once($mx_root_path . 'includes/mx_functions_style.' . $phpEx); // Extends the phpBB template class - // - // phpBB Includes - // - include_once($phpbb_root_path . 'includes/functions.' . $phpEx); - - // - // More mxBB Includes - // include_once($mx_root_path . 'includes/db/' . $dbms . '.' . $phpEx); // Load dbal and initiate class include_once($mx_root_path . 'includes/mx_functions.' . $phpEx); // CORE Functions --- 297,300 ---- |
|
From: OryNider <ory...@us...> - 2008-03-21 12:51:21
|
Update of /cvsroot/mxbb/mx_radiocast/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv20932 Modified Files: Tag: core28x radiocast_cat.php Log Message: typo Index: radiocast_cat.php =================================================================== RCS file: /cvsroot/mxbb/mx_radiocast/includes/radiocast_cat.php,v retrieving revision 1.1.2.2 retrieving revision 1.1.2.3 diff -C2 -d -r1.1.2.2 -r1.1.2.3 *** radiocast_cat.php 21 Mar 2008 12:26:18 -0000 1.1.2.2 --- radiocast_cat.php 21 Mar 2008 12:51:06 -0000 1.1.2.3 *************** *** 972,978 **** '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>' : '', --- 972,978 ---- '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_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="'. mx_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="'. mx_append_sid(this_rc_mxurl("radiocast_mode=radiocast_modcp&mode=move&station_id=". $stationrow[$j]['station_id'])) .'">'. $lang['Move'] .'</a>' : '', |
|
From: OryNider <ory...@us...> - 2008-03-21 12:26:31
|
Update of /cvsroot/mxbb/mx_radiocast/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv25795 Modified Files: Tag: core28x radiocast_add.php radiocast_cat.php Log Message: fix Index: radiocast_add.php =================================================================== RCS file: /cvsroot/mxbb/mx_radiocast/includes/radiocast_add.php,v retrieving revision 1.1 retrieving revision 1.1.2.1 diff -C2 -d -r1.1 -r1.1.2.1 *** radiocast_add.php 6 Jun 2007 23:03:48 -0000 1.1 --- radiocast_add.php 21 Mar 2008 12:26:12 -0000 1.1.2.1 *************** *** 421,428 **** if( empty($station_url) ) { ! if( ($filesize == 0) or ($filesize > $radiocast_config['max_file_size']) ) ! { ! mx_message_die(GENERAL_MESSAGE, $lang['Bad_upload_file_size']); } } --- 421,485 ---- if( empty($station_url) ) { ! if( ($filesize == 0) or ($filesize > $radiocast_config['max_file_size']) ) ! { ! mx_message_die(GENERAL_MESSAGE, $lang['Bad_upload_file_size']); ! } } + else + { + $station_filetype = substr($station_url, strlen($station_url) - 3, 3); + + // Settings by lsn (hb...@ho...) + $hostandport = explode("//", $station_url); + + //Trasfer Protocol + if ($hostandport[0]) + { + $protocol_type = $hostandport[0]; + } + else + { + $protocol_type = 'http:'; + } + + //Domain + $hostname = $hostandport[1]; + + // Shoutcast Ip or Host + $host = explode(":", $hostname); + + if ($host[0]) + { + $ip = $host[0]; + } + elseif ($hostname) + { + $ip = $hostname; + } + else + { + $ip = '127.0.0.0'; //localhost + } + + // Shoutcast Port + $port = explode("/", $host[1]); + + if ($port[0]) + { + $port = $port[0]; + } + elseif ($host[1]) + { + $port = $host[1]; + } + else + { + $port = '80'; + } + + $mount = "/"; // Used for alternate path to "Streaming URL" -- leave as "/" for the default setup. + + $wmpmode = ($protocol_type == 'icyx:') ? 'icyx://' : 'http://'; // AAC VS MPEG + $mimetype = ($protocol_type == 'icyx:') ? 'audio/aacp' : 'audio/x-mpeg'; // AAC VS MPEG } *************** *** 433,672 **** if( empty($station_url) ) { ! switch ($filetype) ! { ! case 'audio/mpeg': ! case 'audio/x-mpeg': ! case 'audio/mp3': ! case 'audio/mpg': ! if ($radiocast_config['mp3_allowed'] == 0) ! { ! mx_message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']); ! } ! $station_filetype = '.mp3'; ! break; ! case 'audio/wav': ! if ($radiocast_config['wav_allowed'] == 0) ! { ! mx_message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']); ! } ! $station_filetype = '.wav'; ! break; ! case 'audio/x-ms-wma': ! if ($radiocast_config['wma_allowed'] == 0) ! { ! mx_message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']); ! } ! $station_filetype = '.wma'; ! break; ! // ! // Extra extensions ! // ! case 'video/x-ms-wmv': ! if ($radiocast_config['wmv_allowed'] == 0) ! { ! mx_message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']); ! } ! $station_filetype = '.wmv'; ! break; ! case 'video/mpeg': ! if ($radiocast_config['mpeg_allowed'] == 0) ! { ! mx_message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']); ! } ! $station_filetype = '.mpeg'; ! break; ! case 'video/avi': ! case 'video/x-msvideo': ! if ($radiocast_config['avi_allowed'] == 0) ! { ! mx_message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']); ! } ! $station_filetype = '.avi'; ! break; ! case 'application/x-shockwave-flash': ! if ($radiocast_config['swf_allowed'] == 0) ! { ! mx_message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']); ! } ! $station_filetype = '.swf'; ! break; ! case 'video/quicktime': ! if ($radiocast_config['qt_allowed'] == 0) ! { ! mx_message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']); ! } ! $station_filetype = '.qt'; ! break; ! case 'audio/x-midi': ! case 'audio/mid': ! case 'audio/midi': ! if ($radiocast_config['mid_allowed'] == 0) ! { ! mx_message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']); ! } ! $station_filetype = '.mid'; ! break; ! case 'audio/x-pn-realaudio': ! if ($radiocast_config['ram_allowed'] == 0) ! { ! mx_message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']); ! } ! $station_filetype = '.ram'; ! break; ! case 'audio/basic': ! if ($radiocast_config['au_allowed'] == 0) ! { ! mx_message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']); ! } ! $station_filetype = '.au'; ! break; ! case 'audio/vnd.rn-realmedia': ! case 'application/vnd.rn-realmedia': ! case 'video/vnd.rn-realvideo': ! case 'application/vnd': ! if ($radiocast_config['rm_allowed'] == 0) ! { ! mx_message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']); ! } ! $station_filetype = '.rm'; ! break; ! // End extra ! default: ! mx_message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']); ! } } else { ! switch ($filetype) ! { ! case 'audio/mpeg': ! case 'audio/x-mpeg': ! case 'audio/mp3': ! case 'audio/mpg': ! if ($radiocast_config['mp3_allowed'] == 0) ! { ! mx_message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']); ! } ! $station_filetype = '.mp3'; ! break; ! case 'audio/wav': ! if ($radiocast_config['wav_allowed'] == 0) ! { ! mx_message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']); ! } ! $station_filetype = '.wav'; ! break; ! case 'audio/x-ms-wma': ! if ($radiocast_config['wma_allowed'] == 0) ! { ! mx_message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']); ! } ! $station_filetype = '.wma'; ! break; ! // ! // Extra extensions ! // ! case 'video/x-ms-wmv': ! if ($radiocast_config['wmv_allowed'] == 0) ! { ! mx_message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']); ! } ! $station_filetype = '.wmv'; ! break; ! case 'video/mpeg': ! if ($radiocast_config['mpeg_allowed'] == 0) ! { ! mx_message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']); ! } ! $station_filetype = '.mpeg'; ! break; ! case 'video/avi': ! case 'video/x-msvideo': ! if ($radiocast_config['avi_allowed'] == 0) ! { ! mx_message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']); ! } ! $station_filetype = '.avi'; ! break; ! case 'application/x-shockwave-flash': ! if ($radiocast_config['swf_allowed'] == 0) ! { ! mx_message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']); ! } ! $station_filetype = '.swf'; ! break; ! case 'video/quicktime': ! if ($radiocast_config['qt_allowed'] == 0) ! { ! mx_message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']); ! } ! $station_filetype = '.qt'; ! break; ! case 'audio/x-midi': ! case 'audio/mid': ! case 'audio/midi': ! if ($radiocast_config['mid_allowed'] == 0) ! { ! mx_message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']); ! } ! $station_filetype = '.mid'; ! break; ! case 'audio/x-pn-realaudio': ! if ($radiocast_config['ram_allowed'] == 0) ! { ! mx_message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']); ! } ! $station_filetype = '.ram'; ! break; ! case 'audio/basic': ! if ($radiocast_config['au_allowed'] == 0) ! { ! mx_message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']); ! } ! $station_filetype = '.au'; ! break; ! case 'audio/vnd.rn-realmedia': ! case 'application/vnd.rn-realmedia': ! case 'video/vnd.rn-realvideo': ! case 'application/vnd': ! if ($radiocast_config['rm_allowed'] == 0) ! { ! mx_message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']); ! } ! $station_filetype = '.rm'; ! break; ! default: ! $station_filetype = '.pls'; ! break; ! // End extra ! } } --- 490,763 ---- if( empty($station_url) ) { ! switch ($filetype) ! { ! case 'audio/mpeg': ! case 'audio/x-mpeg': ! case 'audio/mp3': ! case 'audio/mpg': ! if ($radiocast_config['mp3_allowed'] == 0) ! { ! mx_message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']); ! } ! $station_filetype = '.mp3'; ! break; ! case 'audio/wav': ! if ($radiocast_config['wav_allowed'] == 0) ! { ! mx_message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']); ! } ! $station_filetype = '.wav'; ! break; ! case 'audio/x-ms-wma': ! if ($radiocast_config['wma_allowed'] == 0) ! { ! mx_message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']); ! } ! $station_filetype = '.wma'; ! break; ! // ! // Extra extensions ! // ! case 'video/x-ms-wmv': ! if ($radiocast_config['wmv_allowed'] == 0) ! { ! mx_message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']); ! } ! $station_filetype = '.wmv'; ! break; ! case 'video/mpeg': ! if ($radiocast_config['mpeg_allowed'] == 0) ! { ! mx_message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']); ! } ! $station_filetype = '.mpeg'; ! break; ! case 'video/avi': ! case 'video/x-msvideo': ! if ($radiocast_config['avi_allowed'] == 0) ! { ! mx_message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']); ! } ! $station_filetype = '.avi'; ! break; ! case 'application/x-shockwave-flash': ! if ($radiocast_config['swf_allowed'] == 0) ! { ! mx_message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']); ! } ! $station_filetype = '.swf'; ! break; ! case 'video/quicktime': ! if ($radiocast_config['qt_allowed'] == 0) ! { ! mx_message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']); ! } ! $station_filetype = '.qt'; ! break; ! case 'video/x-flv': ! case 'video/flv': ! case 'application/octet-stream': ! if ($radiocast_config['flv_allowed'] == 0) ! { ! mx_message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']); ! } ! $station_filetype = '.flv'; ! break; ! case 'audio/x-midi': ! case 'audio/mid': ! case 'audio/midi': ! if ($radiocast_config['mid_allowed'] == 0) ! { ! mx_message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']); ! } ! $station_filetype = '.mid'; ! break; ! case 'audio/x-pn-realaudio': ! if ($radiocast_config['ram_allowed'] == 0) ! { ! mx_message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']); ! } ! $station_filetype = '.ram'; ! break; ! case 'audio/basic': ! if ($radiocast_config['au_allowed'] == 0) ! { ! mx_message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']); ! } ! $station_filetype = '.au'; ! break; ! case 'audio/vnd.rn-realmedia': ! case 'application/vnd.rn-realmedia': ! case 'video/vnd.rn-realvideo': ! case 'application/vnd': ! if ($radiocast_config['rm_allowed'] == 0) ! { ! mx_message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']); ! } ! $station_filetype = '.rm'; ! break; ! case 'image/jpeg': ! case 'image/jpg': ! case 'image/pjpeg': ! if ($radiocast_config['img_allowed'] == 0) ! { ! mx_message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']); ! } ! $station_filetype = '.jpg'; ! break; ! ! case 'image/gif': ! if ($radiocast_config['img_allowed'] == 0) ! { ! mx_message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']); ! } ! $station_filetype = '.gif'; ! break; ! ! case 'image/png': ! case 'image/x-png': ! if ($radiocast_config['img_allowed'] == 0) ! { ! mx_message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']); ! } ! $station_filetype = '.png'; ! break; ! ! // End extra ! } } else { ! switch ($filetype) ! { ! case 'audio/mpeg': ! case 'audio/x-mpeg': ! case 'audio/mp3': ! case 'audio/mpg': ! if ($radiocast_config['mp3_allowed'] == 0) ! { ! mx_message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']); ! } ! $station_filetype = '.mp3'; ! break; ! case 'audio/wav': ! if ($radiocast_config['wav_allowed'] == 0) ! { ! mx_message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']); ! } ! $station_filetype = '.wav'; ! break; ! case 'audio/x-ms-wma': ! if ($radiocast_config['wma_allowed'] == 0) ! { ! mx_message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']); ! } ! $station_filetype = '.wma'; ! break; ! // ! // Extra extensions ! // ! case 'video/x-ms-wmv': ! if ($radiocast_config['wmv_allowed'] == 0) ! { ! mx_message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']); ! } ! $station_filetype = '.wmv'; ! break; ! case 'video/mpeg': ! if ($radiocast_config['mpeg_allowed'] == 0) ! { ! mx_message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']); ! } ! $station_filetype = '.mpeg'; ! break; ! case 'video/avi': ! case 'video/x-msvideo': ! if ($radiocast_config['avi_allowed'] == 0) ! { ! mx_message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']); ! } ! $station_filetype = '.avi'; ! break; ! case 'application/x-shockwave-flash': ! if ($radiocast_config['swf_allowed'] == 0) ! { ! mx_message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']); ! } ! $station_filetype = '.swf'; ! break; ! case 'video/quicktime': ! if ($radiocast_config['qt_allowed'] == 0) ! { ! mx_message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']); ! } ! $station_filetype = '.qt'; ! break; ! case 'audio/x-midi': ! case 'audio/mid': ! case 'audio/midi': ! if ($radiocast_config['mid_allowed'] == 0) ! { ! mx_message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']); ! } ! $station_filetype = '.mid'; ! break; ! case 'audio/x-pn-realaudio': ! if ($radiocast_config['ram_allowed'] == 0) ! { ! mx_message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']); ! } ! $station_filetype = '.ram'; ! break; ! case 'audio/basic': ! if ($radiocast_config['au_allowed'] == 0) ! { ! mx_message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']); ! } ! $station_filetype = '.au'; ! break; ! case 'audio/vnd.rn-realmedia': ! case 'application/vnd.rn-realmedia': ! case 'video/vnd.rn-realvideo': ! case 'application/vnd': ! if ($radiocast_config['rm_allowed'] == 0) ! { ! mx_message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']); ! } ! $station_filetype = '.rm'; ! break; ! default: ! $station_filetype = ($mimetype == 'audio/aacp') ? '.aac' : '.pls'; // AAC VS MPEG ! break; ! // End extra ! } } *************** *** 788,793 **** // -------------------------------- ! $sql3 = "INSERT INTO ". RADIOCAST_TABLE ." (station_filename, station_imagename, station_title, station_url, station_desc, station_singer, station_user_id, station_username, station_user_ip, station_time, station_cat_id, station_approval) ! VALUES ('$station_filename', '$station_imagename', '$station_title', '$station_url', '$station_desc', '$station_singer', '$station_user_id', '$station_username', '$station_user_ip', '$station_time', '$cat_id', '$station_approval')"; if( !$result = $db->sql_query($sql3) ) --- 879,884 ---- // -------------------------------- ! $sql3 = "INSERT INTO ". RADIOCAST_TABLE ." (station_filename, station_filetype, station_imagename, station_title, station_url, station_desc, station_singer, station_user_id, station_username, station_user_ip, station_time, station_cat_id, station_approval) ! VALUES ('$station_filename', '$station_filetype', '$station_imagename', '$station_title', '$station_url', '$station_desc', '$station_singer', '$station_user_id', '$station_username', '$station_user_ip', '$station_time', '$cat_id', '$station_approval')"; if( !$result = $db->sql_query($sql3) ) Index: radiocast_cat.php =================================================================== RCS file: /cvsroot/mxbb/mx_radiocast/includes/radiocast_cat.php,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -C2 -d -r1.1.2.1 -r1.1.2.2 *** radiocast_cat.php 21 Mar 2008 08:57:09 -0000 1.1.2.1 --- radiocast_cat.php 21 Mar 2008 12:26:18 -0000 1.1.2.2 *************** *** 445,449 **** } ! if ( $thisstation['station_url'] == '' ) { $station_filetype = substr($thisstation['station_filename'], strlen($thisstation['station_filename']) - 3, 3); --- 445,449 ---- } ! if ($thisstation['station_url'] == '') { $station_filetype = substr($thisstation['station_filename'], strlen($thisstation['station_filename']) - 3, 3); *************** *** 454,457 **** --- 454,586 ---- $station_filetype = substr($thisstation['station_url'], strlen($thisstation['station_url']) - 3, 3); $station_url = $thisstation['station_url']; + + // Settings by lsn (hb...@ho...) + $hostandport = explode("//", $station_url); + + //Trasfer Protocol + if ($hostandport[0]) + { + $protocol_type = $hostandport[0]; + } + else + { + $protocol_type = 'http:'; + } + + //Domain + $hostname = $hostandport[1]; + + // Shoutcast Ip or Host + $host = explode(":", $hostname); + + if ($host[0]) + { + $ip = $host[0]; + } + elseif ($hostname) + { + $ip = $hostname; + } + else + { + $ip = '127.0.0.0'; //localhost + } + + // Shoutcast Port + $port = explode("/", $host[1]); + + if ($port[0]) + { + $port = $port[0]; + } + elseif ($host[1]) + { + $port = $host[1]; + } + else + { + $port = '80'; + } + + $mount = "/"; // Used for alternate path to "Streaming URL" -- leave as "/" for the default setup. + + $wmpmode = ($protocol_type == 'icyx:') ? 'icyx://' : 'http://'; // AAC VS MPEG + $mimetype = ($protocol_type == 'icyx:') ? 'audio/aacp' : 'audio/x-mpeg'; // AAC VS MPEG + + switch ($station_filetype) + { + case 'mp3': + $station_filetype = '.mp3'; + break; + + case 'wav': + $station_filetype = '.wav'; + break; + + case 'wma': + $station_filetype = '.wma'; + break; + + // + // Extra extensions + // + + case 'wmv': + $station_filetype = '.wmv'; + break; + + case 'mpg': + case 'peg': + $station_filetype = '.mpeg'; + break; + + case 'avi': + $station_filetype = '.avi'; + break; + + case 'swf': + $station_filetype = '.swf'; + break; + + case '.qt': + $station_filetype = '.qt'; + break; + + case 'flv': + $station_filetype = '.flv'; + break; + + case 'mid': + case 'idi': + $station_filetype = '.mid'; + break; + + case 'ram': + $station_filetype = '.ram'; + break; + + case '.au': + $station_filetype = '.au'; + break; + + case '.rm': + $station_filetype = '.rm'; + break; + + case 'jpg': + $station_filetype = '.jpg'; + break; + + case 'gif': + $station_filetype = '.gif'; + break; + + case 'png': + $station_filetype = '.png'; + break; + default: + $station_filetype = ($mimetype == 'audio/aacp') ? '.aac' : '.pls'; // AAC VS MPEG + // End extra + } } *************** *** 549,552 **** --- 678,697 ---- $row_type = 'media'; } + else if( ($station_filetype == 'mp3') && !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( ($station_filetype == 'aac') && !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'])) { *************** *** 819,823 **** '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'], --- 964,968 ---- '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'], |
|
From: OryNider <ory...@us...> - 2008-03-21 10:09:09
|
Update of /cvsroot/mxbb/mx_radiocast/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv29361/includes Modified Files: Tag: core28x radiocast_player.php Log Message: fix for 2.8.1 Index: radiocast_player.php =================================================================== RCS file: /cvsroot/mxbb/mx_radiocast/includes/radiocast_player.php,v retrieving revision 1.2.2.2 retrieving revision 1.2.2.3 diff -C2 -d -r1.2.2.2 -r1.2.2.3 *** radiocast_player.php 21 Mar 2008 08:57:09 -0000 1.2.2.2 --- radiocast_player.php 21 Mar 2008 10:08:26 -0000 1.2.2.3 *************** *** 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'], --- 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'], |
|
From: OryNider <ory...@us...> - 2008-03-21 10:08:40
|
Update of /cvsroot/mxbb/mx_radiocast/radiocast_mod In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv29361/radiocast_mod Modified Files: Tag: core28x radiocast_constants.php Log Message: fix for 2.8.1 Index: radiocast_constants.php =================================================================== RCS file: /cvsroot/mxbb/mx_radiocast/radiocast_mod/radiocast_constants.php,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -C2 -d -r1.1.2.1 -r1.1.2.2 *** radiocast_constants.php 21 Mar 2008 08:57:11 -0000 1.1.2.1 --- radiocast_constants.php 21 Mar 2008 10:08:29 -0000 1.1.2.2 *************** *** 56,63 **** if (!$is_block) { ! if ( file_exists($module_root_path . "templates/" . $theme['template_name'] . '/' . "mx_radiocast.cfg" ) ) { // ---------- ! include_once($module_root_path . "templates/" . $theme['template_name'] . '/' . "mx_radiocast.cfg"); // ---------- } --- 56,76 ---- if (!$is_block) { ! ! $default_lang = ($mx_user->lang['default_lang']) ? $mx_user->lang['default_lang'] : (($board_config['default_lang']) ? $board_config['default_lang'] : 'english'); ! ! if ((@include $module_root_path . "language/lang_" . $default_lang . "/lang_main.$phpEx") === false) ! { ! if ((@include $module_root_path . "language/lang_english/lang_main.$phpEx") === false) ! { ! mx_message_die(CRITICAL_ERROR, 'Language file ' . $module_root_path . "language/lang_" . $default_lang . "/lang_main.$phpEx" . ' couldn\'t be opened.'); ! } ! $default_lang = 'english'; ! } ! ! ! if ( file_exists($module_root_path . "templates/" . $theme['template_name'] . '/' . "subSilver.cfg" ) ) { // ---------- ! include_once($module_root_path . "templates/" . $theme['template_name'] . '/' . "subSilver.cfg"); // ---------- } *************** *** 65,74 **** { // ---------- ! include_once($module_root_path . "templates/" . "subSilver/" . "mx_radiocast.cfg"); // ---------- } ! $img_lang = ( file_exists($module_root_path . "templates/" . $theme['template_name'] . '/images/lang_' . $board_config['default_lang']) ) ? $board_config['default_lang'] : 'english'; while( list($key, $value) = @each($mx_images) ) --- 78,87 ---- { // ---------- ! include_once($module_root_path . "templates/" . "subSilver/" . "subSilver.cfg"); // ---------- } ! $img_lang = ( file_exists($module_root_path . "templates/" . $theme['template_name'] . '/images/lang_' . $default_lang) ) ? $default_lang : 'english'; while( list($key, $value) = @each($mx_images) ) |
|
From: OryNider <ory...@us...> - 2008-03-21 09:06:45
|
Update of /cvsroot/mxbb/mx_radiocast In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv4553 Modified Files: radiocast.php Log Message: fix Index: radiocast.php =================================================================== RCS file: /cvsroot/mxbb/mx_radiocast/radiocast.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** radiocast.php 21 Mar 2008 08:50:26 -0000 1.4 --- radiocast.php 21 Mar 2008 09:06:41 -0000 1.5 *************** *** 84,751 **** // ! //mode // ! if ( isset($HTTP_POST_VARS['radiocast_mode']) || isset($HTTP_GET_VARS['radiocast_mode']) ) { ! $mode= ( isset($HTTP_POST_VARS['radiocast_mode']) ) ? $HTTP_POST_VARS['radiocast_mode'] : $HTTP_GET_VARS['radiocast_mode']; } ! else { [...1514 lines suppressed...] ! 'SORT_RATING_OPTION' => $sort_rating_option, ! 'SORT_COMMENTS_OPTION' => $sort_comments_option, ! 'SORT_NEW_COMMENT_OPTION' => $sort_new_comment_option, ! 'L_SORT' => $lang['Sort']) ! ); ! // ! // Generate the page ! // ! $template->pparse('body'); + if ( !is_object($mx_block)) + { + include($mx_root_path . 'includes/page_tail.'.$phpEx); + } } ?> \ No newline at end of file |
|
From: OryNider <ory...@us...> - 2008-03-21 09:05:59
|
Update of /cvsroot/mxbb/mx_radiocast In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv3595 Modified Files: Tag: core28x radiocast.php Log Message: fix Index: radiocast.php =================================================================== RCS file: /cvsroot/mxbb/mx_radiocast/radiocast.php,v retrieving revision 1.1.2.2 retrieving revision 1.1.2.3 diff -C2 -d -r1.1.2.2 -r1.1.2.3 *** radiocast.php 21 Mar 2008 08:57:08 -0000 1.1.2.2 --- radiocast.php 21 Mar 2008 09:05:52 -0000 1.1.2.3 *************** *** 84,751 **** // ! //mode // ! if ( isset($HTTP_POST_VARS['radiocast_mode']) || isset($HTTP_GET_VARS['radiocast_mode']) ) { ! $mode= ( isset($HTTP_POST_VARS['radiocast_mode']) ) ? $HTTP_POST_VARS['radiocast_mode'] : $HTTP_GET_VARS['radiocast_mode']; } ! else { [...1514 lines suppressed...] ! 'SORT_RATING_OPTION' => $sort_rating_option, ! 'SORT_COMMENTS_OPTION' => $sort_comments_option, ! 'SORT_NEW_COMMENT_OPTION' => $sort_new_comment_option, ! 'L_SORT' => $lang['Sort']) ! ); ! // ! // Generate the page ! // ! $template->pparse('body'); + if ( !is_object($mx_block)) + { + include($mx_root_path . 'includes/page_tail.'.$phpEx); + } } ?> \ No newline at end of file |
|
From: OryNider <ory...@us...> - 2008-03-21 08:57:50
|
Update of /cvsroot/mxbb/mx_radiocast/templates/subSilver In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv27023/templates/subSilver Modified Files: Tag: core28x subSilver.cfg Log Message: version 1.0.2 Index: subSilver.cfg =================================================================== RCS file: /cvsroot/mxbb/mx_radiocast/templates/subSilver/Attic/subSilver.cfg,v retrieving revision 1.1 retrieving revision 1.1.2.1 diff -C2 -d -r1.1 -r1.1.2.1 *** subSilver.cfg 6 Jun 2007 23:04:15 -0000 1.1 --- subSilver.cfg 21 Mar 2008 08:57:14 -0000 1.1.2.1 *************** *** 31,39 **** // Do not alter this line! // ! if( !defined('MX_TEMPLATE_CONFIG')) ! { ! define(MX_TEMPLATE_CONFIG, TRUE); ! $mx_template_config = true; ! } $mx_template_name = 'subSilver'; --- 31,36 ---- // Do not alter this line! // ! @define(MX_TEMPLATE_CONFIG, TRUE); ! $mx_template_config = true; $mx_template_name = 'subSilver'; *************** *** 65,69 **** // ------------------------------------------------------------------------- ! $mx_images['post_station'] = "$current_template_images/" . LANG . "/icon_add_station.gif"; $mx_images['real_front'] = "$current_template_images/real_front.gif"; $mx_images['wmp_front'] = "$current_template_images/wmp_front.gif"; --- 62,66 ---- // ------------------------------------------------------------------------- ! $mx_images['post_station'] = "$current_template_images/{LANG}/icon_add_station.gif"; $mx_images['real_front'] = "$current_template_images/real_front.gif"; $mx_images['wmp_front'] = "$current_template_images/wmp_front.gif"; *************** *** 74,90 **** // Use standard phpBB graphics // ! $mx_images['icon_quote'] = "$current_template_phpbb_images/" . LANG . "/icon_quote.gif"; ! $mx_images['icon_edit'] = "$current_template_phpbb_images/" . LANG . "/icon_edit.gif"; ! $mx_images['icon_search'] = "$current_template_phpbb_images/" . LANG . "/icon_search.gif"; ! $mx_images['icon_profile'] = "$current_template_phpbb_images/" . LANG . "/icon_profile.gif"; ! $mx_images['icon_pm'] = "$current_template_phpbb_images/" . LANG . "/icon_pm.gif"; ! $mx_images['icon_email'] = "$current_template_phpbb_images/" . LANG . "/icon_email.gif"; $mx_images['icon_delpost'] = "$current_template_phpbb_images/icon_delete.gif"; ! $mx_images['icon_ip'] = "$current_template_phpbb_images/" . LANG . "/icon_ip.gif"; ! $mx_images['icon_www'] = "$current_template_phpbb_images/" . LANG . "/icon_www.gif"; ! $mx_images['icon_icq'] = "$current_template_phpbb_images/" . LANG . "/icon_icq_add.gif"; ! $mx_images['icon_aim'] = "$current_template_phpbb_images/" . LANG . "/icon_aim.gif"; ! $mx_images['icon_yim'] = "$current_template_phpbb_images/" . LANG . "/icon_yim.gif"; ! $mx_images['icon_msnm'] = "$current_template_phpbb_images/" . LANG . "/icon_msnm.gif"; $mx_images['icon_minipost'] = "$current_template_phpbb_images/icon_minipost.gif"; $mx_images['icon_gotopost'] = "$current_template_phpbb_images/icon_minipost.gif"; --- 71,87 ---- // Use standard phpBB graphics // ! $mx_images['icon_quote'] = "$current_template_phpbb_images/{LANG}/icon_quote.gif"; ! $mx_images['icon_edit'] = "$current_template_phpbb_images/{LANG}/icon_edit.gif"; ! $mx_images['icon_search'] = "$current_template_phpbb_images/{LANG}/icon_search.gif"; ! $mx_images['icon_profile'] = "$current_template_phpbb_images/{LANG}/icon_profile.gif"; ! $mx_images['icon_pm'] = "$current_template_phpbb_images/{LANG}/icon_pm.gif"; ! $mx_images['icon_email'] = "$current_template_phpbb_images/{LANG}/icon_email.gif"; $mx_images['icon_delpost'] = "$current_template_phpbb_images/icon_delete.gif"; ! $mx_images['icon_ip'] = "$current_template_phpbb_images/{LANG}/icon_ip.gif"; ! $mx_images['icon_www'] = "$current_template_phpbb_images/{LANG}/icon_www.gif"; ! $mx_images['icon_icq'] = "$current_template_phpbb_images/{LANG}/icon_icq_add.gif"; ! $mx_images['icon_aim'] = "$current_template_phpbb_images/{LANG}/icon_aim.gif"; ! $mx_images['icon_yim'] = "$current_template_phpbb_images/{LANG}/icon_yim.gif"; ! $mx_images['icon_msnm'] = "$current_template_phpbb_images/{LANG}/icon_msnm.gif"; $mx_images['icon_minipost'] = "$current_template_phpbb_images/icon_minipost.gif"; $mx_images['icon_gotopost'] = "$current_template_phpbb_images/icon_minipost.gif"; |
|
From: OryNider <ory...@us...> - 2008-03-21 08:57:50
|
Update of /cvsroot/mxbb/mx_radiocast/radiocast_mod In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv27023/radiocast_mod Modified Files: Tag: core28x radiocast_common.php radiocast_constants.php radiocast_integration.php Log Message: version 1.0.2 Index: radiocast_integration.php =================================================================== RCS file: /cvsroot/mxbb/mx_radiocast/radiocast_mod/radiocast_integration.php,v retrieving revision 1.1 retrieving revision 1.1.2.1 diff -C2 -d -r1.1 -r1.1.2.1 *** radiocast_integration.php 6 Jun 2007 23:04:00 -0000 1.1 --- radiocast_integration.php 21 Mar 2008 08:57:12 -0000 1.1.2.1 *************** *** 45,70 **** // Generate paths for page and standalone mode // ...function based on original function written by Markus :-) ! function this_rc_mxurl($args = '', $force_standalone_mode = false) { ! global $mx_root_path, $module_root_path, $page_id, $radiocast_index, $phpEx, $integration_enabled, $is_block; ! if( $force_standalone_mode || !$is_block ) ! { ! $mxurl = $mx_root_path . 'modules/mx_radiocast/' . 'radiocast.' . $phpEx . ($args == '' ? '' : '?' . $args); ! } ! else ! { ! $mxurl = $mx_root_path . 'index.' . $phpEx; ! if( is_numeric($page_id) && !empty($page_id) ) { ! $mxurl .= '?page=' . $page_id . ($args == '' ? '' : '&' . $args); } else { ! $mxurl .= '?page=' . $radiocast_index . ($args == '' ? '' : '&' . $args); } } - return $mxurl; } --- 45,73 ---- // Generate paths for page and standalone mode // ...function based on original function written by Markus :-) ! if (!function_exists('this_rc_mxurl')) { ! function this_rc_mxurl($args = '', $force_standalone_mode = false) ! { ! global $mx_root_path, $module_root_path, $page_id, $radiocast_index, $phpEx, $integration_enabled, $is_block; ! if( $force_standalone_mode || !$is_block ) { ! $mxurl = $mx_root_path . 'modules/mx_radiocast/' . 'radiocast.' . $phpEx . ($args == '' ? '' : '?' . $args); } else { ! $mxurl = $mx_root_path . 'index.' . $phpEx; ! if( is_numeric($page_id) && !empty($page_id) ) ! { ! $mxurl .= '?page=' . $page_id . ($args == '' ? '' : '&' . $args); ! } ! else ! { ! $mxurl .= '?page=' . $radiocast_index . ($args == '' ? '' : '&' . $args); ! } } + return $mxurl; } } Index: radiocast_common.php =================================================================== RCS file: /cvsroot/mxbb/mx_radiocast/radiocast_mod/radiocast_common.php,v retrieving revision 1.2.2.1 retrieving revision 1.2.2.2 diff -C2 -d -r1.2.2.1 -r1.2.2.2 *** radiocast_common.php 17 Sep 2007 07:24:31 -0000 1.2.2.1 --- radiocast_common.php 21 Mar 2008 08:57:10 -0000 1.2.2.2 *************** *** 26,62 **** } ! include_once($radiocast_root_path . 'radiocast_constants.'.$phpEx); ! ! // ********************************************************************** ! // Read language definition ! // ********************************************************************** ! ! if ( !file_exists( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx ) ) ! { ! include( $module_root_path . 'language/lang_english/lang_main.' . $phpEx ); ! $link_language='lang_english'; ! } ! else ! { ! include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx ); ! $link_language='lang_' . $board_config['default_lang']; ! } ! ! // ********************************************************************** ! // Read theme definition and language in theme definition ! // ********************************************************************** ! ! if ( file_exists( $module_root_path . "templates/" . $theme['template_name'] . '/' . $theme['template_name'] . ".cfg" ) ) ! { ! // ---------- ! include($module_root_path . "templates/" . $theme['template_name'] . '/' . $theme['template_name'] . ".cfg"); ! // ---------- ! } ! else ! { ! // ---------- ! include($module_root_path . "templates/" . "subSilver/" . "subSilver.cfg"); ! // ---------- ! } // --- 26,30 ---- } ! include($radiocast_root_path . 'radiocast_constants.'.$phpEx); // Index: radiocast_constants.php =================================================================== RCS file: /cvsroot/mxbb/mx_radiocast/radiocast_mod/radiocast_constants.php,v retrieving revision 1.1 retrieving revision 1.1.2.1 diff -C2 -d -r1.1 -r1.1.2.1 *** radiocast_constants.php 6 Jun 2007 23:03:59 -0000 1.1 --- radiocast_constants.php 21 Mar 2008 08:57:11 -0000 1.1.2.1 *************** *** 14,18 **** } ! define('PAGE_RADIOCAST', -19); // for Session Handling --- 14,18 ---- } ! @define('PAGE_RADIOCAST', -19); // for Session Handling *************** *** 32,37 **** - - // Table names !defined('RADIOCAST_TABLE') ? define('RADIOCAST_TABLE', $mx_table_prefix . 'radiocast') : false; --- 32,35 ---- *************** *** 41,43 **** --- 39,94 ---- !defined('RADIOCAST_RATE_TABLE') ? define('RADIOCAST_RATE_TABLE', $mx_table_prefix . 'radiocast_rate') : false; + + if (!$_GET['print']) // Do not "fix" with reuest wrapper!! + { + //$mx_user->set_module_default_style('_core'); // For compatibility with core 2.8.x + } + + // ------------------------------------------------------------------------- + // Extend User Style with module lang and images + // Usage: $mx_user->extend(LANG, IMAGES) + // Switches: + // - LANG: MX_LANG_MAIN (default), MX_LANG_ADMIN, MX_LANG_ALL, MX_LANG_NONE + // - IMAGES: MX_IMAGES (default), MX_IMAGES_NONE + // ------------------------------------------------------------------------- + $mx_user->extend(MX_LANG_MAIN, MX_IMAGES); + + if (!$is_block) + { + if ( file_exists($module_root_path . "templates/" . $theme['template_name'] . '/' . "mx_radiocast.cfg" ) ) + { + // ---------- + include_once($module_root_path . "templates/" . $theme['template_name'] . '/' . "mx_radiocast.cfg"); + // ---------- + } + else + { + // ---------- + include_once($module_root_path . "templates/" . "subSilver/" . "mx_radiocast.cfg"); + // ---------- + } + + + $img_lang = ( file_exists($module_root_path . "templates/" . $theme['template_name'] . '/images/lang_' . $board_config['default_lang']) ) ? $board_config['default_lang'] : 'english'; + + while( list($key, $value) = @each($mx_images) ) + { + if (is_array($value)) + { + foreach( $value as $key2 => $val2 ) + { + $images[$key][$key2] = $val2; + $mx_images[$key][$key2] = $val2; + } + } + else + { + $images[$key] = str_replace('{LANG}', 'lang_' . $img_lang, $value); + $mx_images[$key] = str_replace('{LANG}', 'lang_' . $img_lang, $value); + } + + } + + } + ?> \ No newline at end of file |
|
From: OryNider <ory...@us...> - 2008-03-21 08:57:47
|
Update of /cvsroot/mxbb/mx_radiocast/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv27023/includes Modified Files: Tag: core28x radiocast_cat.php radiocast_player.php Log Message: version 1.0.2 Index: radiocast_player.php =================================================================== RCS file: /cvsroot/mxbb/mx_radiocast/includes/radiocast_player.php,v retrieving revision 1.2.2.1 retrieving revision 1.2.2.2 diff -C2 -d -r1.2.2.1 -r1.2.2.2 *** radiocast_player.php 17 Sep 2007 07:24:30 -0000 1.2.2.1 --- radiocast_player.php 21 Mar 2008 08:57:09 -0000 1.2.2.2 *************** *** 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.1 retrieving revision 1.1.2.1 diff -C2 -d -r1.1 -r1.1.2.1 *** radiocast_cat.php 6 Jun 2007 23:03:49 -0000 1.1 --- radiocast_cat.php 21 Mar 2008 08:57:09 -0000 1.1.2.1 *************** *** 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 ---- *************** *** 353,362 **** // 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); } --- 347,356 ---- // 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); } *************** *** 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=' . decode_ip($stationrow[$j]['station_user_ip']) . '" target="_blank">' . 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 |
|
From: OryNider <ory...@us...> - 2008-03-21 08:57:46
|
Update of /cvsroot/mxbb/mx_radiocast In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv27023 Modified Files: Tag: core28x Radio_Cast.nfo db_install.php db_upgrade.php mx_install_readme.htm radiocast.php Log Message: version 1.0.2 Index: db_upgrade.php =================================================================== RCS file: /cvsroot/mxbb/mx_radiocast/db_upgrade.php,v retrieving revision 1.1.2.2 retrieving revision 1.1.2.3 diff -C2 -d -r1.1.2.2 -r1.1.2.3 *** db_upgrade.php 17 Sep 2007 07:24:30 -0000 1.1.2.2 --- db_upgrade.php 21 Mar 2008 08:57:07 -0000 1.1.2.3 *************** *** 30,34 **** } ! $mx_module_version = '1.0.1'; $mx_module_copy = 'mxBB <i> - Radio Cast</i> module by <a href="http://www.mxbb.net/" target="_blank">OryNider</a>'; --- 30,34 ---- } ! $mx_module_version = '1.0.2'; $mx_module_copy = 'mxBB <i> - Radio Cast</i> module by <a href="http://www.mxbb.net/" target="_blank">OryNider</a>'; *************** *** 44,47 **** --- 44,48 ---- // $upgrade_101 = 0; + $upgrade_102 = 0; // *************** *** 53,60 **** $upgrade_101 = 1; } $message = "<b>Upgrading!</b><br/><br/>"; ! if ( $upgrade_101 == 1 ) { $message .= "<b>Upgrading to v. 1.0.1...</b><br/><br/>"; --- 54,67 ---- $upgrade_101 = 1; } + + $result = $db->sql_query( "SELECT config_value from " . $mx_table_prefix . "radiocast_config WHERE config_name = 'xs_enabled'" ); + if ( $db->sql_numrows( $result ) == 0 ) + { + $upgrade_102 = 1; + } $message = "<b>Upgrading!</b><br/><br/>"; ! if ($upgrade_101 == 1) { $message .= "<b>Upgrading to v. 1.0.1...</b><br/><br/>"; *************** *** 69,72 **** --- 76,95 ---- WHERE config_name = 'radiocast_version'"; } + + if ($upgrade_102 == 1) + { + $message .= "<b>Upgrading to v. 1.0.2...</b><br/><br/>"; + + $sql[] = "INSERT INTO " . $mx_table_prefix . "radiocast_config VALUES ('xs_enabled', '1')"; + $sql[] = "INSERT INTO " . $mx_table_prefix . "radiocast_config VALUES ('img_allowed', '1')"; + $sql[] = "INSERT INTO " . $mx_table_prefix . "radiocast_config VALUES ('flv_allowed', '1')"; + + $sql[] = "INSERT INTO " . $mx_table_prefix . "radiocast_config VALUES ('rows_per_page_pic', '5')"; + $sql[] = "INSERT INTO " . $mx_table_prefix . "radiocast_config VALUES ('cols_per_page_pic', '5')"; + $sql[] = "INSERT INTO " . $mx_table_prefix . "radiocast_config VALUES ('rows_per_page_media', '10')"; + $sql[] = "INSERT INTO " . $mx_table_prefix . "radiocast_config VALUES ('cols_per_page_media', '1')"; + + $sql[] = "ALTER TABLE " . $mx_table_prefix . "radiocast ADD station_filetype varchar(255) NOT NULL AFTER station_filename"; + } else { Index: db_install.php =================================================================== RCS file: /cvsroot/mxbb/mx_radiocast/db_install.php,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -C2 -d -r1.1.2.1 -r1.1.2.2 *** db_install.php 17 Sep 2007 07:24:29 -0000 1.1.2.1 --- db_install.php 21 Mar 2008 08:57:05 -0000 1.1.2.2 *************** *** 33,37 **** } ! $mx_module_version = '1.0.1'; $mx_module_copy = 'mxBB <i> - Radio Cast</i> module by <a href="http://www.mxbb.net/" target="_blank">OryNider</a>'; --- 33,37 ---- } ! $mx_module_version = '1.0.2'; $mx_module_copy = 'mxBB <i> - Radio Cast</i> module by <a href="http://www.mxbb.net/" target="_blank">OryNider</a>'; *************** *** 57,60 **** --- 57,61 ---- station_id int(11) UNSIGNED NOT NULL auto_increment, station_filename varchar(255) NOT NULL, + station_filetype varchar(255) NOT NULL, station_imagename varchar(255) NOT NULL, station_title varchar(255) NOT NULL, *************** *** 174,177 **** --- 175,187 ---- $sql[] = "INSERT INTO " . $mx_table_prefix . "radiocast_config VALUES ('index', '5')"; + $sql[] = "INSERT INTO " . $mx_table_prefix . "radiocast_config VALUES ('xs_enabled', '1')"; + $sql[] = "INSERT INTO " . $mx_table_prefix . "radiocast_config VALUES ('img_allowed', '1')"; + $sql[] = "INSERT INTO " . $mx_table_prefix . "radiocast_config VALUES ('flv_allowed', '1')"; + $sql[] = "INSERT INTO " . $mx_table_prefix . "radiocast_config VALUES ('show_index_subcats', '1')"; + $sql[] = "INSERT INTO " . $mx_table_prefix . "radiocast_config VALUES ('rows_per_page_pic', '5')"; + $sql[] = "INSERT INTO " . $mx_table_prefix . "radiocast_config VALUES ('cols_per_page_pic', '5')"; + $sql[] = "INSERT INTO " . $mx_table_prefix . "radiocast_config VALUES ('rows_per_page_media', '10')"; + $sql[] = "INSERT INTO " . $mx_table_prefix . "radiocast_config VALUES ('cols_per_page_media', '1')"; + $sql[] = "UPDATE " . $mx_table_prefix . "module" . " SET module_version = '" . $mx_module_version . "', Index: radiocast.php =================================================================== RCS file: /cvsroot/mxbb/mx_radiocast/radiocast.php,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -C2 -d -r1.1.2.1 -r1.1.2.2 *** radiocast.php 17 Sep 2007 07:24:30 -0000 1.1.2.1 --- radiocast.php 21 Mar 2008 08:57:08 -0000 1.1.2.2 *************** *** 16,49 **** if( !defined('IN_PORTAL') || !is_object($mx_block)) { ! define('IN_PORTAL', true); ! $mx_root_path = '../../'; ! // ! // Let's include some stuff... ! // ! $phpEx = substr(strrchr(__FILE__, '.'), 1); ! include_once($mx_root_path . 'common.' . $phpEx); // // Start session management // ! $mx_user->init($user_ip, PAGE_INDEX); // // End session management // ! $block_id = ( !empty($HTTP_GET_VARS['block_id']) ) ? $HTTP_GET_VARS['block_id'] : $HTTP_POST_VARS['id']; ! if( empty($block_id) ) ! { ! $sql = "SELECT * FROM " . BLOCK_TABLE . " WHERE block_title = 'Radio Cast' LIMIT 1"; ! if(!$result = $db->sql_query($sql)) ! { ! message_die(GENERAL_ERROR, "Could not query Music Center module information", "", __LINE__, __FILE__, $sql); ! } ! $row = $db->sql_fetchrow($result); ! $block_id = $row['block_id']; ! } $is_block = FALSE; } else { - // // Read block Configuration --- 16,45 ---- if( !defined('IN_PORTAL') || !is_object($mx_block)) { ! ! @define('IN_PORTAL', true); ! ! $mx_root_path = "../../"; ! $module_root_path = "./"; ! ! $phpEx = substr(strrchr(__FILE__, '.'), 1); ! include_once($mx_root_path . 'common.'.$phpEx); ! // // Start session management // ! $mx_user->init($user_ip, PAGE_INDEX); // // End session management // ! ! $title = 'Media Player Radio'; ! ! $block_size = (isset($block_size) && !empty($block_size) ? $block_size : '348'); ! //$player_size = (isset($block_size) && !empty($block_size) ? $block_size - 15 : '333'); ! $is_block = FALSE; } else { // // Read block Configuration *************** *** 51,65 **** $title = $mx_block->block_info['block_title']; ! $block_size = ( isset($block_size) && !empty($block_size) ? $block_size : '100%' ); if( is_object($mx_block)) { ! $is_block = TRUE; } - - global $images, $mx_images; } - $radiocast_root_path = $module_root_path . 'radiocast_mod/'; --- 47,60 ---- $title = $mx_block->block_info['block_title']; ! $desc = $mx_block->block_info['block_desc']; ! $block_size = (isset($block_size) && !empty($block_size) ? $block_size : '100%'); ! //$player_size = $mx_block->get_parameters('player_width'); if( is_object($mx_block)) { ! $is_block = TRUE; } } $radiocast_root_path = $module_root_path . 'radiocast_mod/'; *************** *** 621,625 **** 'SINGER' => $topsongrow[$j]['station_singer'], ! 'RADIO_FRONT_IMG' => $mx_images['radio_front'], 'POSTER' => $top_poster, --- 616,620 ---- 'SINGER' => $topsongrow[$j]['station_singer'], ! 'RADIO_FRONT_IMG' => $images['radio_front'], 'POSTER' => $top_poster, *************** *** 737,741 **** 'SINGER' => $topsongrow[$j]['station_singer'], ! 'RADIO_FRONT_IMG' => $mx_images['radio_front'], 'POSTER' => $top_poster, --- 732,736 ---- 'SINGER' => $topsongrow[$j]['station_singer'], ! 'RADIO_FRONT_IMG' => $images['radio_front'], 'POSTER' => $top_poster, Index: Radio_Cast.nfo =================================================================== RCS file: /cvsroot/mxbb/mx_radiocast/Radio_Cast.nfo,v retrieving revision 1.1 retrieving revision 1.1.2.1 diff -C2 -d -r1.1 -r1.1.2.1 *** Radio_Cast.nfo 6 Jun 2007 23:03:42 -0000 1.1 --- Radio_Cast.nfo 21 Mar 2008 08:57:05 -0000 1.1.2.1 *************** *** 17,26 **** º±³ -..- ³ º±³ .. ³ ! º±³ mx_radiocast v1.0.0 ³ ÓÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ· ³ Supplied by.......mxBB Dev. Team Release type.................module ³±º ³ Cracked by...................n/a Protection......................n/a ³±º ³ Packaged by.............OryNider Release size.................117 KB ³±º ! ³ Release date..........20.05.2006 Operating system..........php4/php5 ³±º ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄĽ Ú Ä ÄÄ ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ ÄÄ Ä ¿ --- 17,26 ---- º±³ -..- ³ º±³ .. ³ ! º±³ mx_radiocast v1.0.2 ³ ÓÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ· ³ Supplied by.......mxBB Dev. Team Release type.................module ³±º ³ Cracked by...................n/a Protection......................n/a ³±º ³ Packaged by.............OryNider Release size.................117 KB ³±º ! ³ Release date..........21.03.2008 Operating system..........php4/php5 ³±º ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄĽ Ú Ä ÄÄ ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ ÄÄ Ä ¿ |
|
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 ---- } ! ?> |
|
From: OryNider <ory...@us...> - 2008-03-21 08:52:41
|
Update of /cvsroot/mxbb/mx_radiocast/templates/subSilver In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv22296/templates/subSilver Added Files: mx_radiocast.cfg Removed Files: subSilver.cfg Log Message: version 1.02 --- NEW FILE: mx_radiocast.cfg --- <?php /** * * @package mxBB Portal Module - mx_radiocast * @version $Id: mx_radiocast.cfg,v 1.1 2008/03/21 08:51:11 orynider Exp $ * @copyright (c) 2002-2006 mxBB Development Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ // // ** Configuration file for subSilver template ** // // ** copyright (C) 2001 The phpBB Group ** // ** Created by subBlue design ** // ** www.subBlue.com ** // // ** subSilver dev. forum: www.subSky.com/phpBB2/ ** // // $Id: mx_radiocast.cfg,v 1.1 2008/03/21 08:51:11 orynider Exp $ // // Please note that to enable support of different languages // the ". LANG ." place holder is available. This will be replaced // with xxx where xxx is the users selected language. If // that language isn't available it will default to english. // Therefore you MUST ensure you have at least a english // directory if you choose to localise your template // // // Do not alter this line! // @define(MX_TEMPLATE_CONFIG, TRUE); $mx_template_config = true; $mx_template_name = 'subSilver'; // ------------------------------------------------------------------------- // Prefix with PORTAL_URL // ------------------------------------------------------------------------- // $current_template_images = PORTAL_URL . $current_template_path . "/images"; $current_template_images = $module_root_path . "templates/". $mx_template_name ."/images"; $current_template_phpbb_images = PHPBB_URL . "templates/". $mx_template_name ."/images"; // phpBB graphics template if ( !file_exists( $current_template_images . '/lang_' . $board_config['default_lang'] ) ) { $link_language='lang_english'; } else { $link_language='lang_' . $board_config['default_lang']; } define('LANG', $link_language); // ------------------------------------------------------------------------- // (Re)Define images // ------------------------------------------------------------------------- $mx_images['post_station'] = "$current_template_images/{LANG}/icon_add_station.gif"; $mx_images['real_front'] = "$current_template_images/real_front.gif"; $mx_images['wmp_front'] = "$current_template_images/wmp_front.gif"; $mx_images['iframe_bg'] = "$current_template_images/iframe_bg.png"; $mx_images['no_image'] = "$current_template_images/no_image.gif"; $mx_images['radio_front'] = "$current_template_images/radio_front.gif"; // Use standard phpBB graphics // $mx_images['icon_quote'] = "$current_template_phpbb_images/{LANG}/icon_quote.gif"; $mx_images['icon_edit'] = "$current_template_phpbb_images/{LANG}/icon_edit.gif"; $mx_images['icon_search'] = "$current_template_phpbb_images/{LANG}/icon_search.gif"; $mx_images['icon_profile'] = "$current_template_phpbb_images/{LANG}/icon_profile.gif"; $mx_images['icon_pm'] = "$current_template_phpbb_images/{LANG}/icon_pm.gif"; $mx_images['icon_email'] = "$current_template_phpbb_images/{LANG}/icon_email.gif"; $mx_images['icon_delpost'] = "$current_template_phpbb_images/icon_delete.gif"; $mx_images['icon_ip'] = "$current_template_phpbb_images/{LANG}/icon_ip.gif"; $mx_images['icon_www'] = "$current_template_phpbb_images/{LANG}/icon_www.gif"; $mx_images['icon_icq'] = "$current_template_phpbb_images/{LANG}/icon_icq_add.gif"; $mx_images['icon_aim'] = "$current_template_phpbb_images/{LANG}/icon_aim.gif"; $mx_images['icon_yim'] = "$current_template_phpbb_images/{LANG}/icon_yim.gif"; $mx_images['icon_msnm'] = "$current_template_phpbb_images/{LANG}/icon_msnm.gif"; $mx_images['icon_minipost'] = "$current_template_phpbb_images/icon_minipost.gif"; $mx_images['icon_gotopost'] = "$current_template_phpbb_images/icon_minipost.gif"; $mx_images['icon_minipost_new'] = "$current_template_phpbb_images/icon_minipost_new.gif"; $mx_images['icon_latest_reply'] = "$current_template_phpbb_images/icon_latest_reply.gif"; $mx_images['icon_newest_reply'] = "$current_template_phpbb_images/icon_newest_reply.gif"; $mx_images['forum'] = "$current_template_phpbb_images/folder_big.gif"; $mx_images['forum_new'] = "$current_template_phpbb_images/folder_new_big.gif"; $mx_images['forum_locked'] = "$current_template_phpbb_images/folder_locked_big.gif"; ?> --- subSilver.cfg DELETED --- |
|
From: OryNider <ory...@us...> - 2008-03-21 08:52:40
|
Update of /cvsroot/mxbb/mx_radiocast/language/lang_english In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv22296/language/lang_english Modified Files: lang_admin.php lang_main.php Log Message: version 1.02 |