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...> - 2007-06-06 23:04:20
|
Update of /cvsroot/mxbb/mx_radiocast/upload/station_image In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv1615/upload/station_image Added Files: .htaccess index.html Log Message: --- NEW FILE: .htaccess --- Options -Indexes -ExecCGI -Includes --- NEW FILE: index.html --- <html> <head> <title>Redirecting...</title> <script language="JavaScript">self.location.href='http://mxbb.net/'; </script> </head> <body> </body> </html> |
|
From: OryNider <ory...@us...> - 2007-06-06 23:04:19
|
Update of /cvsroot/mxbb/mx_radiocast/upload In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv1615/upload Added Files: .htaccess index.html Log Message: --- NEW FILE: .htaccess --- Options -Indexes -ExecCGI -Includes --- NEW FILE: index.html --- <html> <head> <title>Redirecting...</title> <script language="JavaScript">self.location.href='http://mxbb.net/'; </script> </head> <body> </body> </html> |
|
From: OryNider <ory...@us...> - 2007-06-06 23:04:18
|
Update of /cvsroot/mxbb/mx_radiocast/templates/subSilver In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv1615/templates/subSilver Added Files: index.html radiocast_add_body.tpl radiocast_cat_body.tpl radiocast_comment_body.tpl radiocast_edit_body.tpl radiocast_index_body.tpl radiocast_list_body.tpl radiocast_modcp_body.tpl radiocast_move_body.tpl radiocast_player_body.tpl radiocast_rate_body.tpl subSilver.cfg Log Message: --- NEW FILE: radiocast_comment_body.tpl --- <center><b><span class="genmed"><h3>{STATION_TITLE} :: {SINGER}</h3></span></b></center> <form action="{S_RADIOCAST_ACTION}" method="post"> <table width="100%" cellspacing="2" cellpadding="2" border="0"> <tr> <td class="nav"><span class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a> {NAV_SEP} <a class="nav" href="{U_RADIOCAST}">{L_RADIOCAST}</a> {NAV_SEP} <a class="nav" href="{U_VIEW_CAT}">{CAT_TITLE}</a></span></td> </tr> </table> <table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline"> <tr> <th class="thTop" height="25">{L_COMMENTS}</th> </tr> <tr> <td align="center" class="row1"><table width="100%" align="left" cellspacing="2" cellpadding="2" border="0"> <tr> <td width="15%" align="right" valign="top" nowrap="nowrap" class="genmed"><b>{L_POSTER}:</b></td> <td width="20%" valign="top" class="genmed">{POSTER}</td> <td width="30%" align="right" valign="top" class="genmed"> </td> <td width="15%" align="right" valign="top" class="genmed"><b>{L_VIEW}:</b></td> <td width="20%" valign="top" class="genmed">{STATION_VIEW}</td> </tr> <tr> <td height="20" align="right" valign="top" nowrap="nowrap" class="genmed"><b>{L_POSTED}:</b></td> <td valign="top" class="genmed">{STATION_TIME}</td> <td valign="top" align="right" class="genmed"> </td> <td valign="top" align="right" class="genmed"><b>{L_COMMENTS}:</b></td> <td valign="top" class="genmed">{STATION_COMMENTS}</td> </tr> </table></td> </tr> </td> </tr> <!-- BEGIN commentrow --> <tr> <td class="row3" height="25"><a name="#{commentrow.ID}"></a><span class="genmed"><b>{L_POSTER}: {commentrow.POSTER} @ {commentrow.TIME}</b></span></td> </tr> <tr> <td class="row1" colspan="2"><span class="postbody">{commentrow.TEXT}</span><br /> <span class="gensmall">{commentrow.EDIT_INFO}</span><br /> <span class="genmed">{commentrow.IP}<br /><b>{commentrow.EDIT} {commentrow.DELETE}</b></span></td> </tr> <!-- END commentrow --> <!-- BEGIN switch_comment --> <tr> <td class="catBottom" align="center" height="28" colspan="2"><span class="gensmall">{L_ORDER}:</span> <select name="sort_order"><option {SORT_ASC} value='ASC'>{L_ASC}</option><option {SORT_DESC} value='DESC'>{L_DESC}</option></select> <input type="submit" name="submit" value="{L_SORT}" class="liteoption" /></td> </tr> <!-- END switch_comment --> </table> <!-- BEGIN switch_comment --> <table width="100%" cellspacing="2" border="0" cellpadding="2"> <tr> <td width="100%"><span class="nav">{PAGE_NUMBER}</span></td> <td align="right" nowrap="nowrap"><span class="gensmall">{S_TIMEZONE}</span><br /><span class="nav">{PAGINATION}</span></td> </tr> </table> <!-- END switch_comment --> </form> <script language="JavaScript" type="text/javascript"> <!-- function checkForm() { formErrors = false; if (document.commentform.comment.value.length < 2) { formErrors = "{L_COMMENT_NO_TEXT}"; } else if (document.commentform.comment.value.length > {S_MAX_LENGTH}) { formErrors = "{L_COMMENT_TOO_LONG}"; } if (formErrors) { alert(formErrors); return false; } else { return true; } } // --> </script> <!-- BEGIN switch_comment_post --> <form name="commentform" action="{S_RADIOCAST_ACTION}" method="post" onsubmit="return checkForm();"> <table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline"> <tr> <th class="thTop" height="25" colspan="2">{L_POST_YOUR_COMMENT}</th> </tr> <!-- BEGIN logout --> <tr> <td class="row1" width="30%" height="28"><span class="genmed">{L_USERNAME}</span></td> <td class="row2"><input class="post" type="text" name="comment_username" size="32" maxlength="32" /></td> </tr> <!-- END logout --> <tr> <td class="row1" valign="top" width="30%"><span class="genmed">{L_MESSAGE}<br> {L_MAX_LENGTH}: <b>{S_MAX_LENGTH}</b></span></td> <td class="row2" valign="top"><textarea name="comment" class="post" cols="60" rows="7">{S_MESSAGE}</textarea></td> </tr> <tr> <td class="catBottom" align="center" colspan="2" height="28"><input type="submit" name="submit" value="{L_SUBMIT}" class="mainoption" /></td> </tr> </table> </form> <!-- END switch_comment_post --> <br clear="all" /> <!-- Do not remove my copyright notice and keep visible with its original content! --> {RADIOCAST_COPYRIGHT} --- NEW FILE: index.html --- <html> <head> <title>Mx Radio Cast Module</title> </head> <body> <br /><br /><br /><br /><br /><br /><br /> <center><h1><a href="http://mxbb.net/">mxBB-Portal</a></h1></center> </body> --- NEW FILE: radiocast_player_body.tpl --- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /> <meta name="description" content="Radio Player" /> <meta name="keywords" content="Radio Player" /> <meta name="author" content="Radio Player originaly made by: Niklas Pull - http://pull.zapto.org" /> <title>Radio Player :: {STATION_TITLE} :: {SINGER}</title> <style type="text/css"> <!-- /* General page style. The scroll bar colours only visible in IE5.5+ */ body { background-color: #E5E5E5; scrollbar-face-color: #DEE3E7; scrollbar-highlight-color: #FFFFFF; scrollbar-shadow-color: #DEE3E7; scrollbar-3dlight-color: #D1D7DC; scrollbar-arrow-color: #006699; scrollbar-track-color: #EFEFEF; scrollbar-darkshadow-color: #98AAB1; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BACKGROUND: url({IMG_IFRAME_BG}); PADDING-BOTTOM: 0px; MARGIN: 0px; FONT: 10pt verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; COLOR: #000000; PADDING-TOP: 0px; } a{text-decoration:none; background-color:inherit; color:#26c;} a:hover{text-decoration:underline;} #main {width: 350px; height: 100px; position: relative; left: 0px; top: 0px; margin:0; padding:0; background-image: url(images/player.png); background-repeat: no-repeat; background-attachment: fixed; background-color: #eeeeee} #display {width: 315px; height: 39px; position: relative; left: 18px; top: 18px;} #display_low {width: 310px; height: 21px; position: relative; left: 3px; top: 3px;} #bottom {width: 350px; height: 39px; position: relative; left: 0px; top: 22px;} #songtitle {width: 310px; height: 12px; position: relative; left: 3px; top: 3px;} #station {width: 150px; position: relative; left: 23px; top: 30px;} #bitrate {width: 55px; position: relative; left: 185px; top: 18px;} #equalizer {width: 55px; position: relative; left: 280px; top: 0px;} #icon {width: 55px; position: relative; left: 300px; top: 10px;} #iframe {width: 0px; position: relative; left: 0px; top: 0px;} .table {font-family: Verdana; font-size: 10px;} /* General font families for common tags */ font,th,td,p { font-family: Verdana, Arial, Helvetica, sans-serif } a:link,a:active,a:visited { color : #072978; } a:hover { text-decoration: underline; color : #041642; } hr { height: 0px; border: solid #80BBEC 0px; border-top-width: 1px;} /* This is the border line & background colour round the entire page */ .bodyline { background-color: #FFFFFF; border: 1px #98AAB1 solid; } /* This is the outline round the main forum tables */ .forumline { background-color: #FFFFFF; border: 2px #006699 solid; } /* Main table cell colours and backgrounds */ td.row1 { background-color: #EFEFEF; } td.row2 { background-color: #DEE3E7; } td.row3 { background-color: #D1D7DC; } /* Setting additional nice inner borders for the main table cells. The names indicate which sides the border will be on. Don't worry if you don't understand this, just ignore it :-) */ td.cat,td.catHead,td.catBottom { height: 29px; border-width: 0px 0px 0px 0px; } th.thHead,th.thSides,th.thTop,th.thLeft,th.thRight,th.thBottom,th.thCornerL,th.thCornerR { font-weight: bold; border: #FFFFFF; border-style: solid; height: 28px; } td.row3Right,td.spaceRow { background-color: #D1D7DC; border: #FFFFFF; border-style: solid; th.thHead,td.catHead { font-size: 12px; border-width: 1px 1px 0px 1px; } th.thSides,td.catSides,td.spaceRow { border-width: 0px 1px 0px 1px; } th.thRight,td.catRight,td.row3Right { border-width: 0px 1px 0px 0px; } th.thLeft,td.catLeft { border-width: 0px 0px 0px 1px; } th.thBottom,td.catBottom { border-width: 0px 1px 1px 1px; } th.thTop { border-width: 1px 0px 0px 0px; } th.thCornerL { border-width: 1px 0px 0px 1px; } th.thCornerR { border-width: 1px 1px 0px 0px; } /* The largest text used in the index page title and toptic title etc. */ .maintitle { font-weight: bold; font-size: 22px; font-family: "Trebuchet MS",Verdana, Arial, Helvetica, sans-serif; text-decoration: none; line-height : 120%; color : #000000; } /* General text */ .gen { font-size : 12px; } .genmed { font-size : 11px; } .gensmall { font-size : 10px; } .gen,.genmed,.gensmall { color : #000000; } a.gen,a.genmed,a.gensmall { color: #072978; text-decoration: none; } a.gen:hover,a.genmed:hover,a.gensmall:hover { color: #041642; text-decoration: underline; } /* The register, login, search etc links at the top of the page */ .mainmenu { font-size : 11px; color : #000000 } a.mainmenu { text-decoration: none; color : #006699; } a.mainmenu:hover{ text-decoration: underline; color : #DD6900; } /* Forum category titles */ .cattitle { font-weight: bold; font-size: 12px ; letter-spacing: 1px; color : #072978} a.cattitle { text-decoration: none; color : #072978; } a.cattitle:hover{ text-decoration: underline; } /* Forum title: Text and link to the forums used in: index.php */ .forumlink { font-weight: bold; font-size: 12px; color : #072978; } a.forumlink { text-decoration: none; color : #072978; } a.forumlink:hover{ text-decoration: underline; color : #041642; } /* Used for the navigation text, (Page 1,2,3 etc) and the navigation bar when in a forum */ .nav { font-weight: bold; font-size: 11px; color : #000000;} a.nav { text-decoration: none; color : #072978; } a.nav:hover { text-decoration: underline; } /* titles for the topics: could specify viewed link colour too */ .topictitle,h1,h2 { font-weight: bold; font-size: 11px; color : #000000; } a.topictitle:link { text-decoration: none; color : #072978; } a.topictitle:visited { text-decoration: none; color : #072978; } a.topictitle:hover { text-decoration: underline; color : #041642; } /* Name of poster in viewmsg.php and viewtopic.php and other places */ .name { font-size : 11px; color : #000000;} /* Location, number of posts, post date etc */ .postdetails { font-size : 10px; color : #000000; } /* The content of the posts (body of text) */ .postbody { font-size : 12px; line-height: 18px} a.postlink:link { text-decoration: none; color : #072978 } a.postlink:visited { text-decoration: none; color : #072978; } a.postlink:hover { text-decoration: underline; color : #041642} /* Quote & Code blocks */ .code { font-family: Courier, 'Courier New', sans-serif; font-size: 11px; color: #006600; background-color: #FAFAFA; border: #80BBEC; border-style: solid; border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px } .quote { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #444444; line-height: 125%; background-color: #FAFAFA; border: #80BBEC; border-style: solid; border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px } /* Copyright and bottom info */ .copyright { font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; color: #444444; letter-spacing: -1px;} a.copyright { color: #444444; text-decoration: none;} a.copyright:hover { color: #000000; text-decoration: underline;} /* Form elements */ input,textarea, select { color : #000000; font: normal 11px Verdana, Arial, Helvetica, sans-serif; border-color : #000000; } /* The text input fields background colour */ input.post, textarea.post, select { background-color : #E3F0FB; } input { text-indent : 2px; } /* The buttons used for bbCode styling in message post */ input.button { background-color : #DAECFA; color : #000000; font-size: 11px; font-family: Verdana, Arial, Helvetica, sans-serif; } /* The main submit button option */ input.mainoption { background-color : #FAFAFA; font-weight : bold; } /* None-bold submit button */ input.liteoption { background-color : #FAFAFA; font-weight : normal; } /* This is the line in the posting page which shows the rollover help line. This is actually a text box, but if set to be the same colour as the background no one will know ;) */ .helpline { background-color: #BADBF5; border-style: none; } --> </style> </head> <body> <table width="100%" cellspacing="2" cellpadding="2" border="0"> <tr> <td class="nav"><span class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a> {NAV_SEP} <a class="nav" href="{U_RADIOCAST}">{L_RADIOCAST_INDEX}</a> {NAV_SEP} <a class="nav" href="{U_VIEW_CAT}">{CAT_TITLE}</a></span></td> </tr> </table> <table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline"> <tr> <th height="25" colspan="2" class="thTop">{STATION_TITLE}</th> </tr> <tr> <td width="44%" class="row1" align="center"> <!-- BEGIN media --> <SCRIPT LANGUAGE="JavaScript"> var WMP7; var Mac; var Win; var Unix; var Linux; Win = navigator.userAgent.indexOf("Win") > -1; Mac = navigator.userAgent.indexOf("Mac") > -1; Unix = navigator.appVersion.indexOf("X11") > -1; Linux = navigator.appVersion.indexOf("Linux") > -1; if (Mac) { if ( navigator.appName == "Netscape" ){ //Netscape code document.write (' <Embed id="wmp" name="wmp" type="audio/mpeg"'); document.write (' pluginspage="http://www.microsoft.com/windows/windowsmedia/"'); document.write (' filename="{U_STATION}"'); document.write (' src="{U_STATION}"'); document.write (' Name=MediaPlayer'); document.write (' ShowControls=1'); document.write (' ShowDisplay=1'); document.write (' ShowStatusBar=1'); document.write (' AUTOSTART=1'); document.write (' AutoSize=1'); document.write (' width={WIDTH}'); document.write (' height={HEIGHT}>'); document.write (' </Embed>'); } if ( navigator.appName != "Netscape" ){ document.write(' <embed id="wmp" name="wmp" type="audio/mpeg" width="70" height="300" ShowTracker="0" ShowDisplay="0" ShowGotoBar="0" ShowStatusBar="1" ShowCaptioning="0" AUTOSTART="1" filename="{U_STATION}" src="{U_STATION}" ></embed>'); } } if (Win) { if ( navigator.appName != "Netscape" ){ WMP7 = new ActiveXObject('WMPlayer.OCX'); } // Windows Media Player 7 Code if ( WMP7 ) { document.write (' <object id="MediaPlayer" width={WIDTH} height={HEIGHT} classid="CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6"'); document.write ('codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,0,0,0"'); document.write ('standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">'); document.write ('<PARAM NAME="url" VALUE="{U_STATION}">'); document.write ('<PARAM NAME="FileName" value="{U_STATION}">'); document.write ('<PARAM NAME="AutoStart" VALUE="true">'); document.write ('<PARAM NAME="ShowControls" VALUE="1">'); document.write ('<PARAM NAME="ShowStatusBar" VALUE="1">'); document.write ('<PARAM NAME="AutoSize" VALUE="1">'); document.write ('<PARAM NAME="uiMode" VALUE="mini">'); document.write (' <Embed type="application/x-mplayer2"'); document.write (' pluginspage="http://www.microsoft.com/isapi/redir.dll?prd=windows&sbp=mediaplayer&ar=Media&sba=Plugin&"'); document.write (' filename="{U_STATION}"'); document.write (' src="{U_STATION}"'); document.write (' Name="MediaPlayer2"'); document.write (' ShowControls="1"'); document.write (' ShowDisplay="1"'); document.write (' ShowStatusBar="1"'); document.write (' AUTOSTART="true"'); document.write (' AutoSize="1"'); document.write (' width="70"'); document.write (' height="300">'); document.write (' </embed>'); document.write ('</OBJECT>'); } // Windows Media Player 6.4 Code else { //IE Code document.write (' <object id="wmp" width={WIDTH} height={HEIGHT} classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"'); document.write ('codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,0,0,0"'); document.write ('standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">'); document.write ('<PARAM NAME="url" VALUE="{U_STATION}">'); document.write ('<PARAM NAME="FileName" value="{U_STATION}">'); document.write ('<PARAM NAME="AutoStart" VALUE="true">'); document.write ('<PARAM NAME="ShowControls" VALUE="1">'); document.write ('<PARAM NAME="ShowStatusBar" VALUE="1">'); document.write ('<PARAM NAME="AutoSize" VALUE="1">'); //Firefox code document.write (' <Embed type="application/x-mplayer2"'); document.write (' pluginspage="http://www.microsoft.com/isapi/redir.dll?prd=windows&sbp=mediaplayer&ar=Media&sba=Plugin&"'); document.write (' filename="{U_STATION}"'); document.write (' src="{U_STATION}"'); document.write (' Name="MediaPlayer"'); document.write (' ShowControls="1"'); document.write (' ShowDisplay="1"'); document.write (' ShowStatusBar="1"'); document.write (' AUTOSTART="true"'); document.write (' AutoSize="1"'); document.write (' width="{WIDTH}"'); document.write (' height="{HEIGHT}">'); document.write (' </embed>'); document.write ('</OBJECT>'); } } else { document.write(' <embed type="audio/mpeg" height="70" width="300" AUTOSTART="1" filename="{U_STATION}" src="{U_STATION}" ></embed>'); } </SCRIPT> <!-- END media --> <!-- BEGIN real --> <p> <object id="RVOCX" classid="CLSID:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" width="{WIDTH}" height="172"> <param name="SRC" value="{U_STATION}"> <param name="CONTROLS" value="ImageWindow"> <param name="CONSOLE" value="cons"> <embed autostart="true" src="{U_STATION}" type="audio/x-pn-realaudio-plugin" width="{WIDTH}" height="172" controls="ImageWindow" console="cons"> </embed> <param name="autostart" value="true"> </object> </p> <p> <object id=RVOCX classid="CLSID:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA" width="{WIDTH}" height="30" > <param name="SRC" value="{U_STATION}"> <param name="CONTROLS" value="ControlPanel"> <param name="CONSOLE" value="cons"> <embed src="{U_STATION}" type="audio/x-pn-realaudio-plugin" width="{WIDTH}" height="30" controls="ControlPanel" console="cons" > </embed> </object> </p> <!-- END real --> <!-- BEGIN ogg --> <object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" width="{WIDTH}" height="35" align="center" codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"> <param name="java_codebase" value="{MODULE_PATH}jplayer"> <param name="java_code" value="JOrbisPlayer.class"> <param name="archive" value="JOrbisPlayer-0.0.16.2-rsa.jar"> <param name="jorbis.player.play.0" value="{STATION_URL}"> <param name="jorbis.player.icestats" value="no"> <param name="jorbis.player.playonstartup" value="yes"> <param name="type" value="application/x-java-applet;version=1.3"> <comment> <embed type="application/x-java-applet;version=1.3" width="{WIDTH}" height="35" java_codebase="{MODULE_PATH}jplayer" java_code="JOrbisPlayer.class" archive="JOrbisPlayer-0.0.16.2-rsa.jar" jorbis.player.play.0="{STATION_URL}" jorbis.player.icestats="no" jorbis.player.playonstartup="yes" pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"> </embed> </comment> </object> <div align="center" class="gensmall" style="font-family: Verdana, Arial, Helvetica, sans-serif; letter-spacing: -1px"> Powered by JOrbisPlayer 0.0.16.2-rsa Copyright © 1998-2002 <a href="http://www.jcraft.com/" target="_blank">JCraft,Inc.</a> </div> <!-- END ogg --> <!-- BEGIN flash --> <object width="425" height="350"> <param name="movie" value="{VIDEO_URL}"></param> <param name="wmode" value="transparent"></param> <embed src="{VIDEO_URL}" id="VideoPlayback" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350" flashvars=""> </embed> </object> <!-- END flash --> <!-- BEGIN flashvideo --> <embed src="{STATION_URL}" id="VideoPlayback" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350" flashvars=""> </embed> <!-- END flashvideo --> <!-- BEGIN youtube --> <object width="425" height="350"> <param name="movie" value="{STATION_URL}"></param> <param name="wmode" value="transparent"></param> <embed src="{VIDEO_URL}" id="VideoPlayback" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350" flashvars=""> </embed> </object> <!-- END youtube --> <!-- BEGIN ram --> <embed src="{U_STATION}" align="center" width="275" height="40" type="audio/x-pn-realaudio-plugin" console="cons" controls="ControlPanel" autostart="false"></embed> <!-- END ram --> <!-- BEGIN qt --> <object id="qt" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" width="377" height="212"> <param name="qtsrc" value="{U_STATION}"> <param name="autoplay" value="true"> <param name="loop" value="false"> <param name="controller" value="true"> <param name="kioskmode" value="true"> <param name="cache" value="false"> <embed src="templates/subSilver/images/uneedqt41.jpg" qtsrc="{U_STATION}" width="377" height="212" type="video/quicktime" pluginspage="http://www.apple.com/quicktime/download/" controller="true" loop="false" autoplay="true" kioskmode="true" cache="false"> </embed> </object> <!-- END qt --> </td> <td rowspan="2" class="row1"><table width="90%" height="90%" border="0" align="center" cellpadding="3" cellspacing="2"> <tr> <td valign="top" align="center"><img src="{U_IMG}" border="0"></td> </tr> <tr> <td valign="top" align="center"><br /><span class="gen">{STATION_DESC}</span></td> </tr> <!-- BEGIN rate_switch --> <!-- END rate_switch --> <!-- BEGIN comment_switch --> <!-- END comment_switch --> <!-- BEGIN download_switch --> <!-- END download_switch --> </table></td> </tr> <tr> <td class="row2"> <table width="90%" align="center" border="0" cellpadding="3" cellspacing="2"> <tr> <td width="25%" align="right"><span class="genmed">{L_POSTER}:</span></td> <td><span class="genmed"><b>{POSTER}</b></span></td> </tr> <tr> <td width="25%" align="right"><span class="genmed">{L_SINGER}:</span></td> <td><span class="genmed"><b>{SINGER}</b></span></td> </tr> <tr> <td align="right"><span class="genmed">{L_POSTED}:</span></td> <td><b><span class="genmed">{STATION_TIME}</span></b></td> </tr> <tr> <td align="right"><span class="genmed">{L_VIEW}:</span></td> <td><b><span class="genmed">{STATION_VIEW}</span></b></td> </tr> <!-- BEGIN rate_switch --> <tr> <td valign="top" align="right"><span class="genmed"><a href="{U_RATE}">{L_RATING}:</a></span></td> <td><b><span class="genmed">{STATION_RATING}</span></b></td> </tr> <!-- END rate_switch --> <!-- BEGIN comment_switch --> <tr> <td align="right"><span class="genmed"><a href="{U_COMMENT}">{L_COMMENTS}:</a></span></td> <td><b><span class="genmed">{STATION_COMMENTS}</span></b></td> </tr> <!-- END comment_switch --> <!-- BEGIN download_switch --> <tr> <td align="right"><span class="genmed"><a href="{U_DOWNLOAD}">{L_DOWNLOAD}:</a></span></td> <td><b><span class="genmed">{STATION_DOWNLOAD}</span></b></td> </tr> <!-- END download_switch --> <!-- BEGIN realandmedia --> <TR> <TD height="28" colspan="2" align="center" class="catbottom"><span class="cattitle">« <a href="{U_WMP}" class="cattitle"><img src="{IMG_WMP_FRONT}" border="0"></a> <a href="{U_FORCED}" class="cattitle">Force</a> <a href="{U_REAL}" class="cattitle"><img src="{IMG_REAL_FRONT}" border="0"></a> »</span></TD> </TR> <!-- END realandmedia --> </table> </td> </tr> <tr> <td height="28" colspan="2" align="center" class="catbottom"><span class="cattitle">« <a href="{U_PREVIOUS}" class="cattitle">{L_PREVIOUS}</a> «<a href="javascript:void(0);" onClick="window.open('{U_WINDOW}','','scrollbars=yes,resizable=no,width=640,height=640')"> New Window </a>» <a href="{U_NEXT}" class="cattitle">{L_NEXT}</a> »</span></td> </tr> </table> <br clear="all" /> <!-- Do not remove my copyright notice and keep visible with its original content! --> {RADIOCAST_COPYRIGHT} </body> </html> --- NEW FILE: radiocast_index_body.tpl --- <form action="{S_RADIOCAST_ACTION}" method="post"> <table width="100%" cellspacing="0" cellpadding="2" border="0"> <tr> <td><span class="gensmall"> <!-- BEGIN switch_user_logged_in --> {LAST_VISIT_DATE}<br /> <!-- END switch_user_logged_in --> {CURRENT_TIME}<br /> </span><span class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a> {NAV_SEP} <a href="{U_MUSIC}" class="nav">{L_MUSIC}</a></span></td> </tr> </table> <table width="100%" cellpadding="1" cellspacing="1" border="0" class="forumline"> <tr> <th class="thTop" height="25" colspan="6" nowrap="nowrap">{L_TOP_STATIONS} </tr> <tr> <td width="38%" class="catbottom" align="center"><span class="gen">{L_STATION_TITLE}</span></td> <td width="16%" class="catbottom" align="center"><span class="gen">{L_SINGER}</span></td> <td width="22%" class="catbottom" align="center"><span class="gen">{L_POSTED}</span></td> <td width="6%" class="catbottom" align="center"><span class="gen">{L_VIEW}</span></td> <td width="8%" class="catbottom" align="center"><span class="gen">{L_RATING}</span></td> <td width="10%" class="catbottom" align="center"><span class="gen">{L_COMMENTS}</span></td> </tr> <!-- BEGIN no_stations --> <tr> <td class="row1" align="center" colspan="6" height="50"><span class="gen">{L_NO_STATIONS}</span></td> </tr> <!-- END no_stations --> <!-- BEGIN top_row --> <!-- END top_row --> <!-- BEGIN top_stations --> <!-- BEGIN top_detail --> <tr> <td width="38%" class="row1" align="center"> <table><tr> <td align="left"><img src="{top_stations.top_detail.RADIO_FRONT_IMG}" alt="" /></td> <td align="center"><span class="genmed">{top_stations.top_detail.TITLE}</span><td> </tr></table></td> <td width="16%" class="row2" align="center"><span class="genmed">{top_stations.top_detail.SINGER}</span></td> <td width="22%" class="row1" align="center"><span class="gensmall">{top_stations.top_detail.POSTER}<br />{top_stations.top_detail.TIME}</span></td> <td width="6%" class="row2" align="center"><span class="gensmall">{top_stations.top_detail.VIEW}</span></td> <td width="8%" class="row1" align="center"><span class="gensmall">{top_stations.top_detail.RATING}</span></td> <td width="10%" class="row2" align="center"><span class="gensmall">{top_stations.top_detail.COMMENTS}</span></td> <!-- END top_detail --> </tr> <!-- END top_stations --> <tr> <td class="catbottom" colspan="6" height="28" align="center"><span class="cattitle"> {L_SELECT_SORT_METHOD}: <select name="sort_method"> <option {SORT_TIME} value='STATION_time'>{L_TIME}</option> <option {SORT_VIEW} value='STATION_view_count'>{L_VIEW}</option> {SORT_RATING_OPTION} {SORT_COMMENTS_OPTION} {SORT_NEW_COMMENT_OPTION} </select> {L_STATION_LIMIT}: <select name="station_limit"> <option value='5'>5</option> <option value='10'>10</option> <option value='15'>15</option> <option value='20'>20</option> </select> <input type="submit" name="submit" value="{L_SORT}" class="liteoption" /></th> </span></td> </tr> </table> <br /> <table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline"> <tr> <th width="70%" class="thCornerL" height="25" nowrap="nowrap"> {L_CATEGORY} </th> <th width="60" class="thTop" nowrap="nowrap"> {L_CAT_VIEWS} </th> <th width="60" class="thTop" nowrap="nowrap"> {L_STATIONS} </th> <th class="thCornerR" nowrap="nowrap"> {L_LAST_STATION} </th> </tr> <tr> <td class="catLeft" colspan="4" height="28"><span class="cattitle">{L_PUBLIC_CATS}</span></td> </tr> <!-- BEGIN catrow --> <tr> <td class="row1" height="50"><span class="forumlink"> <a href="{catrow.U_VIEW_CAT}" class="forumlink">{catrow.CAT_TITLE}</a><br /> </span> <span class="genmed">{catrow.CAT_DESC}<br /> </span><span class="gensmall">{catrow.L_MODERATORS} {catrow.MODERATORS}</span></td> <td class="row2" align="center"><span class="gensmall">{catrow.CAT_VIEWS}</span></td> <td class="row2" align="center"><span class="gensmall">{catrow.STATIONS}</span></td> <td class="row2" align="center" nowrap="nowrap"><span class="gensmall">{catrow.LAST_STATION_INFO}</span></td> </tr> <!-- END catrow --> <tr> <td class="catbottom" colspan="4" height="28"><span class="cattitle"></span></td> </tr> </table> </form> <br /> <form method="post" action="{S_RADIOCAST_LIST}"> <table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline"> <tr> <td class="row1" align="center" height="28"><span class="gensmall">{L_SEARCH_STATIONS} <input class="post" type="text" name="search" size="30" /> <select name="search_cond"> <option value='title'>{L_STATION_TITLE}</option> <option value='singer'>{L_SINGER}</option> <option value='poster'>{L_POSTER}</option> </select> <input type="submit" name="submit" value="{L_SEARCH}" class="liteoption" /> </span> </td> </tr> </table> </form> <!-- BEGIN switch_user_logged_out --> <form method="post" action="{S_LOGIN_ACTION}"> <table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline"> <tr> <td class="catHead" height="28"><a name="login"></a><span class="cattitle">{L_LOGIN_LOGOUT}</span></td> </tr> <tr> <td class="row1" align="center" height="28"><span class="gensmall">{L_USERNAME}: <input class="post" type="text" name="username" size="10" /> {L_PASSWORD}: <input class="post" type="password" name="password" size="10" /> {L_AUTO_LOGIN} <input class="text" type="checkbox" name="autologin" /> <input type="submit" class="mainoption" name="login" value="{L_LOGIN}" /> <input type="hidden" name="redirect" value="{U_MUSIC}" /> </span> </td> </tr> </table> </form> <!-- END switch_user_logged_out --> <br clear="all" /> <!-- Do not remove my copyright notice and keep visible with its original content! --> {RADIOCAST_COPYRIGHT} --- NEW FILE: radiocast_move_body.tpl --- <form action="{S_MUSIC_ACTION}" method="post"> <table width="100%" cellspacing="2" cellpadding="2" border="0"> <tr> <td class="nav"><span class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a> {NAV_SEP} <a class="nav" href="{U_MUSIC}">{L_MUSIC}</a></span></td> </tr> </table> <table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline"> <tr> <th height="25" class="thHead">{L_MOVE}</th> </tr> <tr> <td class="row1" align="center"><br /><span class="gen">{L_MOVE_TO_CATEGORY}</span> {S_CATEGORY_SELECT} <input class="mainoption" type="submit" name="move" value="{L_MOVE}" /><br /> </td> </tr> </table> <!-- BEGIN song_id_array --> <input type="hidden" name="song_id[]" value="{song_id_array.VALUE}" /> <!-- END song_id_array --> </form> <br clear="all" /> <!-- Do not remove my copyright notice and keep visible with its original content! --> {MUSIC_COPYRIGHT} --- NEW FILE: subSilver.cfg --- <?php /** * * @package mxBB Portal Module - mx_radiocast * @version $Id: subSilver.cfg,v 1.1 2007/06/06 23:04:15 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: subSilver.cfg,v 1.1 2007/06/06 23:04:15 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! // if( !defined('MX_TEMPLATE_CONFIG')) { 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"; ?> --- NEW FILE: radiocast_edit_body.tpl --- <script language="JavaScript" type="text/javascript"> <!-- function checkRADIOCASTForm() { formErrors = false; if (document.editform.station_title.value.length < 2) { formErrors = "{L_ADD_NO_TITLE}"; } else if (document.editform.station_desc.value.length > {S_STATION_DESC_MAX_LENGTH}) { formErrors = "{L_DESC_TOO_LONG}"; } if (formErrors) { alert(formErrors); return false; } else { return true; } } // --> </script> <form name="editform" action="{S_RADIOCAST_ACTION}" method="post" onsubmit="return checkRADIOCASTForm()" enctype="multipart/form-data"> <table width="100%" cellspacing="2" cellpadding="2" border="0"> <tr> <td class="nav"><span class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a> {NAV_SEP} <a class="nav" href="{U_RADIOCAST}">{L_RADIOCAST}</a> {NAV_SEP} <a class="nav" href="{U_VIEW_CAT}">{CAT_TITLE}</a></span></td> </tr> </table> <table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline"> <tr> <th class="thTop" height="25" colspan="2">{L_EDIT_STATION_INFO}</th> </tr> <tr> <td class="row1" width="30%" height="28"><span class="gen">{L_STATION_TITLE}</span></td> <td class="row2"><input class="post" type="text" name="station_title" size="60" value="{STATION_TITLE}" /></td> </tr> <tr> <td class="row1" width="30%" height="28"><span class="gen">{L_STATION_URL}</span></td> <td class="row2"><input class="post" type="text" name="station_url" size="60" value="{STATION_URL}" /></td> </tr> <tr> <td class="row1" width="30%" height="28"><span class="gen">{L_SINGER}</span></td> <td class="row2"><input class="post" type="text" name="station_singer" size="60" value="{STATION_SINGER}" /></td> </tr> <tr> <td class="row1" width="30%" rowspan="2"><span class="gen">{L_STATION_IMAGE}:</span><br /><span class="gensmall">{L_STATION_IMAGE_DESC}</span></td> <td class="row2"><span class="gen"><input type="radio" name="image_system" value="0" checked="checked" />{L_NO_IMAGE} <input type="radio" name="image_system" value="1" /> {L_UPLOAD_IMAGE}</span></td> </tr> <tr> <td class="row2"><input class="post" type="file" name="station_image" size="49" /></td> </tr> <tr> <td class="row1" valign="top" width="30%" height="28"><span class="gen">{L_STATION_DESC}<br /></span><span class="genmed">{L_PLAIN_TEXT_ONLY}<br />{L_MAX_LENGTH}: <b>{S_STATION_DESC_MAX_LENGTH}</b></span></td> <td class="row2"><textarea class="post" cols="60" rows="4" name="station_desc" size="60">{STATION_DESC}</textarea></td> </tr> <tr> <td class="catBottom" align="center" height="28" colspan="2"><input type="reset" value="{L_RESET}" class="liteoption" /> <input type="submit" name="submit" value="{L_SUBMIT}" class="mainoption" /></td> </tr> </table> </form> <br clear="all" /> <!-- Do not remove my copyright notice and keep visible with its original content! --> {RADIOCAST_COPYRIGHT} --- NEW FILE: radiocast_modcp_body.tpl --- <form name="modcp" action="{S_RADIOCAST_ACTION}" method="post"> <table width="100%" cellspacing="2" cellpadding="2" border="0"> <tr> <td width="100%"><a class="maintitle" href="{U_VIEW_CAT}">{CAT_TITLE}</a></td> <td align="right" valign="bottom" nowrap="nowrap"><span class="gensmall"><b>{PAGINATION}</b></span></td> </tr> <tr> <td class="nav"><span class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a> {NAV_SEP} <a class="nav" href="{U_RADIOCAST}">{L_RADIOCAST}</a></span></td> <td align="right" nowrap="nowrap"> <span class="gensmall">{L_SELECT_SORT_METHOD}: <select name="sort_method"> <option {SORT_TIME} value='station_time'>{L_TIME}</option> <option {SORT_STATION_TITLE} value='station_title'>{L_STATION_TITLE}</option> <option {SORT_USERNAME} value='station_user_id'>{L_USERNAME}</option> <option {SORT_VIEW} value='station_view_count'>{L_VIEW}</option> {SORT_RATING_OPTION} {SORT_COMMENTS_OPTION} {SORT_NEW_COMMENT_OPTION} </select> {L_ORDER}: <select name="sort_order"> <option {SORT_ASC} value='ASC'>{L_ASC}</option> <option {SORT_DESC} value='DESC'>{L_DESC}</option> </select> <input type="submit" name="submit" value="{L_SORT}" class="liteoption" /></span> </td> </tr> </table> <table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline"> <tr> <td class="catLeft" height="25" align="center" colspan="6"><span class="cattitle">{L_MODCP}</span></th> </tr> <tr> <th class="thCornerL" height="25" nowrap="nowrap"> {L_STATION_TITLE} </th> <th width="5%" class="thTop" nowrap="nowrap"> {L_RATING} </th> <th width="5%" class="thTop" nowrap="nowrap"> {L_COMMENTS} </th> <th width="5%" class="thTop" nowrap="nowrap"> {L_STATUS} </th> <th width="5%" class="thTop" nowrap="nowrap"> {L_APPROVAL} </th> <th width="5%" class="thCornerR" nowrap="nowrap"> {L_SELECT} </th> </tr> <!-- BEGIN no_stations --> <tr> <td class="row1" align="center" colspan="6" height="50"><span class="gen">{L_NO_STATIONS}</span></td> </tr> <!-- END no_stations --> <!-- BEGIN stationrow --> <tr> <td class="row1" height="25"><span class="genmed">{L_STATION_TITLE}: {stationrow.STATION_TITLE}<br />{L_POSTER}: {stationrow.POSTER}<br />{L_TIME}: {stationrow.TIME}</span></td> <td align="center" class="row2"><span class="genmed">{stationrow.RATING}</span></td> <td align="center" class="row2"><span class="genmed">{stationrow.COMMENTS}</span></td> <td align="center" class="row2"><span class="genmed">{stationrow.LOCK}</span></td> <td align="center" class="row2"><span class="genmed">{stationrow.APPROVAL}</span></td> <td align="center" class="row3"><span class="genmed"><input type="checkbox" name="station_id[]" value="{stationrow.STATION_ID}" /></span></td> </tr> <!-- END stationrow --> <tr> <td class="catbottom" colspan="6" align="right" height="28"> <input type="hidden" name="mode" value="modcp" /> <input type="submit" class="liteoption" name="move" value="{L_MOVE}" /> <input type="submit" class="liteoption" name="lock" value="{L_LOCK}" /> <input type="submit" class="liteoption" name="unlock" value="{L_UNLOCK}" /> {DELETE_BUTTON} {APPROVAL_BUTTON} {UNAPPROVAL_BUTTON} </td> </tr> </table> <table width="100%" cellspacing="2" border="0" cellpadding="2"> <tr> <td align="right" nowrap="nowrap"><span class="gensmall">{S_TIMEZONE}</span><br /> <span class="nav">{PAGINATION}</span></td> </tr> <tr> <td colspan="3"><span class="nav">{PAGE_NUMBER}</span></td> </tr> </table> </form> <br clear="all" /> <!-- Do not remove my copyright notice and keep visible with its original content! --> {RADIOCAST_COPYRIGHT} --- NEW FILE: radiocast_list_body.tpl --- <form action="{S_RADIOCAST_ACTION}" method="post"> <table width="100%" cellspacing="0" cellpadding="2" border="0"> <tr> <td><span class="gensmall"> <!-- BEGIN switch_user_logged_in --> {LAST_VISIT_DATE}<br /> <!-- END switch_user_logged_in --> {CURRENT_TIME}<br /> </span><span class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a> {NAV_SEP} <a href="{U_RADIOCAST}" class="nav">{L_RADIOCAST}</a></span></td> </tr> </table> <table width="100%" cellpadding="1" cellspacing="1" border="0" class="forumline"> <tr> <th class="thTop" height="25" colspan="6" nowrap="nowrap">{L_SEARCH_STATIONS} <input class="post" type="text" name="search" size="30" /> <select name="search_cond"> <option value='title'>{L_STATION_TITLE}</option> <option value='singer'>{L_SINGER}</option> <option value='poster'>{L_POSTER}</option> </select> <input type="submit" name="submit" value="{L_SEARCH}" class="liteoption" /></th> </tr> <tr> <td width="38%" class="catbottom" align="center"><span class="gen">{L_STATION_TITLE}</span></td> <td width="16%" class="catbottom" align="center"><span class="gen">{L_SINGER}</span></td> <td width="22%" class="catbottom" align="center"><span class="gen">{L_POSTED}</span></td> <td width="6%" class="catbottom" align="center"><span class="gen">{L_VIEW}</span></td> <td width="8%" class="catbottom" align="center"><span class="gen">{L_RATING}</span></td> <td width="10%" class="catbottom" align="center"><span class="gen">{L_COMMENTS}</span></td> </tr> <!-- BEGIN no_stations --> <tr> <td class="row1" align="center" colspan="6" height="50"><span class="gen">{L_NO_STATIONS}</span></td> </tr> <!-- END no_stations --> <!-- BEGIN search_row --> <!-- END search_row --> <!-- BEGIN search_stations --> <!-- BEGIN search_detail --> <tr> <td width="38%" class="row1" align="center"><span class="genmed">{search_stations.search_detail.TITLE}</span></td> <td width="16%" class="row2" align="center"><span class="genmed">{search_stations.search_detail.SINGER}</span></td> <td width="22%" class="row1" align="center"><span class="gensmall">{search_stations.search_detail.POSTER}<br />{search_stations.search_detail.TIME}</span></td> <td width="6%" class="row2" align="center"><span class="gensmall">{search_stations.search_detail.VIEW}</span></td> <td width="8%" class="row1" align="center"><span class="gensmall">{search_stations.search_detail.RATING}</span></td> <td width="10%" class="row2" align="center"><span class="gensmall">{search_stations.search_detail.COMMENTS}</span></td> <!-- END search_detail --> </tr> <!-- END search_stations --> </table> </form> <br clear="all" /> <!-- Do not remove my copyright notice and keep visible with its original content! --> {RADIOCAST_COPYRIGHT} --- NEW FILE: radiocast_cat_body.tpl --- <form action="{S_RADIOCAST_ACTION}" method="post"> <table width="100%" cellspacing="2" cellpadding="2" border="0"> <tr> <td valign="bottom" width="100%"><a class="maintitle" href="{U_VIEW_CAT}">{CAT_TITLE}</a><br /> <span class="gensmall"><b>{L_MODERATORS}: {MODERATORS}</b></span></td> <td align="right" valign="bottom" nowrap="nowrap"><span class="nav">{PAGINATION}</span></td> </tr> </table> <table width="100%" cellspacing="2" cellpadding="2" border="0"> <tr> <td> <!-- BEGIN enable_soung_upload --> <a href="{U_POST_STATION}"><img src="{POST_STATION_IMG}" border="0" alt="{L_POST_STATION}" title="{L_POST_STATION}" /></a> <!-- END enable_soung_upload --> </td> <td class="nav" width="100%"> <span class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a> {NAV_SEP} <a class="nav" href="{U_RADIOCAST}">{L_RADIOCAST}</a> {NAV_SEP} <a class="nav" href="{U_VIEW_CAT}">{CAT_TITLE}</a> {NAV_CAT_DESC} </span> </td> </tr> </table> <table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline"> <tr> <th class="thTop" height="25" align="center" colspan="7" nowrap="nowrap">{L_CATEGORY} :: {CAT_TITLE}</th> </tr> <tr> <td width="31%" align="center" class="catBottom" height="28"><span class="gen">{L_STATION_TITLE}</span></td> <td width="15%" align="center" class="catBottom" height="28"><span class="gen">{L_SINGER} </span></td> <td width="25%" align="center" class="catBottom" height="28"><span class="gen">{L_POSTED} </span></td> <td width="6%" align="center" class="catBottom" height="28"><span class="gen">{L_VIEW} </span></td> <td width="8%" align="center" class="catBottom" height="28"><span class="gen">{L_RATING} </span></td> <td width="10%" align="center" class="catBottom" height="28"><span class="gen">{L_COMMENTS} </span></td> <td width="5%" align="center" class="catBottom" height="28"> </td> </tr> <!-- BEGIN no_stations --> <tr> <td class="row1" align="center" colspan="7" height="50"><span class="gen">{L_NO_STATIONS}</span></td> </tr> <!-- END no_stations --> <!-- BEGIN stationrow --> <tr> <!-- BEGIN stationcol --> <!-- END stationcol --> <!-- BEGIN station_detail --> <td width="31%" class="row2" align="center" height="28"> <table><tr> <td align="left"><img src="{stationrow.station_detail.RADIO_FRONT_IMG}" alt="" /></td> <td align="center"><span class="genmed">{stationrow.station_detail.TITLE}</span><td> </tr></table></td> <td width="15%" align="center" class="row1"><span class="genmed">{stationrow.station_detail.SINGER}</span></td> <td width="25%" align="center" class="row2"><span class="gensmall">{stationrow.station_detail.POSTER}<BR>{stationrow.station_detail.TIME}</span></td> <td width="6%" align="center" class="row1"><span class="gensmall">{stationrow.station_detail.VIEW}</span></td> <td width="8%" align="center" class="row2"><span class="gensmall">{stationrow.station_detail.RATING}</span></td> <td width="10%" align="center" class="row1"><span class="gensmall">{stationrow.station_detail.COMMENTS}</span></td> <td width="5%" align="center" class="row2"><span class="gensmall">{stationrow.station_detail.EDIT}<BR /> {stationrow.station_detail.DELETE}<BR /> {stationrow.station_detail.LOCK}<BR /> {stationrow.station_detail.MOVE}</span></td> <!-- END station_detail --> </tr> <!-- END stationrow --> <tr> <td class="catBottom" colspan="7" align="center" height="28"> <span class="gensmall">{L_SELECT_SORT_METHOD}: <select name="sort_method"> <option {SORT_TIME} value='station_time'>{L_TIME}</option> <option {SORT_SONG_TITLE} value='station_title'>{L_SONG_TITLE}</option> <option {SORT_SINGER} value='station_singer'>{L_SINGER}</option> <option {SORT_USERNAME} value='username'>{L_USERNAME}</option> <option {SORT_VIEW} value='station_view_count'>{L_VIEW}</option> {SORT_RATING_OPTION} {SORT_COMMENTS_OPTION} {SORT_NEW_COMMENT_OPTION} </select> {L_ORDER}: <select name="sort_order"> <option {SORT_ASC} value='ASC'>{L_ASC}</option> <option {SORT_DESC} value='DESC'>{L_DESC}</option> </select> <input type="submit" name="submit" value="{L_SORT}" class="liteoption" /> </span> </td> </tr> </table> <table width="100%" cellspacing="2" border="0" cellpadding="2"> <tr> <td> <!-- BEGIN enable_soung_upload --> <a href="{U_POST_STATION}"><img src="{POST_STATION_IMG}" border="0" alt="{L_POST_STATION}" title="{L_POST_STATION}" /></a> <!-- END enable_soung_upload --> </td> <td class="nav" width="100%"> <span class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a> {NAV_SEP} <a class="nav" href="{U_RADIOCAST}">{L_RADIOCAST}</a> {NAV_SEP} <a class="nav" href="{U_VIEW_CAT}">{CAT_TITLE}</a> {NAV_CAT_DESC} </span> </td> <td align="right" nowrap="nowrap"><span class="gensmall">{S_TIMEZONE}</span><br /> <span class="nav">{PAGINATION}</span></td> </tr> <tr> <td colspan="3"><span class="nav">{PAGE_NUMBER}</span></td> </tr> </table> </form> <table width="100%" cellspacing="0" border="0" cellpadding="0"> <tr> <td align="right" class="gensmall" nowrap="nowrap">{RADIOCAST_JUMPBOX}</td> </tr> <tr> <td align="right" class="gensmall">{S_AUTH_LIST}</td> </tr> </table> <br clear="all" /> <!-- Do not remove my copyright notice and keep visible with its original content! --> {RADIOCAST_COPYRIGHT} --- NEW FILE: radiocast_rate_body.tpl --- <center><b><span class="genmed"><h3>{STATION_TITLE} :: {SINGER}</h3></span></b></center> <script language="JavaScript" type="text/javascript"> <!-- function checkRateForm() { if (document.rateform.rate.value == -1) { return false; } else { return true; } } // --> </script> <form name="rateform" action="{S_RADIOCAST_ACTION}" method="post" onsubmit="return checkRateForm();"> <table width="100%" cellspacing="2" cellpadding="2" border="0"> <tr> <td class="nav"><span class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a> {NAV_SEP} <a class="nav" href="{U_RADIOCAST}">{L_RADIOCAST}</a> {NAV_SEP} <a class="nav" href="{U_VIEW_CAT}">{CAT_TITLE}</a></span></td> </tr> </table> <table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline"> <tr> <th class="thTop" height="25" colspan="2">{L_RATING}</th> </tr> <tr> <td class="row1" align="center" width="50%"><table width="100%" cellspacing="2" cellpadding="2" border="0"> <tr> <td align="right" nowrap="nowrap" class="genmed">{L_POSTER}:</td> <td class="genmed"><strong>{POSTER}</strong></td> </tr> <tr> <td align="right" nowrap="nowrap" class="genmed">{L_POSTED}:</td> <td class="genmed"><strong>{STATION_TIME}</strong></td> </tr> <tr> <td align="right" nowrap="nowrap" class="genmed">{L_VIEW}:</td> <td class="genmed"><strong>{STATION_VIEW}</strong></td> </tr> </table></td> <td class="row1" valign="top"> <span class="gen"><br />{L_CURRENT_RATING}: <strong>{STATION_RATING}</strong><br /> <br />{L_PLEASE_RATE_IT}: <select name="rate"> <option value="-1">{S_RATE_MSG}</option> <!-- BEGIN rate_row --> <option value="{rate_row.POINT}">{rate_row.POINT}</option> <!-- END rate_row --> </select><br /> </span> </td> </tr> <tr> <td class="catBottom" align="center" height="28" colspan="2"><input type="submit" name="submit" value="{L_SUBMIT}" class="mainoption" /></td> </tr> </table> </form> <br clear="all" /> <!-- Do not remove my copyright notice and keep visible with its original content! --> {RADIOCAST_COPYRIGHT} --- NEW FILE: radiocast_add_body.tpl --- <script language="JavaScript" type="text/javascript"> <!-- function checkRadioCastForm() { formErrors = false; if (document.upload.station_file.value.length < 8) { if (document.upload.station_url.value.length < 15) { formErrors = "{L_ADD_NO_FILE}"; } } else if (document.upload.station_file.value.length > 8) { if (document.upload.station_url.value.length > 15) { formErrors = "{L_ADD_BOTH_FILE}"; } } else if (document.upload.station_title.value.length < 2) { formErrors = "{L_ADD_NO_TITLE}"; } else if (document.upload.station_desc.value.length > {S_STATION_DESC_MAX_LENGTH}) { formErrors = "{L_DESC_TOO_LONG}"; } if (formErrors) { alert(formErrors); return false; } else { return true; } } // --> </script> <form name="upload" action="{S_RADIOCAST_ACTION}" method="post" enctype="multipart/form-data" onSubmit="return checkRadioCastForm()"> <table width="100%" cellspacing="2" cellpadding="2" border="0"> <tr> <td class="nav"><span class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a> {NAV_SEP} <a class="nav" href="{U_RADIOCAST}">{L_RADIOCAST}</a> {NAV_SEP} <a class="nav" href="{U_VIEW_CAT}">{CAT_TITLE}</a></span></td> </tr> </table> <table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline"> <tr> <th class="thTop" height="25" colspan="2">{L_ADD_STATION}</th> </tr> <!-- BEGIN switch_user_logged_out --> <tr> <td class="row1" width="30%" height="28"><span class="gen">{L_USERNAME}:</span></td> <td class="row2"><input class="post" type="text" name="station_username" size="32" maxlength="32" /></td> </tr> <!-- END switch_user_logged_out --> <!-- BEGIN swich_upload --> <tr> <td class="row1"><span class="gen">{L_ADD_STATION_FROM_MACHINE}:</span></td> <td class="row2"><input class="post" type="file" name="station_file" size="49" /></td> </tr> <!-- END swich_upload --> <tr> <td class="row1" height="28"><span class="gen">{L_STATION_URL}:</span></td> <td class="row2"><input class="post" type="text" name="station_url" size="60" /></td> </tr> <tr> <td class="row1" rowspan="2"><span class="gen">{L_STATION_IMAGE}:</span><br /><span class="gensmall">{L_STATION_IMAGE_DESC}</span></td> <td class="row2"><span class="gen"><input type="radio" name="image_system" value="0" checked="checked" />{L_NO_IMAGE} <input type="radio" name="image_system" value="1" /> {L_ADD_IMAGE}</span></td> </tr> <tr> <td class="row2"><input class="post" type="file" name="station_image" size="49" /></td> </tr> <tr> <td class="row1" height="28"><span class="gen">{L_STATION_TITLE}:</span></td> <td class="row2"><input class="post" type="text" name="station_title" size="60" /></td> </tr> <tr> <td class="row1" height="28"><span class="gen">{L_SINGER}:</span></td> <td class="row2"><input class="post" type="text" name="station_singer" size="60" /></td> </tr> <tr> <td class="row1" valign="top" height="28"><span class="gen">{L_STATION_DESC}:<br /> </span><span class="genmed">{L_PLAIN_TEXT_ONLY}<br />{L_MAX_LENGTH}: <b>{S_STATION_DESC_MAX_LENGTH}</b></span></td> <td class="row2"><textarea class="post" cols="60" rows="10" name="station_desc" size="60"></textarea></td> </tr> <tr> <td height="28" class="row1"><span class="gen">{L_ADD_TO_CATEGORY}:</span></td> <td class="row2">{SELECT_CAT}</td> </tr> <!-- BEGIN swich_upload --> <tr> <td class="row1" height="28"><span class="gen">{L_MAX_FILESIZE}:</span></td> <td class="row2"><span class="gen"><b>{S_MAX_FILESIZE}</b></span></td> </tr> <tr> <td class="row1" height="28"><span class="gen">{L_ALLOWED_FILE}:</span></td> <td class="row2"><span class="gen"><b>{S_MP3} {S_WMA} {S_WMV} {S_MPEG} {S_AVI} {S_SWF} {S_AU} {S_WAV} {S_MIDI} {S_RAM} {S_QT} {S_RM}</b></span></td> </tr> <!-- END swich_upload --> <tr> <td class="catBottom" align="center" height="28" colspan="2"><input type="reset" value="{L_RESET}" class="liteoption" /> <input type="submit" name="submit" value="{L_SUBMIT}" class="mainoption" /></td> </tr> </table> </form> <br clear="all" /> <!-- Do not remove my copyright notice and keep visible with its original content! --> {RADIOCAST_COPYRIGHT} |
|
From: OryNider <ory...@us...> - 2007-06-06 23:04:12
|
Update of /cvsroot/mxbb/mx_radiocast/templates/subSilver/images/lang_english In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv1615/templates/subSilver/images/lang_english Added Files: icon_add_station.gif index.html Log Message: --- NEW FILE: index.html --- <html> <head> <title>Mx Radio Cast Module</title> </head> <body> <br /><br /><br /><br /><br /><br /><br /> <center><h1><a href="http://mxbb.net/">mxBB-Portal</a></h1></center> </body> --- NEW FILE: icon_add_station.gif --- (This appears to be a binary file; contents omitted.) |
Update of /cvsroot/mxbb/mx_radiocast/templates/subSilver/images In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv1615/templates/subSilver/images Added Files: iframe_bg.png index.html no_image.gif no_image.png radio_front.gif real_front.gif wmp_front.gif Log Message: --- NEW FILE: iframe_bg.png --- (This appears to be a binary file; contents omitted.) --- NEW FILE: radio_front.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: index.html --- <html> <head> <title>Mx Radio Cast Module</title> </head> <body> <br /><br /><br /><br /><br /><br /><br /> <center><h1><a href="http://mxbb.net/">mxBB-Portal</a></h1></center> </body> --- NEW FILE: wmp_front.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: real_front.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: no_image.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: no_image.png --- (This appears to be a binary file; contents omitted.) |
|
From: OryNider <ory...@us...> - 2007-06-06 23:04:10
|
Update of /cvsroot/mxbb/mx_radiocast/templates/subSilver/admin In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv1615/templates/subSilver/admin Added Files: index.html radiocast_admin_body_ext.tpl radiocast_auth_body.tpl radiocast_cat_body.tpl radiocast_cat_delete_body.tpl radiocast_cat_new_body.tpl radiocast_cat_select_body.tpl radiocast_cfg_body.tpl Log Message: --- NEW FILE: radiocast_cat_new_body.tpl --- <h1>{L_RADIOCAST_CAT_TITLE}</h1> <p>{L_RADIOCAST_CAT_EXPLAIN}</p> <form action="{S_RADIOCAST_ACTION}" method="post"> <table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline"> <tr> <th class="thHead" height="25" nowrap="nowrap" colspan="2">{L_PANEL_TITLE}</th> </tr> <tr> <td class="row1" width="20%"><span class="gen">{L_CAT_TITLE}:</span></td> <td class="row2"><input name="cat_title" type="text" class="post" size="35" value="{S_CAT_TITLE}" /></td> </tr> <tr> <td valign="top" nowrap="nowrap" class="row1"><span class="gen">{L_CAT_DESC}: </span></td> <td class="row2"><textarea name="cat_desc" class="post" cols="50" rows="5">{S_CAT_DESC}</textarea></td> </tr> <tr> <th class="thHead" height="25" nowrap="nowrap" colspan="2">{L_CAT_PERMISSIONS}</th> </tr> <tr> <td class="row1"><span class="gen">{L_VIEW_LEVEL}:</span></td> <td class="row2"><select name="cat_view_level"><option {VIEW_GUEST} value="{S_GUEST}">{L_GUEST}</option><option {VIEW_REG} value="{S_USER}">{L_REG}</option><option {VIEW_PRIVATE} value="{S_PRIVATE}">{L_PRIVATE}</option><option {VIEW_MOD} value="{S_MOD}">{L_MOD}</option><option {VIEW_ADMIN} value="{S_ADMIN}">{L_ADMIN}</option></select></td> </tr> <tr> <td class="row1"><span class="gen">{L_UPLOAD_LEVEL}:</span></td> <td class="row2"><select name="cat_upload_level"><option {UPLOAD_GUEST} value="{S_GUEST}">{L_GUEST}</option><option {UPLOAD_REG} value="{S_USER}">{L_REG}</option><option {UPLOAD_PRIVATE} value="{S_PRIVATE}">{L_PRIVATE}</option><option {UPLOAD_MOD} value="{S_MOD}">{L_MOD}</option><option {UPLOAD_ADMIN} value="{S_ADMIN}">{L_ADMIN}</option></select></td> </tr> <tr> <td class="row1"><span class="gen">{L_RATE_LEVEL}:</span></td> <td class="row2"><select name="cat_rate_level"><option {RATE_GUEST} value="{S_GUEST}">{L_GUEST}</option><option {RATE_REG} value="{S_USER}">{L_REG}</option><option {RATE_PRIVATE} value="{S_PRIVATE}">{L_PRIVATE}</option><option {RATE_MOD} value="{S_MOD}">{L_MOD}</option><option {RATE_ADMIN} value="{S_ADMIN}">{L_ADMIN}</option></select></td> </tr> <tr> <td class="row1"><span class="gen">{L_COMMENT_LEVEL}:</span></td> <td class="row2"><span class="gen"><select name="cat_comment_level"><option {COMMENT_GUEST} value="{S_GUEST}">{L_GUEST}</option><option {COMMENT_REG} value="{S_USER}">{L_REG}</option><option {COMMENT_PRIVATE} value="{S_PRIVATE}">{L_PRIVATE}</option><option {COMMENT_MOD} value="{S_MOD}">{L_MOD}</option><option {COMMENT_ADMIN} value="{S_ADMIN}">{L_ADMIN}</option></select></span></td> </tr> <tr> <td class="row1"><span class="gen">{L_EDIT_LEVEL}:</span></td> <td class="row2"><select name="cat_edit_level"><option {EDIT_REG} value="{S_USER}">{L_REG}</option><option {EDIT_PRIVATE} value="{S_PRIVATE}">{L_PRIVATE}</option><option {EDIT_MOD} value="{S_MOD}">{L_MOD}</option><option {EDIT_ADMIN} value="{S_ADMIN}">{L_ADMIN}</option></select></td> </tr> <tr> <td class="row1"><span class="gen">{L_DELETE_LEVEL}:</span></td> <td class="row2"><select name="cat_delete_level"><option {DELETE_REG} value="{S_USER}">{L_REG}</option><option {DELETE_PRIVATE} value="{S_PRIVATE}">{L_PRIVATE}</option><option {DELETE_MOD} value="{S_MOD}">{L_MOD}</option><option {DELETE_ADMIN} value="{S_ADMIN}">{L_ADMIN}</option></select></td> </tr> <tr> <td class="row1"><span class="gen">{L_STATIONS_APPROVAL}:</span></td> <td class="row2"><select name="cat_approval"><option {APPROVAL_DISABLED} value="{S_USER}">{L_DISABLED}</option><option {APPROVAL_MOD} value="{S_MOD}">{L_MOD}</option><option {APPROVAL_ADMIN} value="{S_ADMIN}">{L_ADMIN}</option></select></td> </tr> <tr> <td class="catBottom" align="center" height="28" colspan="2"><input type="hidden" value="{S_MODE}" name="mode" /><input name="submit" type="submit" value="{L_PANEL_TITLE}" class="liteoption" /></td> </tr> </table> </form> <br clear="all" /> <!-- Do not remove my copyright notice and keep visible with its original content! --> <div align="center" style="font-family: Verdana; font-size: 10px; letter-spacing: -1px">Powered by RADIOCAST {RADIOCAST_VERSION} © 2007 <a href="http://mxbb.net/" target="_blank">OryNider</a></div> --- NEW FILE: index.html --- <html> <head> <title>Mx Radio Cast Module</title> </head> <body> <br /><br /><br /><br /><br /><br /><br /> <center><h1><a href="http://mxbb.net/">mxBB-Portal</a></h1></center> </body> --- NEW FILE: radiocast_auth_body.tpl --- <h1>{L_RADIOCAST_AUTH_TITLE}</h1> <p>{L_RADIOCAST_AUTH_EXPLAIN}</p> <form action="{S_RADIOCAST_ACTION}" method="post"> <table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline"> <tr> <th class="thCornerL" height="25" nowrap="nowrap">{L_GROUPS}</th> <th class="thTop" nowrap="nowrap">{L_VIEW}</th> <th class="thTop" nowrap="nowrap">{L_UPLOAD}</th> <th class="thTop" nowrap="nowrap">{L_RATE}</th> <th class="thTop" nowrap="nowrap">{L_COMMENT}</th> <th class="thTop" nowrap="nowrap">{L_EDIT}</th> <th class="thTop" nowrap="nowrap">{L_DELETE}</th> <th class="thCornerR" nowrap="nowrap">{L_IS_MODERATOR}</th> </tr> <!-- BEGIN grouprow --> <tr> <td class="row1" align="center" height="28"><span class="gen">{grouprow.GROUP_NAME}</span></td> <td class="row2" align="center"> <input name="view[]" type="checkbox" {grouprow.VIEW_CHECKED} value="{grouprow.GROUP_ID}" /> </td> <td class="row2" align="center"> <input name="upload[]" type="checkbox" {grouprow.UPLOAD_CHECKED} value="{grouprow.GROUP_ID}" /> </td> <td class="row2" align="center"> <input name="rate[]" type="checkbox" {grouprow.RATE_CHECKED} value="{grouprow.GROUP_ID}" /> </td> <td class="row2" align="center"> <input name="comment[]" type="checkbox" {grouprow.COMMENT_CHECKED} value="{grouprow.GROUP_ID}" /> </td> <td class="row2" align="center"> <input name="edit[]" type="checkbox" {grouprow.EDIT_CHECKED} value="{grouprow.GROUP_ID}" /> </td> <td class="row2" align="center"> <input name="delete[]" type="checkbox" {grouprow.DELETE_CHECKED} value="{grouprow.GROUP_ID}" /> </td> <td class="row2" align="center"> <input name="moderator[]" type="checkbox" {grouprow.MODERATOR_CHECKED} value="{grouprow.GROUP_ID}" /> </td> </tr> <!-- END grouprow --> <tr> <td class="catBottom" height="25" align="center" colspan="8"><input type="reset" value="{L_RESET}" class="liteoption" /> <input name="submit" type="submit" value="{L_SUBMIT}" class="mainoption" /></td> </tr> </table> </form> <br clear="all" /> <!-- Do not remove my copyright notice and keep visible with its original content! --> <div align="center" style="font-family: Verdana; font-size: 10px; letter-spacing: -1px">Powered by Radio Cast {RADIOCAST_VERSION} © 2007 <a href="http://mxbb.net/" target="_blank">OryNider</a></div> --- NEW FILE: radiocast_cat_select_body.tpl --- <h1>{L_MUSIC_AUTH_TITLE}</h1> <p>{L_MUSIC_AUTH_EXPLAIN}</p> <form action="{S_MUSIC_ACTION}" method="post"> <table width="50%" align="center" cellpadding="3" cellspacing="1" border="0" class="forumline"> <tr> <th class="thHead" colspan="2" height="28">{L_SELECT_CAT}</th> </tr> <tr> <td class="row1" height="25"> <select name="cat_id"> <!-- BEGIN catrow --> <option value="{catrow.CAT_ID}">{catrow.CAT_TITLE}</option> <!-- END catrow --> </select> </td> <td class="row1" width="100%" align="center"><input name="submit" type="submit" value="{L_LOOK_UP_CAT}" class="liteoption" /> </td> </tr> </table> </form> <br clear="all" /> <!-- Do not remove my copyright notice and keep visible with its original content! --> <div align="center" style="font-family: Verdana; font-size: 10px; letter-spacing: -1px">Powered by Music Online {MUSIC_VERSION} © 2003 <a href="http://cfmanager.net.tf" target="_blank">Cf Manager</a></div> --- NEW FILE: radiocast_cfg_body.tpl --- <h1>{L_RADIOCAST_CONFIG}</h1> <p>{L_RADIOCAST_CONFIG_EXPLAIN}</p> <form action="{S_RADIOCAST_CONFIG_ACTION}" method="post"> <table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline"> <tr> <th class="thHead" colspan="2">{L_RADIOCAST_CONFIG}</th> </tr> <tr> <td class="row1" width="45%"><span class="genmed">{L_MAX_STATIONS}</span></td> <td class="row2"><input class="post" type="text" maxlength="9" size="9" name="max_stations" value="{MAX_STATIONS}" /></td> </tr> <tr> <td class="row1"><span class="genmed">{L_USER_STATIONS_LIMIT}</span></td> <td class="row2"><input class="post" type="text" maxlength="12" size="5" name="user_stations_limit" value="{USER_STATIONS_LIMIT}" /></td> </tr> <tr> <td class="row1"><span class="genmed">{L_MOD_STATIONS_LIMIT}</span></td> <td class="row2"><input class="post" type="text" maxlength="12" size="5" name="mod_stations_limit" value="{MOD_STATIONS_LIMIT}" /></td> </tr> <tr> <td class="row1"><span class="genmed">{L_MAX_FILE_SIZE}</span></td> <td class="row2"><input class="post" type="text" maxlength="12" size="12" name="max_file_size" value="{MAX_FILE_SIZE}" /></td> </tr> <tr> <td class="row1"><span class="genmed">{L_STATION_DESC_MAX_LENGTH}</span></td> <td class="row2"><input class="post" type="text" size="6" name="desc_length" value="{STATION_DESC_MAX_LENGTH}" /></td> </tr> <!-- <tr> <td class="row1"><span class="genmed">MP3</span></td> <td class="row2"><span class="genmed"><input type="radio" {MP3_ENABLED} name="mp3_allowed" value="1" />{L_YES} <input type="radio" {MP3_DISABLED} name="mp3_allowed" value="0" />{L_NO}</span></td> </tr> <tr> <td class="row1"><span class="genmed">WAV</span></td> <td class="row2"><span class="genmed"><input type="radio" {WAV_ENABLED} name="wav_allowed" value="1" />{L_YES} <input type="radio" {WAV_DISABLED} name="wav_allowed" value="0" />{L_NO}</span></td> </tr> <tr> <td class="row1"><span class="genmed">WMA</span></td> <td class="row2"><span class="genmed"><input type="radio" {WMA_ENABLED} name="wma_allowed" value="1" />{L_YES} <input type="radio" {WMA_DISABLED} name="wma_allowed" value="0" />{L_NO}</span></td> </tr> <tr> <td class="row1"><span class="genmed">WMV</span></td> <td class="row2"><span class="genmed"><input type="radio" {WMV_ENABLED} name="wmv_allowed" value="1" />{L_YES} <input type="radio" {WMV_DISABLED} name="wmv_allowed" value="0" />{L_NO}</span></td> </tr> <tr> <td class="row1"><span class="genmed">MIDI</span></td> <td class="row2"><span class="genmed"><input type="radio" {MIDI_ENABLED} name="mid_allowed" value="1" />{L_YES} <input type="radio" {MIDI_DISABLED} name="mid_allowed" value="0" />{L_NO}</span></td> </tr> <tr> <td class="row1"><span class="genmed">RAM</span></td> <td class="row2"><span class="genmed"><input type="radio" {RAM_ENABLED} name="ram_allowed" value="1" />{L_YES} <input type="radio" {RAM_DISABLED} name="ram_allowed" value="0" />{L_NO}</span></td> </tr> <tr> <td class="row1"><span class="genmed">AU</span></td> <td class="row2"><span class="genmed"><input type="radio" {AU_ENABLED} name="au_allowed" value="1" />{L_YES} <input type="radio" {AU_DISABLED} name="au_allowed" value="0" />{L_NO}</span></td> </tr> <tr> <td class="row1"><span class="genmed">MPEG</span></td> <td class="row2"><span class="genmed"><input type="radio" {MPEG_ENABLED} name="mpeg_allowed" value="1" />{L_YES} <input type="radio" {MPEG_DISABLED} name="mpeg_allowed" value="0" />{L_NO}</span></td> </tr> <tr> <td class="row1"><span class="genmed">AVI</span></td> <td class="row2"><span class="genmed"><input type="radio" {AVI_ENABLED} name="avi_allowed" value="1" />{L_YES} <input type="radio" {AVI_DISABLED} name="avi_allowed" value="0" />{L_NO}</span></td> </tr> <tr> <td class="row1"><span class="genmed">SWF</span></td> <td class="row2"><span class="genmed"><input type="radio" {SWF_ENABLED} name="swf_allowed" value="1" />{L_YES} <input type="radio" {SWF_DISABLED} name="swf_allowed" value="0" />{L_NO}</span></td> </tr> <tr> <td class="row1"><span class="genmed">QT</span></td> <td class="row2"><span class="genmed"><input type="radio" {QT_ENABLED} name="qt_allowed" value="1" />{L_YES} <input type="radio" {QT_DISABLED} name="qt_allowed" value="0" />{L_NO}</span></td> </tr> <tr> <td class="row1"><span class="genmed">RM</span></td> <td class="row2"><span class="genmed"><input type="radio" {RM_ENABLED} name="rm_allowed" value="1" />{L_YES} <input type="radio" {RM_DISABLED} name="rm_allowed" value="0" />{L_NO}</span></td> </tr> --> <tr> <td class="row1"><span class="genmed">{L_HOTLINK_PREVENT}</span></td> <td class="row2"><span class="genmed"><input type="radio" {HOTLINK_PREVENT_ENABLED} name="hotlink_prevent" value="1" />{L_YES} <input type="radio" {HOTLINK_PREVENT_DISABLED} name="hotlink_prevent" value="0" />{L_NO}</span></td> </tr> <tr> <td class="row1"><span class="genmed">{L_HOTLINK_ALLOWED}</span></td> <td class="row2"><input class="post" type="text" size="40" name="hotlink_allowed" value="{HOTLINK_ALLOWED}" /></td> </tr> <tr> <td class="row1"><span class="genmed">{L_ROWS_PER_PAGE}</span></td> <td class="row2"><input class="post" type="text" maxlength="2" size="2" name="rows_per_page" value="{ROWS_PER_PAGE}" /></td> </tr> <tr> <td class="row1"><span class="genmed">{L_TOP}</span></td> <td class="row2"><input class="post" type="text" maxlength="2" size="2" name="top" value="{TOP}" /></td> </tr> <tr> <td class="row1"><span class="genmed">{L_MAX_IMAGE_SIZE}</span></td> <td class="row2"><input class="post" type="text" maxlength="10" size="6" name="max_image_size" value="{MAX_IMAGE_SIZE}" /></td> </tr> <tr> <td class="row1"><span class="genmed">{L_MAX_IMAGE_WIDTH}</span></td> <td class="row2"><input class="post" type="text" maxlength="3" size="2" name="max_image_width" value="{MAX_IMAGE_WIDTH}" /></td> </tr> <tr> <td class="row1"><span class="genmed">{L_MAX_IMAGE_HEIGHT}</span></td> <td class="row2"><input class="post" type="text" maxlength="3" size="2" name="max_image_height" value="{MAX_IMAGE_HEIGHT}" /></td> </tr> <tr> <td class="row1"><span class="genmed">{L_DEFAULT_SORT_METHOD}</span></td> <td class="row2"> <select name="sort_method"> <option {SORT_TIME} value='station_time'>{L_TIME}</option> <option {SORT_STATION_TITLE} value='station_title'>{L_STATION_TITLE}</option> <option {SORT_USERNAME} value='username'>{L_USERNAME}</option> <option {SORT_VIEW} value='station_view_count'>{L_VIEW}</option> <option {SORT_RATING} value='rating'>{L_RATING}</option> <option {SORT_COMMENTS} value='comments'>{L_COMMENTS}</option> <option {SORT_NEW_COMMENT} value='new_comment'>{L_NEW_COMMENT}</option> </select> </td> </tr> <tr> <td class="row1"><span class="genmed">{L_DEFAULT_SORT_ORDER}</span></td> <td class="row2"> <select name="sort_order"> <option {SORT_ASC} value='ASC'>{L_ASC}</option> <option {SORT_DESC} value='DESC'>{L_DESC}</option> </select> </td> </tr> <tr> <th class="thHead" colspan="2">{L_EXTRA_SETTINGS}</th> </tr> <tr> <td class="row1"><span class="genmed">{L_RATE_SYSTEM}</span></td> <td class="row2"><span class="genmed"><input type="radio" {RATE_ENABLED} name="rate" value="1" />{L_YES} <input type="radio" {RATE_DISABLED} name="rate" value="0" />{L_NO}</span></td> </tr> <tr> <td class="row1"><span class="genmed">{L_RATE_SCALE}</span></td> <td class="row2"> <select name="rate_scale"> <option {RATE_SCALE} value='5'>5</option> <option {RATE_SCALE} value='6'>6</option> <option {RATE_SCALE} value='7'>7</option> <option {RATE_SCALE} value='8'>8</option> <option {RATE_SCALE} value='9'>9</option> <option {RATE_SCALE} value='10'>10</option> </select> </td> </tr> <tr> <td class="row1"><span class="genmed">{L_COMMENT_SYSTEM}</span></td> <td class="row2"><span class="genmed"><input type="radio" {COMMENT_ENABLED} name="comment" value="1" />{L_YES} <input type="radio" {COMMENT_DISABLED} name="comment" value="0" />{L_NO}</span></td> </tr> <tr> <td class="row1"><span class="genmed">{L_DOWNLOAD_SYSTEM}</span></td> <td class="row2"><span class="genmed"><input type="radio" {DOWNLOAD_ENABLED} name="download" value="1" />{L_YES} <input type="radio" {DOWNLOAD_DISABLED} name="download" value="0" />{L_NO}</span></td> </tr> <tr> <td class="catBottom" colspan="2" align="center">{S_HIDDEN_FIELDS}<input type="submit" name="submit" value="{L_SUBMIT}" class="mainoption" /> <input type="reset" value="{L_RESET}" class="liteoption" /></td> </tr> </table></form> <br clear="all" /> <!-- Do not remove my copyright notice and keep visible with its original content! --> <div align="center" style="font-family: Verdana; font-size: 10px; letter-spacing: -1px">Powered by MX 'RADIOCAST' {RADIOCAST_VERSION} © 2007 <a href="http://mxbb.net/" target="_blank">OryNider</a><br /></div> --- NEW FILE: radiocast_admin_body_ext.tpl --- <table width="100%" align="center" cellspacing="1" cellpadding="2" border="0"> <tr> <td class="nav"> <span class="nav"> <a href="{U_INDEX}" class="nav">{L_INDEX}</a>{NAV_SEP} <a href="{U_MX_RADIOCAST}" class="nav">{L_RADIOCAST}</a> </span> </td> <td align="right"> </td> </tr> </table> <h1>{L_RADIOCAST_TITLE}</h1> <p>{L_RADIOCAST_EXPLAIN}</p> <form action="{S_FORUM_ACTION}" method="post"> <table width="100%" cellpadding="3" cellspacing="1" border="0" align="center" class="forumline"> <tr> <th class="thHead" colspan="2">{L_DEFAULT_PAGES_TITLE}<br /><span class="gensmall">{L_DEFAULT_PAGES_TITLE_EXPLAIN}</span></th> </tr> <tr> <td class="row1" width="50%">{L_RADIOCAST_INTEGRATION_ENABLED}<br /><span class="gensmall">{L_RADIOCAST_INTEGRATION_ENABLED_EXPLAIN}</span></td> <td class="row2" width="50%"><input type="radio" name="enable_integration" value="1" {RADIOCAST_INTEGRATION_ENABLED_YES} /><span class="gensmall">{L_RADIOCAST_INTEGRATION_ENABLED_YES} <input type="radio" name="enable_integration" value="0" {PHPBB_INTEGRATION_ENABLED_NO} /><span class="gensmall">{L_RADIOCAST_INTEGRATION_ENABLED_NO}</span></td> </tr> <tr> <td class="row1" width="50%">{L_RADIOCAST_INDEX}<br /><span class="gensmall">{L_RADIOCAST_EXPLAIN}</span></td> <td class="row2" width="50%">{RADIOCAST_INDEX}</td> </tr> <tr> <td class="cat" colspan="2" align="center">{S_HIDDEN_FIELDS}<input type="submit" name="submit" value="{L_SUBMIT}" class="mainoption" /> <input type="reset" value="{L_RESET}" class="liteoption" /></td> </tr> </table> </form> --- NEW FILE: radiocast_cat_delete_body.tpl --- <h1>{L_CAT_DELETE}</h1> <p>{L_CAT_DELETE_EXPLAIN}</p> <form action="{S_MUSIC_ACTION}" method="post"> <table cellpadding="4" cellspacing="1" border="0" class="forumline" align="center"> <tr> <th colspan="2" class="thHead">{L_CAT_DELETE}</th> </tr> <tr> <td class="row1"><span class="gen">{L_CAT_TITLE}</span></td> <td class="row1"><span class="genmed">{S_CAT_TITLE}</span></td> </tr> <tr> <td class="row1"><span class="genmed">{L_MOVE_CONTENTS}</span></td> <td class="row1">{S_SELECT_TO}</td> </tr> <tr> <td class="catBottom" colspan="2" align="center"><input type="hidden" name="mode" value="delete" /><input type="submit" name="submit" value="{L_MOVE_DELETE}" class="mainoption" /></td> </tr> </table> </form> <br clear="all" /> <!-- Do not remove my copyright notice and keep visible with its original content! --> <div align="center" style="font-family: Verdana; font-size: 10px; letter-spacing: -1px">Powered by Music Online {MUSIC_VERSION} © 2003 <a href="http://cfmanager.net.tf" target="_blank">Cf Manager</a></div> --- NEW FILE: radiocast_cat_body.tpl --- <h1>{L_RADIOCAST_CAT_TITLE}</h1> <p>{L_RADIOCAST_CAT_EXPLAIN}</p> <form action="{S_RADIOCAST_ACTION}" method="post"> <table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline"> <tr> <th class="thHead" height="25" colspan="4">{L_RADIOCAST_CAT_TITLE}</th> </tr> <!-- BEGIN catrow --> <tr> <td class="{catrow.COLOR}" width="60%" height="25"><span class="gen">{catrow.TITLE}<br /></span><span class="gensmall">{catrow.DESC}</span></td> <td class="{catrow.COLOR}" align="center"><span class="genmed"><a href="{catrow.S_MOVE_UP}">{L_MOVE_UP}</a><br /><a href="{catrow.S_MOVE_DOWN}">{L_MOVE_DOWN}</a></span></td> <td class="{catrow.COLOR}" align="center"><span class="genmed"><a href="{catrow.S_EDIT_ACTION}">{L_EDIT}</a></span></td> <td class="{catrow.COLOR}" align="center"><span class="genmed"><a href="{catrow.S_DELETE_ACTION}">{L_DELETE}</a></span></td> </tr> <!-- END catrow --> <tr> <td class="catBottom" align="center" height="28" colspan="4"><input type="hidden" value="new" name="mode" /><input name="submit" type="submit" value="{L_CREATE_CATEGORY}" class="liteoption"></td> </tr> </table> </form> <br clear="all" /> <!-- Do not remove my copyright notice and keep visible with its original content! --> <div align="center" style="font-family: Verdana; font-size: 10px; letter-spacing: -1px">Powered by Radio Cast {RADIOCAST_VERSION} © 2007 <a href="http://mxbb.net/" target="_blank">OryNider</a> is modified by <a href="http://www.mx-system.com/">MX-Team</a><br /></div> |
|
From: OryNider <ory...@us...> - 2007-06-06 23:04:06
|
Update of /cvsroot/mxbb/mx_radiocast/templates In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv1615/templates Added Files: index.html Log Message: --- NEW FILE: index.html --- <html> <head> <title>Mx Radio Cast Module</title> </head> <body> <br /><br /><br /><br /><br /><br /><br /> <center><h1><a href="http://mxbb.net/">mxBB-Portal</a></h1></center> </body> |
|
From: OryNider <ory...@us...> - 2007-06-06 23:04:06
|
Update of /cvsroot/mxbb/mx_radiocast/radiocast_mod In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv1615/radiocast_mod Added Files: index.html radiocast_common.php radiocast_constants.php radiocast_functions.php radiocast_integration.php Log Message: --- NEW FILE: index.html --- <html> <head> <title>Redirecting...</title> <script language="JavaScript"> self.location.href='http://mxbb.net/'; </script> </head> <body> </body> </html> --- NEW FILE: radiocast_functions.php --- <?php /** * * @package mxBB Portal Module - mx_radiocast * @version $Id: radiocast_functions.php,v 1.1 2007/06/06 23:03:59 orynider Exp $ * @copyright (c) 2007 [ory...@rd..., OryNider] mxBB Development Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ // ------------------------------------ // All common functions are here! // ------------------------------------ // You cannot call this file directly from your browser // if ( !defined('IN_PORTAL') ) { die('Hacking attempt'); } // ---------------------------------------------------------------------------- // This function will return the access data of the current user for a category // Default returning value is "0" (means NOT AUTHORISED) // // All $*_check must be "1" or "0" // // $passed_auth must be a full row from RADIOCAST_CAT_TABLE. This function still works without // ... but $passed_auth will make it worked very much faster (because this function is often // called in a loop) // function radiocast_user_access($cat_id, $passed_auth = 0, $view_check, $upload_check, $rate_check, $comment_check, $edit_check, $delete_check) { global $db, $radiocast_config, $userdata; // -------------------------------- // Force to check moderator status // -------------------------------- $moderator_check = 1; // -------------------------------- // Here the array which this function would return. Now we initiate it! // -------------------------------- $radiocast_user_access = array( 'view' => 0, 'upload' => 0, 'rate' => 0, 'comment' => 0, 'edit' => 0, 'delete' => 0, 'moderator' => 0 ); $radiocast_user_access_keys = array_keys($radiocast_user_access); // // END initiation $radiocast_user_access // // -------------------------------- // Check $cat_id // -------------------------------- if ($cat_id < 0) { mx_message_die(GENERAL_ERROR, 'Bad cat_id arguments for function radiocast_user_access()'); } // // END check $cat_id // // -------------------------------- // If the current user is an ADMIN (RADIOCAST_ADMIN == ADMIN) // -------------------------------- if ($userdata['user_level'] == ADMIN) { for ($i = 0; $i < count($radiocast_user_access); $i++) { $radiocast_user_access[$radiocast_user_access_keys[$i]] = 1; // Authorised All } // // Function EXIT here // return $radiocast_user_access; } // // END check ADMIN // // -------------------------------- // if this is a GUEST, we will ignore some checking // -------------------------------- if (!$userdata['session_logged_in']) { $edit_check = 0; $delete_check = 0; $moderator_check = 0; } // // END check GUEST // // -------------------------------- // check if RATE or COMMENT are turned off by music Config, so we can ignore them // -------------------------------- if ($radiocast_config['rate'] == 0) { $rate_check = 0; } if ($radiocast_config['comment'] == 0) { $comment_check = 0; } // // END Check RATE & COMMENT // // -------------------------------- // The array that list all access type this function will look for (except MODERATOR) // -------------------------------- $access_type = array(); if ($view_check != 0) { $access_type[] = 'view'; } if ($upload_check != 0) { $access_type[] = 'upload'; } if ($rate_check != 0) { $access_type[] = 'rate'; } if ($comment_check != 0) { $access_type[] = 'comment'; } if ($edit_check != 0) { $access_type[] = 'edit'; } if ($delete_check != 0) { $access_type[] = 'delete'; } // // END generating array $access_type // // -------------------------------- // If everything is empty // -------------------------------- if( empty($access_type) and (!$moderator_check) ) { // // Function EXIT here // return $radiocast_user_access; } // // END check empty // // -------------------------------- // Generate the SQL query based on $access_type and $moderator_check // -------------------------------- $sql = 'SELECT cat_id'; for ($i = 0; $i < count($access_type); $i++) { $sql .= ', cat_'. $access_type[$i] .'_level, cat_'. $access_type[$i] .'_groups'; } if ($moderator_check) { $sql .= ', cat_moderator_groups'; } $sql .= " FROM ". RADIOCAST_CAT_TABLE ." WHERE cat_id = '$cat_id'"; // // END SQL query generating // // -------------------------------- // Query the $sql then Fetchrow if $passed_auth == 0 // -------------------------------- if( !is_array($passed_auth) ) { if( !$result = $db->sql_query($sql) ) { message_die(GENERAL_ERROR, 'Could not query music Category information' ,'' , __LINE__, __FILE__, $sql); } $thiscat = $db->sql_fetchrow($result); } else { $thiscat = $passed_auth; } // // END Query and Fetchrow // // -------------------------------- // Maybe the access level is not PRIVATE or the groups list is empty // ... so we can skip some queries ;) // -------------------------------- $groups_access = array(); for ($i = 0; $i < count($access_type); $i++) { switch ($thiscat['cat_'. $access_type[$i] .'_level']) { case RADIOCAST_GUEST: $radiocast_user_access[$access_type[$i]] = 1; break; case RADIOCAST_USER: if ($userdata['session_logged_in']) { $radiocast_user_access[$access_type[$i]] = 1; } break; case RADIOCAST_PRIVATE: if( ($thiscat['cat_'. $access_type[$i] .'_groups'] != '') and ($userdata['session_logged_in']) ) { $groups_access[] = $access_type[$i]; } break; case RADIOCAST_MOD: // this will be checked later break; case RADIOCAST_ADMIN: // ADMIN already returned before at the checking code // at the top of this function. So this user cannot be authorised $radiocast_user_access[$access_type[$i]] = 0; break; default: $radiocast_user_access[$access_type[$i]] = 0; } } // // END Check Access Level // // -------------------------------- // We can return now if $groups_access is empty AND $moderator_check == 0 // -------------------------------- if( ($moderator_check == 1) and ($thiscat['cat_moderator_groups'] != '') ) { // We can merge them now $groups_access[] = 'moderator'; } if (empty($groups_access)) { // // Function EXIT here // return $radiocast_user_access; } // -------------------------------- // Now we have the list of usergroups have PRIVATE/MODERATOR access // So we will check if this user is in these usergroups or not... // -------------------------------- // upto (6 + 1) loops maximum when this user logged in and All Levels // are set to PRIVATE and this function was called to check all. // So avoiding PRIVATE will speed up your music. However, these queries are very fast for ($i = 0; $i < count($groups_access); $i++) { $sql = "SELECT group_id, user_id FROM ". USER_GROUP_TABLE ." WHERE user_id = '". $userdata['user_id'] ."' AND user_pending = 0 AND group_id IN (". $thiscat['cat_'. $groups_access[$i] .'_groups'] .")"; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, 'Could not query User-Group information' ,'' , __LINE__, __FILE__, $sql); } if( $db->sql_numrows($result) > 0 ) { $radiocast_user_access[$groups_access[$i]] = 1; } } // // END check PRIVATE/MODERATOR groups // // -------------------------------- // If $moderator_check was called and this user is a MODERATOR he // will be authorised for all accesses which were not set to ADMIN // -------------------------------- if( ($radiocast_user_access['moderator'] == 1) and ($moderator_check == 1) ) { for ($i = 0; $i < count($radiocast_user_access); $i++) { if( $thiscat['cat_'. $radiocast_user_access_keys[$i] .'_level'] != RADIOCAST_ADMIN ) { $radiocast_user_access[$radiocast_user_access_keys[$i]] = 1; } } } // // END Moderator // // -------------------------------- // Return result... // -------------------------------- return $radiocast_user_access; } // // END function radiocast_user_access() // ---------------------------------------------------------------------------- function radiocast_end() { global $radiocast_config; echo '<div align="center" style="font-family: Verdana; font-size: 10px; letter-spacing: -1px">Powered by Radio Cast' . $radiocast_config['radiocast_version'] . ' © 2007 <a href="http://mxbb.net/" target="_blank">OryNider</a></div>'; } // // OR you can pay me for the copyright notice removal. Contact me! // ---------------------------------------------------------------------------- ?> --- NEW FILE: radiocast_integration.php --- <?php /** * * @package mxBB Portal Module - mx_radiocast * @version $Id: radiocast_integration.php,v 1.1 2007/06/06 23:04:00 orynider Exp $ * @copyright (c) 2002-2006 [OryNider, ory...@rd...] mxBB Development Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ if ( !defined( 'IN_PORTAL' ) ) { die( "Hacking attempt" ); } /* if( defined('RADIOCAST_CONFIG_TABLE') ) { $radiocast_config = array(); $sql = "SELECT * FROM " . RADIOCAST_CONFIG_TABLE; if( !($result = $db->sql_query($sql)) ) { message_die(GENERAL_ERROR, "Couldn't query radio config table", "", __LINE__, __FILE__, $sql); } else { while( $row = $db->sql_fetchrow($result) ) { $config_name = $row['config_name']; $config_value = $row['config_value']; $radiocast_config[$row['config_name']] = $row['config_value']; } } } */ $radiocast_index = $radiocast_config['index']; $override_default_pages = $radiocast_config['override_default_pages']; $integration_enabled = $radiocast_config['enable_integration']; // MX add-on // 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; } function this_rc_portalurl($args = '') { global $mx_root_path, $module_root_path, $page_id, $radiocast_index, $phpEx, $integration_enabled, $is_block; if( $integration_enabled != "1" ) { $mxurl = $mx_root_path . 'modules/mx_radiocast/' . 'radiocast.' . $phpEx . ($args == '' ? '' : '?' . $args); } else { $mxurl = $mx_root_path . 'index.' . $phpEx . '?page=' . $radiocast_index . ($args == '' ? '' : '&' . $args); } return $mxurl; } function this_rc_loginurl($args = '', $force_standalone_mode = false) { global $mx_root_path, $module_root_path, $page_id, $radiocast_index, $phpEx, $integration_enabled, $is_block; $mxurl = $mx_root_path . 'index.' . $phpEx; if( is_numeric($page_id) && !empty($page_id) ) { $mxurl .= ($args == '' ? '' : '&' . $args) . '&page=' . $page_id; } else { $mxurl .= ($args == '' ? '' : '&' . $args) . '&page=' . $radiocast_index; } return $mxurl; } function this_rc_rssurl($args = '') { global $mx_root_path, $module_root_path, $page_id, $radiocast_index, $phpEx, $integration_enabled, $is_block; if( $integration_enabled != "1" ) { $mxurl = 'modules/mx_radiocast/' . 'album.' . $phpEx . ($args == '' ? '' : '?' . $args); } else { $mxurl = 'index.' . $phpEx . '?page=' . $radiocast_index . ($args == '' ? '' : '&' . $args); } return $mxurl; } // -------------------------------------------------------------------------------- // That's all Folks! // -------------------------------------------------------------------------------- ?> --- NEW FILE: radiocast_common.php --- <?php /** * * @package mxBB Portal Module - mx_radiocast * @version $Id: radiocast_common.php,v 1.1 2007/06/06 23:03:58 orynider Exp $ * @copyright (c) 2007 [ory...@rd..., OryNider] mxBB Development Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ if ( !defined('IN_PORTAL') ) { die('Hacking attempt'); } define('IN_RADIOCAST', true); if ( !defined('RADIOCAST_PATH') ) { define('RADIOCAST_PATH', 'radiocast_mod/'); } if (!isset($radiocast_root_path) || empty($radiocast_root_path)) { $radiocast_root_path = $module_root_path . RADIOCAST_PATH . ''; } 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"); // ---------- } // // Get music Config // $sql = "SELECT * FROM ". RADIOCAST_CONFIG_TABLE; if(!$result = $db->sql_query($sql)) { mx_message_die(GENERAL_ERROR, "Could not query radio config information", "", __LINE__, __FILE__, $sql); } while( $row = $db->sql_fetchrow($result) ) { $radiocast_config_name = $row['config_name']; $radiocast_config_value = $row['config_value']; $radiocast_config[$radiocast_config_name] = $radiocast_config_value; } include($radiocast_root_path . 'radiocast_functions.' . $phpEx); include($radiocast_root_path . 'radiocast_integration.' . $phpEx); // // Set Radio Version // $module_name = 'Radio Cast'; $sql = "SELECT * FROM " . MODULE_TABLE . " WHERE module_name = '$module_name'"; if( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, "Couldn't obtain the module informations from database", '', __LINE__, __FILE__, $sql); } while( $module = $db->sql_fetchrow($result) ) { $radiocast_module_copy = $module['module_copy']; $radiocast_module_name = $module['module_name']; $radiocast_module_version = $module['module_version']; } if( !empty($radiocast_module_copy) ) { $radiocast_module_copyright = '<div align="center" class="gensmall" style="font-family: Verdana, Arial, Helvetica, sans-serif; letter-spacing: -1px">'; $radiocast_module_copyright .= 'mxBB <i> - ' . $radiocast_module_name . '</i> ' . $radiocast_module_version . ' © 2007 is powered by <a href="http://www.mxbb.net/">OryNider</a><br />'; $radiocast_module_copyright .= '[based on © 2003 <a href="http://cfmanager.net.tf" target="_blank">Cf Manager</a> & mxBB <i> - Music Center</i> v2.0.x © 2007, modified by <a href="http://www.mx-system.com/">MX-Team</a>]'; $radiocast_module_copyright .= '</div>'; } else { $radiocast_module_copyright = '<div align="center" class="gensmall" style="font-family: Verdana, Arial, Helvetica, sans-serif; letter-spacing: -1px">'; $radiocast_module_copyright .= 'mxBB <i> - Radio Cast</i> v1.0.x © 2007 is powered by <a href="http://www.mx-system.com/">OryNider</a><br />'; $radiocast_module_copyright .= '[based on © 2003 <a href="http://cfmanager.net.tf" target="_blank">Cf Manager</a> & mxBB <i> - Music Center</i> v2.0.x © 2007, modified by <a href="http://www.mx-system.com/">MX-Team</a>]'; $radiocast_module_copyright .= '</div>'; } $template->assign_vars(array( 'NAV_SEP' => $lang['Nav_Separator'], 'NAV_DOT' => '•', 'RADIOCAST_VERSION' => '1' . $radiocast_config['radiocast_version'], 'RADIOCAST_COPYRIGHT' => $radiocast_module_copyright, 'L_INDEX' => '<<', 'U_INDEX' => append_sid($mx_root_path . "index.".$phpEx), 'L_RADIOCAST_INDEX' => $lang['Radio_Cast'], 'L_MUSIC' => $lang['Radio'], 'U_MUSIC' => append_sid(this_rc_mxurl()), 'L_SEARCH' => $lang['Search'], 'U_MX_MUSIC' => append_sid(this_rc_portalurl()) ) ); ?> --- NEW FILE: radiocast_constants.php --- <?php /** * * @package mxBB Portal Module - mx_radiocast * @version $Id: radiocast_constants.php,v 1.1 2007/06/06 23:03:59 orynider Exp $ * @copyright (c) 2007 [ory...@rd..., OryNider] mxBB Development Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ if ( !defined('IN_PORTAL') ) { die('Hacking attempt'); } define('PAGE_RADIOCAST', -19); // for Session Handling // User Levels for Music system <- do NOT change these values define('RADIOCAST_ANONYMOUS', -1); define('RADIOCAST_GUEST', -1); define('RADIOCAST_USER', 0); define('RADIOCAST_ADMIN', 1); define('RADIOCAST_MOD', 2); define('RADIOCAST_PRIVATE', 3); // Path (trailing slash required) define('RADIOCAST_IMAGE_UPLOAD_PATH', $module_root_path . 'upload/station_image/'); define('RADIOCAST_UPLOAD_PATH', $module_root_path . 'upload/'); // Table names !defined('RADIOCAST_TABLE') ? define('RADIOCAST_TABLE', $mx_table_prefix . 'radiocast') : false; !defined('RADIOCAST_CAT_TABLE') ? define('RADIOCAST_CAT_TABLE', $mx_table_prefix . 'radiocast_cat') : false; !defined('RADIOCAST_CONFIG_TABLE') ? define('RADIOCAST_CONFIG_TABLE', $mx_table_prefix . 'radiocast_config') : false; !defined('RADIOCAST_COMMENT_TABLE') ? define('RADIOCAST_COMMENT_TABLE', $mx_table_prefix . 'radiocast_comment') : false; !defined('RADIOCAST_RATE_TABLE') ? define('RADIOCAST_RATE_TABLE', $mx_table_prefix . 'radiocast_rate') : false; ?> |
|
From: OryNider <ory...@us...> - 2007-06-06 23:04:02
|
Update of /cvsroot/mxbb/mx_radiocast/language/lang_english In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv1615/language/lang_english Added Files: index.html lang_admin.php lang_main.php Log Message: --- NEW FILE: index.html --- <html> <head> <title>Mx Radio Cast Module</title> </head> <body> <br /><br /><br /><br /><br /><br /><br /> <center><h1><a href="http://mxbb.net/">mxBB-Portal</a></h1></center> </body> --- NEW FILE: lang_main.php --- <?php /** * * @package mxBB Portal Module - mx_radiocast * @version $Id: lang_main.php,v 1.1 2007/06/06 23:03:57 orynider Exp $ * @copyright (c) 2007 [ory...@rd..., OryNider] mxBB Development Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ // // Music Online // $lang['Radio'] = 'Radio Cast'; // // Music Index // $lang['Radio_Cast'] = 'Radio Cast'; $lang['Stations'] = 'Stations'; $lang['Cat_Views'] = 'Board Views'; $lang['Last_Station'] = 'Last Station'; $lang['Public_Categories'] = 'Public Categories'; $lang['No_Stations'] = 'No Station'; $lang['Top_Stations'] = 'Top Stations'; $lang['Station_Limit'] = 'Station limit'; $lang['Nav_Separator'] = ' » '; $lang['View'] = 'Listen'; $lang['Singer'] = 'Dj'; // // Category View // $lang['Category_not_exist'] = 'This category does not exist'; $lang['Add_Station'] = 'Add Station'; $lang['Station_Title'] = 'Station Title'; $lang['RadioCast_upload_can'] = 'You <b>can</b> upload new songs in this category'; $lang['RadioCast_upload_cannot'] = 'You <b>cannot</b> upload new songs in this category'; $lang['RadioCast_rate_can'] = 'You <b>can</b> rate songs in this category'; $lang['RadioCast_rate_cannot'] = 'You <b>cannot</b> rate songs in this category'; $lang['RadioCast_comment_can'] = 'You <b>can</b> post comments to songs in this category'; $lang['RadioCast_comment_cannot'] = 'You <b>cannot</b> post comments to songs in this category'; $lang['RadioCast_edit_can'] = 'You <b>can</b> edit your songs and comments in this category'; $lang['RadioCast_edit_cannot'] = 'You <b>cannot</b> edit your songs and comments in this category'; $lang['RadioCast_delete_can'] = 'You <b>can</b> delete your songs and comments in this category'; $lang['RadioCast_delete_cannot'] = 'You <b>cannot</b> delete your songs and comments in this category'; $lang['RadioCast_moderate_can'] = 'You <b>can</b> %smoderate%s this category'; $lang['Edit_station'] = 'Edit'; $lang['Delete_station'] = '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['Station_url'] = 'Station URL'; $lang['Station_Desc'] = 'Station Description'; $lang['Plain_text_only'] = 'Plain text only'; $lang['Max_length'] = 'Max length (bytes)'; $lang['Add_station_from_machine'] = 'Add station file from your PC'; $lang['Post_Station'] = 'Post Station'; $lang['Add_to_Category'] = 'Add to Category'; $lang['Add_no_title'] = 'You missed the song title'; $lang['Add_no_file'] = 'You must enter the path of station'; $lang['Upload_no_file'] = 'You must enter the path of station file'; $lang['Add_both_file'] = 'You can just choose 1 in 2 way Upload or Link URL'; $lang['Upload_both_file'] = 'You can just choose 1 in 2 way Upload or Link URL'; $lang['Desc_too_long'] = 'Station lyric is too long'; $lang['Max_file_size'] = 'Maximum file size (bytes)'; $lang['Allowed_file'] = 'These files are allowed'; $lang['RadioCast_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_stations_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_station_title'] = 'You missed the song title'; $lang['Missed_station_url'] = 'You missed the song url'; $lang['RadioCast_add_successful'] = 'Your station has been added successfully'; $lang['RadioCast_add_need_approval'] = 'Your station has been added successfully.<br /><br />But the feature Station Approval has been enabled so your station must be approved by a administrator or a moderator before posting'; $lang['RadioCast_upload_successful'] = 'Your song has been uploaded successfully'; $lang['RadioCast_upload_need_approval'] = 'Your song has been uploaded successfully.<br /><br />But the feature Station Approval has been enabled so your station 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_radiocast_index'] = 'Click %shere%s to return to the Music Index'; // View song $lang['Station_not_exist'] = 'This song does not exits'; // Edit song $lang['Edit_Station_Info'] = 'Edit Station infomation'; $lang['Stations_updated_successfully'] = 'Your song information has been updated successfully'; // Delete song $lang['RadioCast_delete_confirm'] = 'Are you sure to delete these song(s)?'; $lang['Stations_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['Stations_moved_successfully'] = 'Your song(s) have been moved successfully'; $lang['Stations_locked_successfully'] = 'Your song(s) have been locked successfully'; $lang['Stations_unlocked_successfully'] = 'Your song(s) have been unlocked successfully'; $lang['Stations_approved_successfully'] = 'Your song(s) have been approved successfully'; $lang['Stations_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['RadioCast_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['Station_Locked'] = 'Sorry, this song was locked. So you cannot post comment for this song anymore'; // // Station Image // $lang['Station_image'] = 'Station Image'; $lang['Station_image_desc'] = 'The Image of this station<br />(such as Banner, Cover, 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 Station // $lang['Search_station'] = 'Search station'; // auth_key $lang['RadioCast_view_can'] = 'RadioCast_view_can'; $lang['RadioCast_view_cannot'] = 'RadioCast_view_cannot'; $lang['RadioCast_upload_can'] = 'RadioCast_upload_can'; $lang['RadioCast_upload_cannot'] = 'RadioCast_upload_cannot'; $lang['RadioCast_download_can'] = 'RadioCast_download_can'; $lang['RadioCast_download_cannot'] = 'RadioCast_download_cannot'; ?> --- NEW FILE: lang_admin.php --- <?php /** * * @package mxBB Portal Module - mx_radiocast * @version $Id: lang_admin.php,v 1.1 2007/06/06 23:03:56 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['radiocast_config_updated'] = 'Mx RC Configuration Updated Successfully.'; $lang['Click_return_radiocast_config'] = 'Click %sHere%s to return to mx_radiocast Configuration'; $lang['index'] = 'Mx RC Album Index'; $lang['mx_radiocast_admin'] = 'mxBB RC Integration'; $lang['mx_radiocast_admin_explain'] = 'Here, you can do radiocast index and mxBB page mappings.'; $lang['default_pages_title'] = 'mxBB and RC 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 RC module integration is activated, all mx_radiocast URLs will be directed to mxBB pages. If deactivated, radiocast.php will operate "as usual"'; $lang['integration_enabled_yes'] = 'Activate'; $lang['integration_enabled_no'] = 'Do not integrate radiocast.php'; $lang['override'] = 'Associate radiocast.php and mxBB pages'; $lang['override_explain'] = 'All mx_radiocast 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['RadioCast_config'] = 'RadioCast Configuration'; $lang['RadioCast_config_explain'] = 'You can change the general settings of your RadioCast here'; $lang['RadioCast_config_updated'] = 'RadioCast Configuration has been updated successfully'; $lang['Click_return_radiocast_config'] = 'Click %sHere%s to return to the RadioCast Configuration'; $lang['Max_Stations'] = 'Maximum stations for each Category (-1 = unlimited)'; $lang['User_stations_limit'] = 'Stations limit per category for each user (-1 = unlimited)'; $lang['Moderator_stations_limit'] = 'Stations limit per category for each moderator (-1 = unlimited)'; $lang['Stations_Approval'] = 'Stations Approval'; $lang['Rows_per_page'] = 'Number of rows'; $lang['Cols_per_page'] = 'Number of columns'; $lang['Top'] = 'Number of stations on Top Hit List'; $lang['Station_Desc_Max_Length'] = 'Stations 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'; // // Categories // $lang['RadioCast_Categories_Title'] = 'RadioCast Categories Control'; $lang['RadioCast_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_radiocast_category'] = 'Click %sHere%s to return to the RadioCast 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 stations it contained'; $lang['Delete_all_stations'] = 'Delete all stations'; $lang['Category_deleted'] = 'This category has been deleted successfully'; $lang['Category_changed_order'] = 'This category has been changed order successfully'; // // Permissions // $lang['RadioCast_Auth_Title'] = 'RadioCast Permissions'; $lang['RadioCast_Auth_Explain'] = 'Here you can choose which usergroup(s) can be the moderators for each RadioCast category or just has the private access'; $lang['Select_a_Category'] = 'Select a Category'; $lang['Look_up_Category'] = 'Look up Category'; $lang['RadioCast_Auth_successfully'] = 'Auth has been updated successfully'; $lang['Click_return_radiocast_auth'] = 'Click %sHere%s to return to the RadioCast Permissions'; $lang['Upload'] = 'Upload'; $lang['Rate'] = 'Rate'; $lang['Comment'] = 'Comment'; // // Stations Image // $lang['Max_image_size'] = 'Max station image size (bytes)'; $lang['Max_image_width'] = 'Max station image width (pixel)'; $lang['Max_image_height'] = 'Max station image height (pixel)'; // // That's all Folks! // ----------------------------------------------- ?> |
|
From: OryNider <ory...@us...> - 2007-06-06 23:03:58
|
Update of /cvsroot/mxbb/mx_radiocast/language In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv1615/language Added Files: index.html Log Message: --- NEW FILE: index.html --- <html> <head> <title>Mx Radio Cast Module</title> </head> <body> <br /><br /><br /><br /><br /><br /><br /> <center><h1><a href="http://mxbb.net/">mxBB-Portal</a></h1></center> </body> |
|
From: OryNider <ory...@us...> - 2007-06-06 23:03:57
|
Update of /cvsroot/mxbb/mx_radiocast/jplayer In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv1615/jplayer Added Files: JOrbisPlayer-0.0.16.2-rsa.jar Log Message: --- NEW FILE: JOrbisPlayer-0.0.16.2-rsa.jar --- (This appears to be a binary file; contents omitted.) |
Update of /cvsroot/mxbb/mx_radiocast/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv1615/includes Added Files: index.html radiocast_add.php radiocast_cat.php radiocast_comment.php radiocast_comment_delete.php radiocast_comment_edit.php radiocast_delete.php radiocast_download.php radiocast_edit.php radiocast_list.php radiocast_modcp.php radiocast_player.php radiocast_rate.php radiocast_station.php radiocast_stream.php Log Message: --- NEW FILE: radiocast_comment.php --- <?php /** * * @package mxBB Portal Module - mx_radiocast * @version $Id: radiocast_comment.php,v 1.1 2007/06/06 23:03:49 orynider Exp $ * @copyright (c) 2007 [ory...@rd..., OryNider] mxBB Development Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ // MX if ( !defined('IN_PORTAL') ) { die("Hacking attempt"); } // // Let's include some stuff... // $phpEx = substr(strrchr(__FILE__, '.'), 1); if ( !defined('TEMPLATE_ROOT_PATH') ) { include_once($mx_root_path . 'common.' . $phpEx); include($phpbb_root_path . 'includes/functions_validate.'.$phpEx); // // Start session management // $mx_user->init($user_ip, PAGE_INDEX); // // End session management // } $radiocast_root_path = $module_root_path . 'radiocast_mod/'; // // Get general radiocast information // include_once($radiocast_root_path . 'radiocast_common.'.$phpEx); // ------------------------------------ // Check feature enabled // ------------------------------------ if( $radiocast_config['comment'] == 0 ) { mx_message_die(GENERAL_MESSAGE, $lang['Not_Authorised']); } // ------------------------------------ // Check the request // ------------------------------------ if( isset($HTTP_GET_VARS['station_id']) ) { $station_id = intval($HTTP_GET_VARS['station_id']); } else if( isset($HTTP_POST_VARS['station_id']) ) { $station_id = intval($HTTP_POST_VARS['station_id']); } else { if( isset($HTTP_GET_VARS['comment_id']) ) { $comment_id = intval($HTTP_GET_VARS['comment_id']); } else if( isset($HTTP_POST_VARS['comment_id']) ) { $comment_id = intval($HTTP_POST_VARS['comment_id']); } else { mx_message_die(GENERAL_ERROR, 'Bad request'); } } // ------------------------------------ // Get $station_id from $comment_id // ------------------------------------ if( isset($comment_id) ) { $sql = "SELECT comment_id, comment_station_id FROM ". RADIOCAST_COMMENT_TABLE ." WHERE comment_id = '$comment_id'"; if( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Could not query comment and station information', '', __LINE__, __FILE__, $sql); } $row = $db->sql_fetchrow($result); if( empty($row) ) { mx_message_die(GENERAL_ERROR, 'This comment does not exist'); } $station_id = $row['comment_station_id']; } // ------------------------------------ // Get this station info // ------------------------------------ $sql = "SELECT s.*, u.user_id, u.username, COUNT(c.comment_id) as comments_count FROM ". RADIOCAST_TABLE ." AS s LEFT JOIN ". USERS_TABLE ." AS u ON s.station_user_id = u.user_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 LIMIT 1"; if( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Could not query station information', '', __LINE__, __FILE__, $sql); } $thisstation = $db->sql_fetchrow($result); $cat_id = $thisstation['station_cat_id']; $user_id = $thisstation['station_user_id']; $total_comments = $thisstation['comments_count']; $comments_per_page = $board_config['posts_per_page']; if( empty($thisstation) ) { mx_message_die(GENERAL_ERROR, $lang['Song_not_exist'] . ' -> ' . $station_id); } // ------------------------------------ // Get the current Category Info // ------------------------------------ $sql = "SELECT * FROM ". RADIOCAST_CAT_TABLE ." WHERE cat_id = '$cat_id'"; if( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Could not query category information', '', __LINE__, __FILE__, $sql); } $thiscat = $db->sql_fetchrow($result); if (empty($thiscat)) { mx_message_die(GENERAL_ERROR, $lang['Category_not_exist']); } // ------------------------------------ // Check the permissions // ------------------------------------ $auth_data = radiocast_user_access($cat_id, $thiscat, 1, 0, 0, 1, 1, 1); if ($auth_data['view'] == 0) { 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; } else { mx_message_die(GENERAL_ERROR, $lang['Not_Authorised']); } } /* +---------------------------------------------------------- | Main work here... +---------------------------------------------------------- */ if( !isset($HTTP_POST_VARS['comment']) ) { /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Comments Screen ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ // ------------------------------------ // Get the comments thread // Beware: when this script was called with comment_id (without start) // ------------------------------------ if( !isset($comment_id) ) { if( isset($HTTP_GET_VARS['start']) ) { $start = intval($HTTP_GET_VARS['start']); } else if( isset($HTTP_POST_VARS['start']) ) { $start = intval($HTTP_POST_VARS['start']); } else { $start = 0; } } else { // We must do a query to co-ordinate this comment $sql = "SELECT COUNT(comment_id) AS count FROM ". RADIOCAST_COMMENT_TABLE ." WHERE comment_station_id = $station_id AND comment_id < $comment_id"; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, 'Could not obtain comments information from the database', '', __LINE__, __FILE__, $sql); } $row = $db->sql_fetchrow($result); if( !empty($row) ) { $start = floor( $row['count'] / $comments_per_page ) * $comments_per_page; } else { $start = 0; } } if( isset($HTTP_GET_VARS['sort_order']) ) { switch ($HTTP_GET_VARS['sort_order']) { case 'ASC': $sort_order = 'ASC'; break; default: $sort_order = 'DESC'; } } else if( isset($HTTP_POST_VARS['sort_order']) ) { switch ($HTTP_POST_VARS['sort_order']) { case 'ASC': $sort_order = 'ASC'; break; default: $sort_order = 'DESC'; } } else { $sort_order = 'ASC'; } if ($total_comments > 0) { $limit_sql = ($start == 0) ? $comments_per_page : $start .','. $comments_per_page; $sql = "SELECT c.*, u.user_id, u.username FROM ". RADIOCAST_COMMENT_TABLE ." AS c LEFT JOIN ". USERS_TABLE ." AS u ON c.comment_user_id = u.user_id WHERE c.comment_station_id = '$station_id' ORDER BY c.comment_id $sort_order LIMIT $limit_sql"; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, 'Could not obtain comments information from the database', '', __LINE__, __FILE__, $sql); } $commentrow = array(); while( $row = $db->sql_fetchrow($result) ) { $commentrow[] = $row; } for ($i = 0; $i < count($commentrow); $i++) { if( ($commentrow[$i]['user_id'] == RADIOCAST_GUEST) or ($commentrow[$i]['username'] == '') ) { $poster = ($commentrow[$i]['comment_username'] == '') ? $lang['Guest'] : $commentrow[$i]['comment_username']; } else { $poster = '<a href="'. append_sid($phpbb_root_path . "profile.$phpEx?mode=viewprofile&". POST_USERS_URL .'='. $commentrow[$i]['user_id']) .'">'. $commentrow[$i]['username'] .'</a>'; } if ($commentrow[$i]['comment_edit_count'] > 0) { $sql = "SELECT c.comment_id, c.comment_edit_user_id, u.user_id, u.username FROM ". RADIOCAST_COMMENT_TABLE ." AS c LEFT JOIN ". USERS_TABLE ." AS u ON c.comment_edit_user_id = u.user_id WHERE c.comment_id = '".$commentrow[$i]['comment_id']."' LIMIT 1"; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, 'Could not obtain last edit information from the database', '', __LINE__, __FILE__, $sql); } $lastedit_row = $db->sql_fetchrow($result); $edit_info = ($commentrow[$i]['comment_edit_count'] == 1) ? $lang['Edited_time_total'] : $lang['Edited_times_total']; $edit_info = '<br /><br />» '. sprintf($edit_info, $lastedit_row['username'], create_date($board_config['default_dateformat'], $commentrow[$i]['comment_edit_time'], $board_config['board_timezone']), $commentrow[$i]['comment_edit_count']) .'<br />'; } else { $edit_info = ''; } $template->assign_block_vars('commentrow', array( 'ID' => $commentrow[$i]['comment_id'], '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']), 'EDIT_INFO' => $edit_info, 'EDIT' => ( ( $auth_data['edit'] and ($commentrow[$i]['comment_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_comment_edit&comment_id=". $commentrow[$i]['comment_id'])) .'">'. $lang['Edit_station'] .'</a>' : '', 'DELETE' => ( ( $auth_data['delete'] and ($commentrow[$i]['comment_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_comment_delete&comment_id=". $commentrow[$i]['comment_id'])) .'">'. $lang['Delete_station'] .'</a>' : '' ) ); } $template->assign_block_vars('switch_comment', array()); $template->assign_vars(array( 'PAGINATION' => generate_pagination(append_sid(this_rc_mxurl("radiocast_mode=radiocast_comment&station_id=$station_id&sort_order=$sort_order")), $total_comments, $comments_per_page, $start), 'PAGE_NUMBER' => sprintf($lang['Page_of'], ( floor( $start / $comments_per_page ) + 1 ), ceil( $total_comments / $comments_per_page )) ) ); } // // Start output of page // $page_title = $lang['Radio']; if ( !$is_block ) { include($mx_root_path . 'includes/page_header.'.$phpEx); } $template->set_filenames(array( 'body' => 'radiocast_comment_body.tpl') ); if( ($thisstation['station_user_id'] == RADIOCAST_GUEST) or ($thisstation['username'] == '') ) { $poster = ($thisstation['station_username'] == '') ? $lang['Guest'] : $thisstation['station_username']; } else { $poster = '<a href="'. append_sid($phpbb_root_path . "profile.$phpEx?mode=viewprofile&". POST_USERS_URL .'='. $thisstation['user_id']) .'">'. $thisstation['username'] .'</a>'; } //--------------------------------- // Comment Posting Form //--------------------------------- if ($auth_data['comment'] == 1) { $template->assign_block_vars('switch_comment_post', array()); if( !$userdata['session_logged_in'] ) { $template->assign_block_vars('switch_comment_post.logout', array()); } } $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(this_rc_mxurl("radiocast_mode=radiocast_page&station_id=$station_id")), 'STATION_TITLE' => $thisstation['station_title'], 'SINGER' => nl2br($thisstation['station_singer']), 'POSTER' => $poster, 'STATION_TIME' => create_date($board_config['default_dateformat'], $thisstation['station_time'], $board_config['board_timezone']), 'STATION_VIEW' => $thisstation['station_view_count'], 'STATION_COMMENTS' => $total_comments, 'L_STATION_TITLE' => $lang['Song_Title'], 'L_SINGER' => $lang['Singer'], 'L_POSTER' => $lang['Poster'], 'L_POSTED' => $lang['Posted'], 'L_VIEW' => $lang['View'], 'L_COMMENTS' => $lang['Comments'], 'L_POST_YOUR_COMMENT' => $lang['Post_your_comment'], 'L_MESSAGE' => $lang['Message'], 'L_USERNAME' => $lang['Username'], 'L_COMMENT_NO_TEXT' => $lang['Comment_no_text'], 'L_COMMENT_TOO_LONG' => $lang['Comment_too_long'], 'L_MAX_LENGTH' => $lang['Max_length'], 'S_MAX_LENGTH' => $radiocast_config['desc_length'], 'L_ORDER' => $lang['Order'], 'L_SORT' => $lang['Sort'], 'L_ASC' => $lang['Sort_Ascending'], 'L_DESC' => $lang['Sort_Descending'], 'SORT_ASC' => ($sort_order == 'ASC') ? 'selected="selected"' : '', 'SORT_DESC' => ($sort_order == 'DESC') ? 'selected="selected"' : '', 'L_SUBMIT' => $lang['Submit'], '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_RADIOCAST_ACTION' => append_sid(this_rc_mxurl("radiocast_mode=radiocast_comment&station_id=$station_id")) ) ); // // Generate the page // $template->pparse('body'); if ( !$is_block ) { include($mx_root_path . 'includes/page_tail.'.$phpEx); } } else { /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Comment Submited ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ // ------------------------------------ // Check the permissions: COMMENT // ------------------------------------ if ($auth_data['comment'] == 0) { 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 { mx_message_die(GENERAL_ERROR, $lang['Not_Authorised']); } } $comment_text = str_replace("\'", "''", htmlspecialchars(substr(trim($HTTP_POST_VARS['comment']), 0, $radiocast_config['desc_length']))); $comment_username = (!$userdata['session_logged_in']) ? str_replace("\'", "''", substr(htmlspecialchars(trim($HTTP_POST_VARS['comment_username'])), 0, 32)) : str_replace("'", "''", htmlspecialchars(trim($userdata['username']))); if( empty($comment_text) ) { mx_message_die(GENERAL_ERROR, $lang['Comment_no_text']); } // -------------------------------- // Check station Locked // -------------------------------- if( ($thisstation['station_lock'] == 1) and (!$auth_data['moderator']) ) { mx_message_die(GENERAL_ERROR, $lang['Song_Locked']); } // -------------------------------- // Check username for guest posting // -------------------------------- if (!$userdata['session_logged_in']) { if ($comment_username != '') { $result = validate_username($comment_username); if ( $result['error'] ) { mx_message_die(GENERAL_MESSAGE, $result['error_msg']); } } } // -------------------------------- // Prepare variables // -------------------------------- $comment_time = time(); $comment_user_id = $userdata['user_id']; $comment_user_ip = $userdata['session_ip']; // -------------------------------- // Get $comment_id // -------------------------------- $sql = "SELECT MAX(comment_id) AS max FROM ". RADIOCAST_COMMENT_TABLE; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, 'Could not found comment_id', '', __LINE__, __FILE__, $sql); } $row = $db->sql_fetchrow($result); $comment_id = $row['max'] + 1; // -------------------------------- // Insert into DB // -------------------------------- $sql = "INSERT INTO ". RADIOCAST_COMMENT_TABLE ." (comment_id, comment_station_id, comment_user_id, comment_username, comment_user_ip, comment_time, comment_text) VALUES ('$comment_id', '$station_id', '$comment_user_id', '$comment_username', '$comment_user_ip', '$comment_time', '$comment_text')"; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, 'Could not insert new entry', '', __LINE__, __FILE__, $sql); } // -------------------------------- // Complete... now send a message to user // -------------------------------- $template->assign_vars(array( 'META' => '<meta http-equiv="refresh" content="3;url=' . append_sid(this_rc_mxurl("radiocast_mode=radiocast_comment&comment_id=$comment_id")) . '#'.$comment_id.'">') ); $message = $lang['Stored'] . "<br /><br />" . sprintf($lang['Click_view_message'], "<a href=\"" . append_sid(this_rc_mxurl("radiocast_mode=radiocast_comment&comment_id=$comment_id")) . "#$comment_id\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_radiocast_index'], "<a href=\"" . append_sid(this_rc_mxurl()) . "\">", "</a>"); mx_message_die(GENERAL_MESSAGE, $message); } ?> --- NEW FILE: radiocast_player.php --- <?php /** * * @package mxBB Portal Module - mx_radiocast * @version $Id: radiocast_player.php,v 1.1 2007/06/06 23:03:52 orynider Exp $ * @copyright (c) 2007 [ory...@rd..., OryNider] mxBB Development Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ /*********************************************************************** * MODIFICATIONS * --------------- * started : Saturday, January 18, 2004 * copyright : © Cf Manager * web : http://cfmanager.net.tf * version : 2.0.5 * * Credits: * -modified for mx_radiocast by OryNider * ************************************************************************/ // MX if ( !defined('IN_PORTAL') ) { die("Hacking attempt"); } // // 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/'; $station_image_path = RADIOCAST_IMAGE_UPLOAD_PATH; $station_image_default = $mx_images['no_image']; // The default image // // Get general radiocast information // include_once($radiocast_root_path . 'radiocast_common.'.$phpEx); // ------------------------------------ // Check the request // ------------------------------------ if( isset($HTTP_GET_VARS['station_id']) ) { $station_id = intval($HTTP_GET_VARS['station_id']); } else if( isset($HTTP_POST_VARS['station_id']) ) { $station_id = intval($HTTP_POST_VARS['station_id']); } else { mx_message_die(GENERAL_ERROR, 'No station_id set'); } if( isset($HTTP_GET_VARS['block_mode']) ) { if ($HTTP_GET_VARS['block_mode'] == 'true') { $block_mode = 'true'; } else { $block_mode = 'false'; } } else { $block_mode = 'false'; } if( isset($HTTP_GET_VARS['player_mode']) ) { if ($HTTP_GET_VARS['player_mode'] == 'media') { $player_mode = 'media'; } elseif ($HTTP_GET_VARS['player_mode'] == 'real') { $player_mode = 'real'; } } else { $player_mode = 'media'; } if( isset($HTTP_GET_VARS['stream_mode']) ) { if ($HTTP_GET_VARS['stream_mode'] == 'forced') { $stream_mode = 'forced'; } elseif ($HTTP_GET_VARS['stream_mode'] == 'direct') { $stream_mode = 'direct'; } } else { $stream_mode = 'direct'; } // ------------------------------------ // PREVIOUS & NEXT // ------------------------------------ if( isset($HTTP_GET_VARS['mode']) ) { if( ($HTTP_GET_VARS['mode'] == 'next') or ($HTTP_GET_VARS['mode'] == 'previous') ) { $sql = "SELECT station_id, station_cat_id, station_user_id FROM ". RADIOCAST_TABLE ." WHERE station_id = $station_id"; if( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Could not query station information', '', __LINE__, __FILE__, $sql); } $row = $db->sql_fetchrow($result); if( empty($row) ) { mx_message_die(GENERAL_ERROR, 'Bad station_id'); } $sql = "SELECT new.station_id, new.station_time FROM ". RADIOCAST_TABLE ." AS new, ". RADIOCAST_TABLE ." AS cur WHERE cur.station_id = $station_id AND new.station_id <> cur.station_id AND new.station_cat_id = cur.station_cat_id"; $sql .= ($HTTP_GET_VARS['mode'] == 'next') ? " AND new.station_time >= cur.station_time" : " AND new.station_time <= cur.station_time"; $sql .= ($HTTP_GET_VARS['mode'] == 'next') ? " ORDER BY station_time ASC LIMIT 1" : " ORDER BY station_time DESC LIMIT 1"; if( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Could not query station information', '', __LINE__, __FILE__, $sql); } $row = $db->sql_fetchrow($result); if( empty($row) ) { mx_message_die(GENERAL_ERROR, $lang['Station_not_exist']); } $station_id = $row['station_id']; // NEW station_id } } // ------------------------------------ // Get this station info // ------------------------------------ $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 station information', '', __LINE__, __FILE__, $sql); } $thisstation = $db->sql_fetchrow($result); $cat_id = $thisstation['station_cat_id']; $user_id = $thisstation['station_user_id']; if( empty($thisstation['station_url']) && !file_exists(RADIOCAST_UPLOAD_PATH . $thisstation['station_filename']) ) { mx_message_die(GENERAL_ERROR, $lang['Station_not_exist']); } if ( $thisstation['station_imagename'] == '' ) { $img_id = $station_image_default; } else { $img_id = ( $station_image_path . $thisstation['station_imagename'] ); } function mx_radiocast_sitesufix($domain) { $domaintmp = explode(".", $domain); $y = count($domaintmp) - 1; $r = $domaintmp[$y];; return $r; } 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'] : '' ); } elseif ( substr($thisstation['station_url'], strlen($thisstation['station_url']) - 3, 3) == '' ) { $sitesufix = mx_radiocast_sitesufix($thisstation['station_url']); $station_filetype = '.' . $sitesufix; $station_url = $thisstation['station_url']; } else { $station_filetype = substr($thisstation['station_url'], strlen($thisstation['station_url']) - 3, 3); $station_url = $thisstation['station_url']; } // ------------------------------------ // Get the current Category Info // ------------------------------------ $sql = "SELECT * FROM ". RADIOCAST_CAT_TABLE ." WHERE cat_id = '$cat_id'"; if( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Could not query category information', '', __LINE__, __FILE__, $sql); } $thiscat = $db->sql_fetchrow($result); if (empty($thiscat)) { mx_message_die(GENERAL_ERROR, $lang['Category_not_exist']); } // ------------------------------------ // Check the permissions // ------------------------------------ $radiocast_user_access = radiocast_user_access($cat_id, $thiscat, 1, 0, 0, 0, 0, 0); // UPLOAD if ($radiocast_user_access['view'] == 0) { 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 { mx_message_die(GENERAL_ERROR, $lang['Not_Authorised']); } } // ------------------------------------ // Check station Approval // ------------------------------------ if ($userdata['user_level'] != ADMIN) { if( ($thiscat['cat_approval'] == ADMIN) or (($thiscat['cat_approval'] == MOD) and !$radiocast_user_access['moderator']) ) { if ($thisstation['station_approval'] != 1) { mx_message_die(GENERAL_ERROR, $lang['Not_Authorised']); } } } // ------------------------------------ // Increase view counter // ------------------------------------ $sql = "UPDATE ". RADIOCAST_TABLE ." SET station_view_count = station_view_count + 1 WHERE station_id = '$station_id'"; if( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Could not update station information', '', __LINE__, __FILE__, $sql); } /* +---------------------------------------------------------- | Main work here... +---------------------------------------------------------- */ // // Start output of page // $page_title = $lang['Radio']; if ( (!$is_block) && (!$block_mode) ) { include($mx_root_path . 'includes/page_header.'.$phpEx); } $template->set_filenames(array( 'body' => 'radiocast_player_body.tpl') ); if( ($thisstation['station_user_id'] == RADIOCAST_GUEST) or ($thisstation['username'] == '') ) { $poster = ($thisstation['station_username'] == '') ? $lang['Guest'] : $thisstation['station_username']; } else { $poster = '<a href="'. append_sid($phpbb_root_path . "profile.$phpEx?mode=viewprofile&". POST_USERS_URL .'='. $thisstation['user_id']) .'">'. $thisstation['username'] .'</a>'; } if ($radiocast_config['rate']) { $template->assign_block_vars('rate_switch', array()); } if ($radiocast_config['comment']) { $template->assign_block_vars('comment_switch', array()); } if ($radiocast_config['download']) { $template->assign_block_vars('download_switch', array()); } // // Media Center // if ( ($station_filetype == 'swf') or ($station_filetype == '.swf') ) { $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']; } else if ( $station_filetype == 'ram' ) { $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; } else if ( $station_filetype == '.rm' ) { $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; } else if ( $station_filetype == '.qt' ) { $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; } else if ( ($station_filetype == 'ogg') or ($station_filetype == '.ogg') ) { $template->assign_block_vars('ogg', array()); if ( $thisstation['station_url'] == '' ) { $url_download = append_sid(this_rc_mxurl("radiocast_mode=radiocast_download&station_id=$station_id")); $url_video = $url_download; } else { $lang['Download'] = ( !empty($lang['Listen']) ? $lang['Listen'] : 'Listen URL' ); $url_download = $thisstation['station_url']; $url_video = $url_download; $media_width = '480'; } } else if ($stream_mode == 'forced') { $template->assign_block_vars('realandmedia', array()); if ($player_mode == 'real') { $template->assign_block_vars('real', array()); } elseif ($player_mode == 'media') { $template->assign_block_vars('media', array()); } else { $template->assign_block_vars('media', array()); } 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); $lang['Download'] = ( !empty($lang['Listen']) ? $lang['Listen'] : 'Listen URL' ); $url_video = $url_download; } else { //$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_video = $url_download; } } else { $template->assign_block_vars('realandmedia', array()); if ($player_mode == 'real') { $template->assign_block_vars('real', array()); } elseif ($player_mode == 'media') { $template->assign_block_vars('media', array()); } else { $template->assign_block_vars('media', array()); } 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); $lang['Download'] = ( !empty($lang['Listen']) ? $lang['Listen'] : 'Listen URL' ); $url_video = $url_download; } else { if( !empty($thisstation['station_url']) ) { $url_download = append_sid($thisstation['station_url']); } else { $url_download = append_sid(this_rc_mxurl("radiocast_mode=radiocast_download&station_id=" . $station_id)); } $lang['Download'] = ( !empty($lang['Listen']) ? $lang['Listen'] : 'Listen URL' ); $url_video = $url_download; } } //$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)); $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)); $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)); $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)); $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'); $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, 'U_WINDOW' => $url_window, 'U_WMP' => $url_media, 'U_REAL' => $url_real, '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'], 'STATION_URL' => $thisstation['station_url'], 'VIDEO_URL' => $url_video, 'STATION_DESC' => nl2br($thisstation['station_desc']), 'SINGER' => $thisstation['station_singer'], 'POSTER' => $poster, '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'], 'STATION_DOWNLOAD' => ( !empty($thisstation['station_download_count']) ? $thisstation['station_download_count'] : '0' ), 'STATION_RATING' => ($thisstation['rating'] != 0) ? round($thisstation['rating'], 2) : $lang['Not_rated'], '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'], 'L_PREVIOUS' => $lang['Previous'], 'NAV_SEP' => $lang['Nav_Separator'], 'NAV_DOT' => '•', '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_portalurl()), 'U_MX_RADIOCAST' => append_sid(this_rc_portalurl()), 'WIDTH' => ( !empty($media_width) ? $media_width : '320' ), 'HEIGHT' => ( !empty($media_height) ? $media_height : '300' ), 'L_RATING' => $lang['Rating'], 'L_STATION_TITLE' => $lang['Station_Title'], 'L_STATION_DESC' => $lang['Station_Desc'], 'L_SINGER' => $lang['Singer'], 'L_POSTER' => $lang['Poster'], 'L_POSTED' => $lang['Posted'], 'L_VIEW' => $lang['View'], 'L_DOWNLOAD' => $lang['Download'], 'L_COMMENTS' => $lang['Comments']) ); // // Generate the page // $template->pparse('body'); if ( (!$is_block) && (!$block_mode) ) { include($mx_root_path . 'includes/page_tail.'.$phpEx); } ?> --- NEW FILE: radiocast_add.php --- <?php /** * * @package mxBB Portal Module - mx_radiocast * @version $Id: radiocast_add.php,v 1.1 2007/06/06 23:03:48 orynider Exp $ * @copyright (c) 2007 [ory...@rd..., OryNider] mxBB Development Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ // MX if ( !defined('IN_PORTAL') ) { die("Hacking attempt"); } // // 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/'; $station_image_path = RADIOCAST_IMAGE_UPLOAD_PATH; // // Get general music information // include_once($radiocast_root_path . 'radiocast_common.'.$phpEx); /* +---------------------------------------------------------- | Common Check +---------------------------------------------------------- */ // ------------------------------------ // Check the request // for this Upload script, we prefer POST to GET // ------------------------------------ if( isset($HTTP_POST_VARS['cat_id']) ) { $cat_id = intval($HTTP_POST_VARS['cat_id']); } else if( isset($HTTP_GET_VARS['cat_id']) ) { $cat_id = intval($HTTP_GET_VARS['cat_id']); } else { mx_message_die(GENERAL_ERROR, 'No categories specified'); } // ------------------------------------ // Get the current Category Info // ------------------------------------ $sql = "SELECT c.*, COUNT(s.station_id) AS count FROM ". RADIOCAST_CAT_TABLE ." AS c LEFT JOIN ". RADIOCAST_TABLE ." AS s ON c.cat_id = s.station_cat_id WHERE c.cat_id = '$cat_id' GROUP BY c.cat_id LIMIT 1"; if( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Could not query category information', '', __LINE__, __FILE__, $sql); } $thiscat = $db->sql_fetchrow($result); $current_stations = $thiscat['count']; if (empty($thiscat)) { mx_message_die(GENERAL_ERROR, $lang['Category_not_exist']); } // ------------------------------------ // Check the permissions // ------------------------------------ $radiocast_user_access = radiocast_user_access($cat_id, $thiscat, 0, 1, 0, 0, 0, 0); // UPLOAD if ($radiocast_user_access['upload'] == 0) { if (!$userdata['session_logged_in']) { mx_redirect(append_sid($mx_root_path . "login.php?redirect=" . this_rc_loginurl("radiocast_mode=radiocast_add&cat_id=$cat_id"), true)); } else { mx_message_die(GENERAL_ERROR, $lang['Not_Authorised']); } } /* +---------------------------------------------------------- | Upload Quota Check +---------------------------------------------------------- */ // ------------------------------------ // Check music Configuration Quota // ------------------------------------ if ($radiocast_config['max_stations'] >= 0) { // // $current_stations was set at "Get the current Category Info" // if( $current_stations >= $radiocast_config['max_stations'] ) { mx_message_die(GENERAL_MESSAGE, $lang['RadioCast_reached_quota']); } } // ------------------------------------ // Check User Limit // ------------------------------------ $check_user_limit = FALSE; if( ($userdata['user_level'] != ADMIN) and ($userdata['session_logged_in']) ) { if ($radiocast_user_access['moderator']) { if ($radiocast_config['mod_stations_limit'] >= 0) { $check_user_limit = 'mod_stations_limit'; } } else { if ($radiocast_config['user_stations_limit'] >= 0) { $check_user_limit = 'user_stations_limit'; } } } // Do the check here if ($check_user_limit != FALSE) { $sql = "SELECT COUNT(station_id) AS count FROM ". RADIOCAST_TABLE ." WHERE station_user_id = '". $userdata['user_id'] ."' AND station_cat_id = '$cat_id'"; if( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Could not count your station', '', __LINE__, __FILE__, $sql); } $row = $db->sql_fetchrow($result); $own_stations = $row['count']; if( $own_stations >= $radiocast_config[$check_user_limit] ) { mx_message_die(GENERAL_MESSAGE, $lang['User_reached_stations_quota']); } } /* +---------------------------------------------------------- | Main work here... +---------------------------------------------------------- */ if( !isset($HTTP_POST_VARS['station_title']) ) // is it not submitted? { // -------------------------------- // Build categories select // -------------------------------- $sql = "SELECT * FROM " . RADIOCAST_CAT_TABLE ." ORDER BY cat_order ASC"; if( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Could not query categories list', '', __LINE__, __FILE__, $sql); } $catrows = array(); while( $row = $db->sql_fetchrow($result) ) { $thiscat_access = radiocast_user_access($row['cat_id'], $row, 0, 1, 0, 0, 0, 0); // UPLOAD if ($thiscat_access['upload'] == 1) { $catrows[] = $row; } } $select_cat = '<select name="cat_id">'; for ($i = 0; $i < count($catrows); $i++) { $select_cat .= '<option value="'. $catrows[$i]['cat_id'] .'" '; $select_cat .= ($cat_id == $catrows[$i]['cat_id']) ? 'selected="selected"' : ''; $select_cat .= '>'. $catrows[$i]['cat_title'] .'</option>'; } $select_cat .= '</select>'; // // Start output of page // $page_title = $lang['Radio']; if ( !$is_block ) { include($mx_root_path . 'includes/page_header.'.$phpEx); } $template->set_filenames(array( 'body' => 'radiocast_add_body.tpl') ); $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_ADD_STATION' => $lang['Add_Station'], 'L_USERNAME' => $lang['Username'], 'L_STATION_TITLE' => $lang['Station_Title'], 'L_STATION_URL' => $lang['Station_url'], 'L_STATION_DESC' => $lang['Station_Desc'], 'L_SINGER' => $lang['Singer'], 'L_PLAIN_TEXT_ONLY' => $lang['Plain_text_only'], 'L_MAX_LENGTH' => $lang['Max_length'], 'S_STATION_DESC_MAX_LENGTH' => $radiocast_config['desc_length'], 'L_ADD_STATION_FROM_MACHINE' => $lang['Add_station_from_machine'], 'L_STATION_IMAGE' => $lang['Station_image'], 'L_STATION_IMAGE_DESC' => $lang['Station_image_desc'], 'L_NO_IMAGE' => $lang['No_image'], 'L_ADD_IMAGE' => $lang['Upload_image'], 'L_ADD_TO_CATEGORY' => $lang['Add_to_Category'], 'SELECT_CAT' => $select_cat, 'L_MAX_FILESIZE' => $lang['Max_file_size'], 'S_MAX_FILESIZE' => $radiocast_config['max_file_size'], // Media Center 'L_ALLOWED_FILE' => $lang['Allowed_file'], 'S_MP3' => ($radiocast_config['mp3_allowed'] == 1) ? 'MP3,' : '', 'S_WAV' => ($radiocast_config['wav_allowed'] == 1) ? 'WAV,' : '', 'S_WMA' => ($radiocast_config['wma_allowed'] == 1) ? 'WMA,' : '', 'S_WMV' => ($radiocast_config['wmv_allowed'] == 1) ? 'WMV,' : '', 'S_MIDI' => ($radiocast_config['mid_allowed'] == 1) ? 'MIDI,' : '', 'S_RAM' => ($radiocast_config['ram_allowed'] == 1) ? 'RAM,' : '', 'S_AU' => ($radiocast_config['au_allowed'] == 1) ? 'AU,' : '', 'S_MPEG' => ($radiocast_config['mpeg_allowed'] == 1) ? 'MPEG,' : '', 'S_AVI' => ($radiocast_config['avi_allowed'] == 1) ? 'AVI,' : '', 'S_SWF' => ($radiocast_config['swf_allowed'] == 1) ? 'SWF,' : '', 'S_QT' => ($radiocast_config['qt_allowed'] == 1) ? 'QT,' : '', 'S_RM' => ($radiocast_config['rm_allowed'] == 1) ? 'RM,' : '', // Media Center 'L_ADD_NO_TITLE' => $lang['Add_no_title'], 'L_ADD_NO_FILE' => $lang['Upload_no_file'], 'L_ADD_BOTH_FILE' => $lang['Upload_both_file'], 'L_DESC_TOO_LONG' => $lang['Desc_too_long'], 'L_RESET' => $lang['Reset'], 'L_SUBMIT' => $lang['Submit'], 'NAV_SEP' => $lang['Nav_Separator'], 'NAV_DOT' => '•', '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()), 'S_RADIOCAST_ACTION' => append_sid(this_rc_mxurl("radiocast_mode=radiocast_add&cat_id=" . $cat_id)), ) ); // // Generate the page // $template->pparse('body'); if ( !$is_block ) { include($mx_root_path . 'includes/page_tail.'.$phpEx); } } else { // -------------------------------- // Check posted info // -------------------------------- $station_title = str_replace("\'", "''", htmlspecialchars(trim($HTTP_POST_VARS['station_title']))); $station_url = str_replace("\'", "''", htmlspecialchars(trim($HTTP_POST_VARS['station_url']))); $image_system = str_replace("\'", "''", htmlspecialchars(trim($HTTP_POST_VARS['image_system']))); $station_desc = str_replace("\'", "''", htmlspecialchars(substr(trim($HTTP_POST_VARS['station_desc']), 0, $radiocast_config['desc_length']))); $station_singer = str_replace("\'", "''", htmlspecialchars(trim($HTTP_POST_VARS['station_singer']))); $station_username = (!$userdata['session_logged_in']) ? substr(str_replace("\'", "''", htmlspecialchars(trim($HTTP_POST_VARS['station_username']))), 0, 32) : str_replace("'", "''", $userdata['username']); if( empty($station_title) ) { mx_message_die(GENERAL_ERROR, $lang['Missed_station_title']); } // -------------------------------- // Check username for guest posting // -------------------------------- if (!$userdata['session_logged_in']) { if ($station_username != '') { $result = validate_username($station_username); if ( $result['error'] ) { mx_message_die(GENERAL_MESSAGE, $result['error_msg']); } } } // -------------------------------- // Get File Upload Info // -------------------------------- $filetype = ( !empty($HTTP_POST_FILES['station_file']['type']) ) ? $HTTP_POST_FILES['station_file']['type'] : $HTTP_POST_VARS['station_url']['type']; $filesize = ( !empty($HTTP_POST_FILES['station_file']['size']) ) ? $HTTP_POST_FILES['station_file']['size'] : $HTTP_POST_VARS['station_url']['size']; $filetmp = ( !empty($HTTP_POST_FILES['station_file']['tmp_name']) ) ? $HTTP_POST_FILES['station_file']['tmp_name'] : $HTTP_POST_VARS['station_url']['tmp_name']; // -------------------------------- // Get Station Image Upload Info // -------------------------------- $imagetype = ( !empty($HTTP_POST_FILES['station_image']['type']) ) ? $HTTP_POST_FILES['station_image']['type'] : ''; $imagesize = ( !empty($HTTP_POST_FILES['station_image']['size']) ) ? $HTTP_POST_FILES['station_image']['size'] : 0; $imagetmp = ( !empty($HTTP_POST_FILES['station_image']['tmp_name']) ) ? $HTTP_POST_FILES['station_image']['tmp_name'] : ''; // -------------------------------- // Check image size // -------------------------------- if( $image_system == '1' ) { if( $imagesize > $radiocast_config['max_image_size'] ) { mx_message_die(GENERAL_MESSAGE, $lang['Bad_upload_image_size']); } } // -------------------------------- // Check image type // -------------------------------- if( $image_system == '1' ) { switch ($imagetype) { case 'image/jpeg': case 'image/jpg': case 'image/pjpeg': $station_imagetype = '.jpg'; break; case 'image/gif': $station_imagetype = '.gif'; break; case 'image/png': case 'image/x-png': $station_imagetype = '.png'; break; default: mx_message_die(GENERAL_ERROR, $lang['Not_allowed_image_type']); } } // -------------------------------- // Prepare variables // -------------------------------- $station_time = time(); $station_user_id = $userdata['user_id']; $station_user_ip = $userdata['session_ip']; // -------------------------------- // Check file size // -------------------------------- if( empty($station_url) ) { if( ($filesize == 0) or ($filesize > $radiocast_config['max_file_size']) ) { mx_message_die(GENERAL_MESSAGE, $lang['Bad_upload_file_size']); } } // -------------------------------- // Check file type // -------------------------------- 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 } } // -------------------------------- // Generate filename // -------------------------------- srand((double)microtime()*1000000); // for older than version 4.2.0 of PHP do { $station_filename = md5(uniqid(rand())) . $station_filetype; } while( file_exists(RADIOCAST_UPLOAD_PATH . $station_filename) ); // -------------------------------- // Generate imagename // -------------------------------- if( $image_system == '1' ) { do { $station_imagename = md5(uniqid(rand())) . $station_imagetype; } while( file_exists($station_image_path . $station_imagename) ); } else { $station_imagename = ''; } // -------------------------------- // Move this file to upload directory // -------------------------------- if( empty($station_url) ) { $ini_val = ( @phpversion() >= '4.0.0' ) ? 'ini_get' : 'get_cfg_var'; if ( @$ini_val('open_basedir') != '' ) { if ( @phpversion() < '4.0.3' ) { mx_message_die(GENERAL_ERROR, 'open_basedir is set and your PHP version does not allow move_uploaded_file<br /><br />Please contact your server admin', '', __LINE__, __FILE__); } $move_file = 'move_uploaded_file'; } else { $move_file = 'copy'; } $move_file($filetmp, RADIOCAST_UPLOAD_PATH . $station_filename); @chmod(RADIOCAST_UPLOAD_PATH . $station_filename, 0777); } // -------------------------------- // Move Station image to directory // -------------------------------- if( $image_system == '1' ) { if( !empty($HTTP_POST_FILES['station_image']['tmp_name']) ) { $ini_val = ( @phpversion() >= '4.0.0' ) ? 'ini_get' : 'get_cfg_var'; if ( @$ini_val('open_basedir') != '' ) { if ( @phpversion() < '4.0.3' ) { mx_message_die(GENERAL_ERROR, 'open_basedir is set and your PHP version does not allow move_uploaded_file<br /><br />Please contact your server admin', '', __LINE__, __FILE__); } $move_file = 'move_uploaded_file'; } else { $move_file = 'copy'; } $move_file($imagetmp, $station_image_path . $station_imagename); @chmod($station_image_path . $station_imagename, 0777); } } // -------------------------------- // Check its image size // -------------------------------- if( $image_system == '1' ) { if( !empty($HTTP_POST_FILES['station_image']['size']) ) { $image_size = getimagesize($station_image_path . $station_imagename); $image_width = $image_size[0]; $image_height = $image_size[1]; if ( ($image_width > $radiocast_config['max_image_width']) or ($image_height > $radiocast_config['max_image_height']) ) { @unlink($station_image_path . $station_imagename); mx_message_die(GENERAL_ERROR, 'Your uploaded image size is too big'); } } } // -------------------------------- // Check Station Approval // -------------------------------- $station_approval = ($thiscat['cat_approval'] == 0) ? 1 : 0; // -------------------------------- // Insert into DB // -------------------------------- $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) ) { mx_message_die(GENERAL_ERROR, 'Could not insert new entry', '', __LINE__, __FILE__, $sql3); } // -------------------------------- // Complete... now send a message to user // -------------------------------- if ($thiscat['cat_approval'] == 0) { $message = $lang['RadioCast_add_successful']; } else { $message = $lang['RadioCast_add_need_approval']; } if ($thiscat['cat_approval'] == 0) { $template->assign_vars(array( 'META' => '<meta http-equiv="refresh" content="3;url=' . append_sid(this_rc_mxurl("radiocast_mode=radiocast_cat&cat_id=$cat_id")) . '">') ); } //$message .= $sql3; $message .= "<br /><br />" . sprintf($lang['Click_return_category'], "<a href=\"" . append_sid(this_rc_mxurl("radiocast_mode=radiocast_cat&cat_id=$cat_id")) . "\">", "</a>"); $message .= "<br /><br />" . sprintf($lang['Click_return_radiocast_index'], "<a href=\"" . append_sid(this_rc_mxurl()) . "\">", "</a>"); mx_message_die(GENERAL_MESSAGE, $message); } ?> --- NEW FILE: radiocast_station.php --- <?php /** * * @package mxBB Portal Module - mx_radiocast * @version $Id: radiocast_station.php,v 1.1 2007/06/06 23:03:53 orynider Exp $ * @copyright (c) 2007 [ory...@rd..., OryNider] mxBB Development Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ // MX if ( !defined('IN_PORTAL') ) { die("Hacking attempt"); } // // 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); // ------------------------------------ // Check the request // ------------------------------------ if( isset($HTTP_GET_VARS['station_id']) ) { $station_id = intval($HTTP_GET_VARS['station_id']); } else if( isset($HTTP_POST_VARS['station_id']) ) { $station_id = intval($HTTP_POST_VARS['station_id']); } else { die('No stations specified'); } if( isset($HTTP_GET_VARS['player_mode']) ) { if ($HTTP_GET_VARS['player_mode'] == 'media') { $player_mode = 'media'; } elseif ($HTTP_GET_VARS['player_mode'] == 'real') { $player_mode = 'real'; } } else { $player_mode = 'media'; } if( isset($HTTP_GET_VARS['stream_mode']) ) { if ($HTTP_GET_VARS['stream_mode'] == 'forced') { $stream_mode = 'forced'; } elseif ($HTTP_GET_VARS['stream_mode'] == 'direct') { $stream_mode = 'direct'; } } else { $stream_mode = 'direct'; } // ------------------------------------ // Get this station info // ------------------------------------ $sql = "SELECT * FROM ". RADIOCAST_TABLE ." WHERE station_id = '$station_id'"; if( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Could not query station information', '', __LINE__, __FILE__, $sql); } $thisstation = $db->sql_fetchrow($result); $cat_id = $thisstation['station_cat_id']; $user_id = $thisstation['station_user_id']; if ( $thisstation['station_url'] == '' ) { $station_filetype = substr($thisstation['station_filename'], strlen($thisstation['station_filename']) - 3, 3); $station_filename = $thisstation['station_filename']; } else { $station_filetype = substr($thisstation['station_url'], strlen($thisstation['station_url']) - 3, 3); $station_url = $thisstation['station_url']; } // ------------------------------------ // Get the current Category Info // ------------------------------------ $sql = "SELECT * FROM ". RADIOCAST_CAT_TABLE ." WHERE cat_id = '$cat_id'"; if( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Could not query category information', '', __LINE__, __FILE__, $sql); } $thiscat = $db->sql_fetchrow($result); if (empty($thiscat)) { die($lang['Category_not_exist']); } // ------------------------------------ // Check the permissions // ------------------------------------ $radiocast_user_access = radiocast_user_access($cat_id, $thiscat, 1, 0, 0, 0, 0, 0); // VIEW if ($radiocast_user_access['view'] == 0) { die($lang['Not_Authorised']); } // ------------------------------------ // Check station Approval // ------------------------------------ if ($userdata['user_level'] != ADMIN) { if( ($thiscat['cat_approval'] == ADMIN) or (($thiscat['cat_approval'] == MOD) and !$radiocast_user_access['moderator']) ) { if ($thisstation['station_approval'] != 1) { die($lang['Not_Authorised']); } } } // ------------------------------------ // Check hotlink // ------------------------------------ if( ($radiocast_config['hotlink_prevent'] == 1) and (isset($HTTP_SERVER_VARS['HTTP_REFERER'])) ) { $check_referer = explode('?', $HTTP_SERVER_VARS['HTTP_REFERER']); $check_referer = trim($check_referer[0]); $good_referers = array(); if ($radiocast_config['hotlink_allowed'] != '') { $good_referers = explode(',', $radiocast_config['hotlink_allowed']); } $good_referers[] = $board_config['server_name'] . $board_config['script_path']; $errored = TRUE; for ($i = 0; $i < count($good_referers); $i++) { $good_referers[$i] = trim($good_referers[$i]); if( (strstr($check_referer, $good_referers[$i])) and ($good_referers[$i] != '') ) { $errored = FALSE; } } if ($errored) { die($lang['Not_Authorised']); } } /* +---------------------------------------------------------- | Main work here... +---------------------------------------------------------- */ // ------------------------------------ // Send the station // ------------------------------------ if ( $thisstation['station_url'] == '' ) { switch ( $station_filetype ) { case 'mp3': header('Content-type: audio/mp3'); break; case 'wav': header('Content-type: audio/wav'); break; case 'wma': header('Content-type: audio/x-ms-wma'); break; case 'wmv': header('Content-type: video/x-ms-wmv'); break; case 'peg': header('Content-type: video/mpeg'); break; case 'avi': header('Content-type: video/x-msvideo'); break; case 'swf': header('Content-type: application/x-shockwave-flash'); break; case '.au': header('Content-type: audio/basic'); break; case 'mid': header('Content-type: audio/mid'); break; case '.qt': header('Content-type: video/quicktime'); break; case 'ram': header('Content-type: audio/x-pn-realaudio'); ... [truncated message content] |
|
From: OryNider <ory...@us...> - 2007-06-06 23:03:51
|
Update of /cvsroot/mxbb/mx_radiocast/admin In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv1615/admin Added Files: admin_radio_auth.php admin_radio_cat.php admin_radio_cfg.php admin_radio_ext.php index.html Log Message: --- NEW FILE: admin_radio_ext.php --- <?php /** * * @package mxBB Portal Module - mx_radiocast * @version $Id: admin_radio_ext.php,v 1.1 2007/06/06 23:03:47 orynider Exp $ * @copyright (c) 2002-2006 [Markus, Jon Ohlsson] mxBB Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ define( 'IN_PORTAL', 1 ); if ( !empty( $setmodules ) ) { $file = basename( __FILE__ ); $module['Radio_Cast']['Configuration ext'] = 'modules/mx_radiocast/admin/' . $file; return; } // // Let's set the root dir for phpBB // $module_root_path = '../'; $mx_root_path = '../../../'; $radiocast_root_path = $module_root_path . 'radiocast_mod/'; $phpEx = substr(strrchr(__FILE__, '.'), 1); require($mx_root_path . 'admin/pagestart.' . $phpEx); // // Get general radiocast information // include($radiocast_root_path . 'radiocast_common.'.$phpEx); // include_once( $module_root_path . 'radiocast_mod/radiocast_constants.'.$phpEx ); // ********************************************************************** // Read language definition // ********************************************************************** if ( file_exists( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx ) ) { include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx ); } else if ( file_exists( $module_root_path . 'language/lang_english/lang_admin.' . $phpEx ) ) { include( $module_root_path . 'language/lang_english/lang_admin.' . $phpEx ); } if ( file_exists( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx ) ) { include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx ); } else if ( file_exists( $module_root_path . 'language/lang_english/lang_main.' . $phpEx ) ) { include( $module_root_path . 'language/lang_english/lang_main.' . $phpEx ); } // // Mode setting // $mode = $mx_request_vars->request('mode', MX_TYPE_NO_TAGS, ''); // // Main db settings // Pull all config data // $sql = "SELECT * FROM " . RADIOCAST_CONFIG_TABLE; if ( !$result = $db->sql_query( $sql ) ) { mx_message_die( CRITICAL_ERROR, "Could not query phpbb plugin base configuration information", "", __LINE__, __FILE__, $sql ); } else { while ( $row = $db->sql_fetchrow( $result ) ) { $config_name = $row['config_name']; $config_value = $row['config_value']; $default_config[$config_name] = $config_value; $new[$config_name] = ( isset( $HTTP_POST_VARS[$config_name] ) ) ? $HTTP_POST_VARS[$config_name] : $default_config[$config_name]; if ( isset( $HTTP_POST_VARS['submit'] ) ) { $sql = "UPDATE " . RADIOCAST_CONFIG_TABLE . " SET config_value = '" . str_replace( "\'", "''", $new[$config_name] ) . "' WHERE config_name = '$config_name'"; if ( !$db->sql_query( $sql ) ) { mx_message_die( GENERAL_ERROR, "Failed to update general configuration for $config_name", "", __LINE__, __FILE__, $sql ); } } } $db->sql_freeresult($result); if ( isset( $HTTP_POST_VARS['submit'] ) ) { $message = $lang['radiocast_config_updated'] . "<br /><br />" . sprintf( $lang['Click_return_radiocast_config'], "<a href=\"" . append_sid( "admin_radio_ext.$phpEx" ) . "\">", "</a>" ) . "<br /><br />" . sprintf( $lang['Click_return_admin_index'], "<a href=\"" . append_sid( $mx_root_path . "admin/index.$phpEx?pane=right" ) . "\">", "</a>" ); mx_message_die( GENERAL_MESSAGE, $message ); } } // // Populate parameter variables // $radiocast_index = $new['index']; // $other = $new['other']; $override_default_pages = $new['override_default_pages']; $integration_enabled = $new['enable_integration']; // // Get page_list selects // $pagelist_index = get_list_formatted('page_list', $new['index'], 'index'); // $pagelist_other = get_list_formatted('page_list', $new['other'], 'other'); // // Start page proper // $template->set_filenames( array( "body" => "admin/radiocast_admin_body_ext.tpl" )); $template->assign_vars( array( 'S_RADIOCAST_ACTION' => append_sid( "admin_radio_ext.$phpEx" ), 'L_RADIOCAST_TITLE' => $lang['mx_radiocast_admin'], 'L_RADIOCAST_EXPLAIN' => $lang['mx_radiocast_admin_explain'], 'L_DEFAULT_PAGES_TITLE' => $lang['default_pages_title'], 'L_DEFAULT_PAGES_TITLE_EXPLAIN' => $lang['default_pages_title_explain'], 'L_DEFAULT_PAGES_MORE_TITLE' => $lang['default_pages_more_title'], 'L_DEFAULT_PAGES_MORE_TITLE_EXPLAIN' => $lang['default_pages_more_title_explain'], // // Enable/Disable phpBB integration // 'L_RADIOCAST_INTEGRATION_ENABLED' => $lang['integration_enabled'], 'L_RADIOCAST_INTEGRATION_ENABLED_EXPLAIN' => $lang['integration_enabled_explain'], 'L_RADIOCAST_INTEGRATION_ENABLED_YES' => $lang['integration_enabled_yes'], 'L_RADIOCAST_INTEGRATION_ENABLED_NO' => $lang['integration_enabled_no'], 'RADIOCAST_INTEGRATION_ENABLED_YES' => ( $integration_enabled == '1' ) ? ' checked="checked"' : '', 'RADIOCAST_INTEGRATION_ENABLED_NO' => ( $integration_enabled == '0' ) ? ' checked="checked"' : '', // // Default static settings or block settings // 'L_OVERRIDE_DEFAULT_PAGES' => $lang['override'], 'L_OVERRIDE_DEFAULT_PAGES_EXPLAIN' => $lang['override_explain'], 'L_OVERRIDE_DEFAULT_PAGES_YES' => $lang['override_yes'], 'L_OVERRIDE_DEFAULT_PAGES_NO' => $lang['override_no'], 'OVERRIDE_DEFAULT_PAGES_CHECKBOX_YES' => ( $override_default_pages == '1' ) ? ' checked="checked"' : '', 'OVERRIDE_DEFAULT_PAGES_CHECKBOX_NO' => ( $override_default_pages == '0' ) ? ' checked="checked"' : '', 'L_RADIOCAST_INDEX' => $lang['index'], 'RADIOCAST_INDEX' => $pagelist_index, // 'L_SUBMIT' => $lang['submit'], // 'L_RESET' => $lang['reset'], 'L_SUBMIT' => $lang['Submit'], 'L_RESET' => $lang['Reset'] )); $template->pparse( "body" ); include_once( $mx_root_path . 'admin/page_footer_admin.' . $phpEx ); ?> --- NEW FILE: admin_radio_cat.php --- <?php /** * * @package mxBB Portal Module - mx_radiocast * @version $Id: admin_radio_cat.php,v 1.1 2007/06/06 23:03:46 orynider Exp $ * @copyright (c) 2007 [ory...@rd..., OryNider] mxBB Development Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ define('IN_PORTAL', 1); if ( !empty( $setmodules ) ) { $file = basename( __FILE__ ); $module['Radio_Cast']['Categories'] = 'modules/mx_radiocast/admin/' . $file; return; } // // Let's set the root dir for phpBB // $module_root_path = '../'; $mx_root_path = '../../../'; $radiocast_root_path = $module_root_path . 'radiocast_mod/'; $phpEx = substr(strrchr(__FILE__, '.'), 1); require($mx_root_path . 'admin/pagestart.' . $phpEx); // // Get general radiocast information // include($radiocast_root_path . 'radiocast_common.'.$phpEx); // ********************************************************************** // Read language definition // ********************************************************************** if ( file_exists( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx ) ) { include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx ); } else if ( file_exists( $module_root_path . 'language/lang_english/lang_admin.' . $phpEx ) ) { include( $module_root_path . 'language/lang_english/lang_admin.' . $phpEx ); } if ( file_exists( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx ) ) { include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx ); } else if ( file_exists( $module_root_path . 'language/lang_english/lang_main.' . $phpEx ) ) { include( $module_root_path . 'language/lang_english/lang_main.' . $phpEx ); } // -------------------------- // This function will sort the order of all categories // function mx_radiocast_reorder_cat() { global $db; $sql = "SELECT cat_id, cat_order FROM ". RADIOCAST_CAT_TABLE ." WHERE cat_id <> 0 ORDER BY cat_order ASC"; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, 'Could not get list of Categories', '', __LINE__, __FILE__, $sql); } $i = 10; while( $row = $db->sql_fetchrow($result) ) { $sql = "UPDATE ". RADIOCAST_CAT_TABLE ." SET cat_order = $i WHERE cat_id = ". $row['cat_id']; if( !$db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, 'Could not update order fields', '', __LINE__, __FILE__, $sql); } $i += 10; } } // END // -------------------------- if( !isset($HTTP_POST_VARS['mode']) ) { if( !isset($HTTP_GET_VARS['action']) ) { $template->set_filenames(array( 'body' => 'admin/radiocast_cat_body.tpl') ); $template->assign_vars(array( 'L_RADIOCAST_CAT_TITLE' => $lang['RadioCast_Categories_Title'], 'L_RADIOCAST_CAT_EXPLAIN' => $lang['RadioCast_Categories_Explain'], 'S_RADIOCAST_ACTION' => append_sid("admin_radio_cat.$phpEx"), 'L_MOVE_UP' => $lang['Move_up'], 'L_MOVE_DOWN' => $lang['Move_down'], 'L_EDIT' => $lang['Edit'], 'L_DELETE' => $lang['Delete'], 'S_MODE' => 'new', 'L_CREATE_CATEGORY' => $lang['Create_category']) ); $sql = "SELECT * FROM ". RADIOCAST_CAT_TABLE ." ORDER BY cat_order ASC"; if(!$result = $db->sql_query($sql)) { mx_message_die(GENERAL_ERROR, 'Could not query radiocast Categories information', '', __LINE__, __FILE__, $sql); } while ($row = $db->sql_fetchrow($result)) { $catrow[] = $row; } for( $i = 0; $i < count($catrow); $i++ ) { $template->assign_block_vars('catrow', array( 'COLOR' => ($i % 2) ? 'row1' : 'row2', 'TITLE' => $catrow[$i]['cat_title'], 'DESC' => $catrow[$i]['cat_desc'], 'S_MOVE_UP' => append_sid("admin_radio_cat.$phpEx?action=move&move=-15&cat_id=" . $catrow[$i]['cat_id']), 'S_MOVE_DOWN' => append_sid("admin_radio_cat.$phpEx?action=move&move=15&cat_id=" . $catrow[$i]['cat_id']), 'S_EDIT_ACTION' => append_sid("admin_radio_cat.$phpEx?action=edit&cat_id=" . $catrow[$i]['cat_id']), 'S_DELETE_ACTION' => append_sid("admin_radio_cat.$phpEx?action=delete&cat_id=" . $catrow[$i]['cat_id']) ) ); } $template->pparse('body'); include($mx_root_path . 'admin/page_footer_admin.'.$phpEx); } else { if( $HTTP_GET_VARS['action'] == 'edit' ) { $cat_id = intval($HTTP_GET_VARS['cat_id']); $sql = "SELECT * FROM ". RADIOCAST_CAT_TABLE ." WHERE cat_id = '$cat_id'"; if(!$result = $db->sql_query($sql)) { mx_message_die(GENERAL_ERROR, 'Could not query radiocast Categories information', '', __LINE__, __FILE__, $sql); } if( $db->sql_numrows($result) == 0 ) { mx_message_die(GENERAL_ERROR, 'The requested category is not existed'); } $catrow = $db->sql_fetchrow($result); $template->set_filenames(array( 'body' => 'admin/radiocast_cat_new_body.tpl') ); $template->assign_vars(array( 'L_RADIOCAST_CAT_TITLE' => $lang['RadioCast_Categories_Title'], 'L_RADIOCAST_CAT_EXPLAIN' => $lang['RadioCast_Categories_Explain'], 'S_RADIOCAST_ACTION' => append_sid("admin_radio_cat.$phpEx?cat_id=$cat_id"), 'L_CAT_TITLE' => $lang['Category_Title'], 'L_CAT_DESC' => $lang['Category_Desc'], 'L_CAT_PERMISSIONS' => $lang['Category_Permissions'], 'L_VIEW_LEVEL' => $lang['View_level'], 'L_UPLOAD_LEVEL' => $lang['Upload_level'], 'L_RATE_LEVEL' => $lang['Rate_level'], 'L_COMMENT_LEVEL' => $lang['Comment_level'], 'L_EDIT_LEVEL' => $lang['Edit_level'], 'L_DELETE_LEVEL' => $lang['Delete_level'], 'L_STATIONS_APPROVAL' => $lang['Stations_Approval'], 'L_GUEST' => $lang['Forum_ALL'], 'L_REG' => $lang['Forum_REG'], 'L_PRIVATE' => $lang['Forum_PRIVATE'], 'L_MOD' => $lang['Forum_MOD'], 'L_ADMIN' => $lang['Forum_ADMIN'], 'L_DISABLED' => $lang['Disabled'], 'S_CAT_TITLE' => $catrow['cat_title'], 'S_CAT_DESC' => $catrow['cat_desc'], 'VIEW_GUEST' => ($catrow['cat_view_level'] == RADIOCAST_GUEST) ? 'selected="selected"' : '', 'VIEW_REG' => ($catrow['cat_view_level'] == RADIOCAST_USER) ? 'selected="selected"' : '', 'VIEW_PRIVATE' => ($catrow['cat_view_level'] == RADIOCAST_PRIVATE) ? 'selected="selected"' : '', 'VIEW_MOD' => ($catrow['cat_view_level'] == RADIOCAST_MOD) ? 'selected="selected"' : '', 'VIEW_ADMIN' => ($catrow['cat_view_level'] == RADIOCAST_ADMIN) ? 'selected="selected"' : '', 'UPLOAD_GUEST' => ($catrow['cat_upload_level'] == RADIOCAST_GUEST) ? 'selected="selected"' : '', 'UPLOAD_REG' => ($catrow['cat_upload_level'] == RADIOCAST_USER) ? 'selected="selected"' : '', 'UPLOAD_PRIVATE' => ($catrow['cat_upload_level'] == RADIOCAST_PRIVATE) ? 'selected="selected"' : '', 'UPLOAD_MOD' => ($catrow['cat_upload_level'] == RADIOCAST_MOD) ? 'selected="selected"' : '', 'UPLOAD_ADMIN' => ($catrow['cat_upload_level'] == RADIOCAST_ADMIN) ? 'selected="selected"' : '', 'RATE_GUEST' => ($catrow['cat_rate_level'] == RADIOCAST_GUEST) ? 'selected="selected"' : '', 'RATE_REG' => ($catrow['cat_rate_level'] == RADIOCAST_USER) ? 'selected="selected"' : '', 'RATE_PRIVATE' => ($catrow['cat_rate_level'] == RADIOCAST_PRIVATE) ? 'selected="selected"' : '', 'RATE_MOD' => ($catrow['cat_rate_level'] == RADIOCAST_MOD) ? 'selected="selected"' : '', 'RATE_ADMIN' => ($catrow['cat_rate_level'] == RADIOCAST_ADMIN) ? 'selected="selected"' : '', 'COMMENT_GUEST' => ($catrow['cat_comment_level'] == RADIOCAST_GUEST) ? 'selected="selected"' : '', 'COMMENT_REG' => ($catrow['cat_comment_level'] == RADIOCAST_USER) ? 'selected="selected"' : '', 'COMMENT_PRIVATE' => ($catrow['cat_comment_level'] == RADIOCAST_PRIVATE) ? 'selected="selected"' : '', 'COMMENT_MOD' => ($catrow['cat_comment_level'] == RADIOCAST_MOD) ? 'selected="selected"' : '', 'COMMENT_ADMIN' => ($catrow['cat_comment_level'] == RADIOCAST_ADMIN) ? 'selected="selected"' : '', 'EDIT_REG' => ($catrow['cat_edit_level'] == RADIOCAST_USER) ? 'selected="selected"' : '', 'EDIT_PRIVATE' => ($catrow['cat_edit_level'] == RADIOCAST_PRIVATE) ? 'selected="selected"' : '', 'EDIT_MOD' => ($catrow['cat_edit_level'] == RADIOCAST_MOD) ? 'selected="selected"' : '', 'EDIT_ADMIN' => ($catrow['cat_edit_level'] == RADIOCAST_ADMIN) ? 'selected="selected"' : '', 'DELETE_REG' => ($catrow['cat_delete_level'] == RADIOCAST_USER) ? 'selected="selected"' : '', 'DELETE_PRIVATE' => ($catrow['cat_delete_level'] == RADIOCAST_PRIVATE) ? 'selected="selected"' : '', 'DELETE_MOD' => ($catrow['cat_delete_level'] == RADIOCAST_MOD) ? 'selected="selected"' : '', 'DELETE_ADMIN' => ($catrow['cat_delete_level'] == RADIOCAST_ADMIN) ? 'selected="selected"' : '', 'APPROVAL_DISABLED' => ($catrow['cat_approval'] == RADIOCAST_USER) ? 'selected="selected"' : '', 'APPROVAL_MOD' => ($catrow['cat_approval'] == RADIOCAST_MOD) ? 'selected="selected"' : '', 'APPROVAL_ADMIN' => ($catrow['cat_approval'] == RADIOCAST_ADMIN) ? 'selected="selected"' : '', 'S_MODE' => 'edit', 'S_GUEST' => RADIOCAST_GUEST, 'S_USER' => RADIOCAST_USER, 'S_PRIVATE' => RADIOCAST_PRIVATE, 'S_MOD' => RADIOCAST_MOD, 'S_ADMIN' => RADIOCAST_ADMIN, 'L_PANEL_TITLE' => $lang['Edit_Category']) ); $template->pparse('body'); include($mx_root_path . 'admin/page_footer_admin.'.$phpEx); } else if( $HTTP_GET_VARS['action'] == 'delete' ) { $cat_id = intval($HTTP_GET_VARS['cat_id']); $sql = "SELECT cat_id, cat_title, cat_order FROM ". RADIOCAST_CAT_TABLE ." ORDER BY cat_order ASC"; if(!$result = $db->sql_query($sql)) { mx_message_die(GENERAL_ERROR, 'Could not query radiocast Categories information', '', __LINE__, __FILE__, $sql); } $cat_found = FALSE; while( $row = $db->sql_fetchrow($result) ) { if( $row['cat_id'] == $cat_id ) { $thiscat = $row; $cat_found = TRUE; } else { $catrow[] = $row; } } if( $cat_found == FALSE ) { mx_message_die(GENERAL_ERROR, 'The requested category is not existed'); } $select_to = '<select name="target"><option value="0">'. $lang['Delete_all_STATIONS'] .'</option>'; for ($i = 0; $i < count($catrow); $i++) { $select_to .= '<option value="'. $catrow[$i]['cat_id'] .'">'. $catrow[$i]['cat_title'] .'</option>'; } $select_to .= '</select>'; $template->set_filenames(array( 'body' => 'admin/radiocast_cat_delete_body.tpl') ); $template->assign_vars(array( 'S_RADIOCAST_ACTION' => append_sid("admin_radio_cat.$phpEx?cat_id=$cat_id"), 'L_CAT_DELETE' => $lang['Delete_Category'], 'L_CAT_DELETE_EXPLAIN' => $lang['Delete_Category_Explain'], 'L_CAT_TITLE' => $lang['Category_Title'], 'S_CAT_TITLE' => $thiscat['cat_title'], 'L_MOVE_CONTENTS' => $lang['Move_contents'], 'L_MOVE_DELETE' => $lang['Move_and_Delete'], 'S_SELECT_TO' => $select_to) ); $template->pparse('body'); include($mx_root_path . 'admin/page_footer_admin.'.$phpEx); } else if( $HTTP_GET_VARS['action'] == 'move' ) { $cat_id = intval($HTTP_GET_VARS['cat_id']); $move = intval($HTTP_GET_VARS['move']); $sql = "UPDATE ". RADIOCAST_CAT_TABLE ." SET cat_order = cat_order + $move WHERE cat_id = $cat_id"; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, 'Could not change category order', '', __LINE__, __FILE__, $sql); } mx_radiocast_reorder_cat(); // Return a message... $message = $lang['Category_changed_order'] . "<br /><br />" . sprintf($lang['Click_return_radiocast_category'], "<a href=\"" . append_sid("admin_radio_cat.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid("index.$phpEx?pane=right") . "\">", "</a>"); mx_message_die(GENERAL_MESSAGE, $message); } } } else { if( $HTTP_POST_VARS['mode'] == 'new' ) { if( !isset($HTTP_POST_VARS['cat_title']) ) { $template->set_filenames(array( 'body' => 'admin/radiocast_cat_new_body.tpl') ); $template->assign_vars(array( 'L_RADIOCAST_CAT_TITLE' => $lang['RadioCast_Categories_Title'], 'L_RADIOCAST_CAT_EXPLAIN' => $lang['RadioCast_Categories_Explain'], 'S_RADIOCAST_ACTION' => append_sid("admin_radio_cat.$phpEx"), 'L_CAT_TITLE' => $lang['Category_Title'], 'L_CAT_DESC' => $lang['Category_Desc'], 'L_CAT_PERMISSIONS' => $lang['Category_Permissions'], 'L_VIEW_LEVEL' => $lang['View_level'], 'L_UPLOAD_LEVEL' => $lang['Upload_level'], 'L_RATE_LEVEL' => $lang['Rate_level'], 'L_COMMENT_LEVEL' => $lang['Comment_level'], 'L_EDIT_LEVEL' => $lang['Edit_level'], 'L_DELETE_LEVEL' => $lang['Delete_level'], 'L_STATIONS_APPROVAL' => $lang['Stations_Approval'], 'L_GUEST' => $lang['Forum_ALL'], 'L_REG' => $lang['Forum_REG'], 'L_PRIVATE' => $lang['Forum_PRIVATE'], 'L_MOD' => $lang['Forum_MOD'], 'L_ADMIN' => $lang['Forum_ADMIN'], 'L_DISABLED' => $lang['Disabled'], 'VIEW_GUEST' => 'selected="selected"', 'UPLOAD_REG' => 'selected="selected"', 'RATE_REG' => 'selected="selected"', 'COMMENT_REG' => 'selected="selected"', 'EDIT_REG' => 'selected="selected"', 'DELETE_MOD' => 'selected="selected"', 'APPROVAL_DISABLED' => 'selected="selected"', 'S_MODE' => 'new', 'S_GUEST' => RADIOCAST_GUEST, 'S_USER' => RADIOCAST_USER, 'S_PRIVATE' => RADIOCAST_PRIVATE, 'S_MOD' => RADIOCAST_MOD, 'S_ADMIN' => RADIOCAST_ADMIN, 'L_PANEL_TITLE' => $lang['Create_category']) ); $template->pparse('body'); include($mx_root_path . 'admin/page_footer_admin.'.$phpEx); } else { // Get posting variables $cat_title = str_replace("\'", "''", htmlspecialchars(trim($HTTP_POST_VARS['cat_title']))); $cat_desc = str_replace("\'", "''", trim($HTTP_POST_VARS['cat_desc'])); $view_level = intval($HTTP_POST_VARS['cat_view_level']); $upload_level = intval($HTTP_POST_VARS['cat_upload_level']); $rate_level = intval($HTTP_POST_VARS['cat_rate_level']); $comment_level = intval($HTTP_POST_VARS['cat_comment_level']); $edit_level = intval($HTTP_POST_VARS['cat_edit_level']); $delete_level = intval($HTTP_POST_VARS['cat_delete_level']); $cat_approval = intval($HTTP_POST_VARS['cat_approval']); // Get the last ordered category $sql = "SELECT cat_order FROM ". RADIOCAST_CAT_TABLE ." ORDER BY cat_order DESC LIMIT 1"; if(!$result = $db->sql_query($sql)) { mx_message_die(GENERAL_ERROR, 'Could not query radiocast Categories information', '', __LINE__, __FILE__, $sql); } $row = $db->sql_fetchrow($result); $last_order = $row['cat_order']; $cat_order = $last_order + 10; // Here we insert a new row into the db $sql = "INSERT INTO ". RADIOCAST_CAT_TABLE ." (cat_title, cat_desc, cat_order, cat_view_level, cat_upload_level, cat_rate_level, cat_comment_level, cat_edit_level, cat_delete_level, cat_approval) VALUES ('$cat_title', '$cat_desc', '$cat_order', '$view_level', '$upload_level', '$rate_level', '$comment_level', '$edit_level', '$delete_level', '$cat_approval')"; if(!$result = $db->sql_query($sql)) { mx_message_die(GENERAL_ERROR, 'Could not create new radiocast Category', '', __LINE__, __FILE__, $sql); } // Return a message... $message = $lang['New_category_created'] . "<br /><br />" . sprintf($lang['Click_return_radiocast_category'], "<a href=\"" . append_sid("admin_radio_cat.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid("index.$phpEx?pane=right") . "\">", "</a>"); mx_message_die(GENERAL_MESSAGE, $message); } } else if( $HTTP_POST_VARS['mode'] == 'edit' ) { // Get posting variables $cat_id = intval($HTTP_GET_VARS['cat_id']); $cat_title = str_replace("\'", "''", htmlspecialchars(trim($HTTP_POST_VARS['cat_title']))); $cat_desc = str_replace("\'", "''", trim($HTTP_POST_VARS['cat_desc'])); $view_level = intval($HTTP_POST_VARS['cat_view_level']); $upload_level = intval($HTTP_POST_VARS['cat_upload_level']); $rate_level = intval($HTTP_POST_VARS['cat_rate_level']); $comment_level = intval($HTTP_POST_VARS['cat_comment_level']); $edit_level = intval($HTTP_POST_VARS['cat_edit_level']); $delete_level = intval($HTTP_POST_VARS['cat_delete_level']); $cat_approval = intval($HTTP_POST_VARS['cat_approval']); // Now we update this row $sql = "UPDATE ". RADIOCAST_CAT_TABLE ." SET cat_title = '$cat_title', cat_desc = '$cat_desc', cat_view_level = '$view_level', cat_upload_level = '$upload_level', cat_rate_level = '$rate_level', cat_comment_level = '$comment_level', cat_edit_level = '$edit_level', cat_delete_level = '$delete_level', cat_approval = '$cat_approval' WHERE cat_id = '$cat_id'"; if(!$result = $db->sql_query($sql)) { mx_message_die(GENERAL_ERROR, 'Could not update this radiocast Category', '', __LINE__, __FILE__, $sql); } // Return a message... $message = $lang['Category_updated'] . "<br /><br />" . sprintf($lang['Click_return_radiocast_category'], "<a href=\"" . append_sid("admin_radio_cat.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid("index.$phpEx?pane=right") . "\">", "</a>"); mx_message_die(GENERAL_MESSAGE, $message); } else if( $HTTP_POST_VARS['mode'] == 'delete' ) { $cat_id = intval($HTTP_GET_VARS['cat_id']); $target = intval($HTTP_POST_VARS['target']); if( $target == 0 ) // Delete All { // Get file information of all STATIONS in this category $sql = "SELECT station_id, station_filename, station_cat_id FROM ". RADIOCAST_TABLE ." WHERE station_cat_id = '$cat_id'"; if(!$result = $db->sql_query($sql)) { mx_message_die(GENERAL_ERROR, 'Could not query radiocast information', '', __LINE__, __FILE__, $sql); } $stationrow = array(); while( $row = $db ->sql_fetchrow($result) ) { $stationrow[] = $row; $station_id_row[] = $row['station_id']; } if( count($stationrow) != 0 ) // if this category is not empty { // Delete all physical station for ($i = 0; $i < count($stationrow); $i++) { @unlink('../' . RADIOCAST_UPLOAD_PATH . $stationrow[$i]['station_filename']); } $station_id_sql = '(' . implode(',', $station_id_row) . ')'; // Delete all related ratings $sql = "DELETE FROM ". RADIOCAST_RATE_TABLE ." WHERE rate_station_id IN ". $station_id_sql; if(!$result = $db->sql_query($sql)) { mx_message_die(GENERAL_ERROR, 'Could not delete Ratings information', '', __LINE__, __FILE__, $sql); } // Delete all related comments $sql = "DELETE FROM ". RADIOCAST_COMMENT_TABLE ." WHERE comment_station_id IN ". $station_id_sql; if(!$result = $db->sql_query($sql)) { mx_message_die(GENERAL_ERROR, 'Could not delete Comments information', '', __LINE__, __FILE__, $sql); } // Delete station entries in db $sql = "DELETE FROM ". RADIOCAST_TABLE ." WHERE station_cat_id = '$cat_id'"; if(!$result = $db->sql_query($sql)) { mx_message_die(GENERAL_ERROR, 'Could not delete station entries in the DB', '', __LINE__, __FILE__, $sql); } } // This category is now emptied, we can remove it! $sql = "DELETE FROM ". RADIOCAST_CAT_TABLE ." WHERE cat_id = '$cat_id'"; if(!$result = $db->sql_query($sql)) { mx_message_die(GENERAL_ERROR, 'Could not delete this Category', '', __LINE__, __FILE__, $sql); } // Re-order the rest of categories mx_radiocast_reorder_cat(); // Return a message... $message = $lang['Category_deleted'] . "<br /><br />" . sprintf($lang['Click_return_radiocast_category'], "<a href=\"" . append_sid("admin_radio_cat.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid("index.$phpEx?pane=right") . "\">", "</a>"); mx_message_die(GENERAL_MESSAGE, $message); } else // Move content... { $sql = "UPDATE ". RADIOCAST_TABLE ." SET station_cat_id = '$target' WHERE station_cat_id = '$cat_id'"; if(!$result = $db->sql_query($sql)) { mx_message_die(GENERAL_ERROR, 'Could not update this Category content', '', __LINE__, __FILE__, $sql); } // This category is now emptied, we can remove it! $sql = "DELETE FROM ". RADIOCAST_CAT_TABLE ." WHERE cat_id = '$cat_id'"; if(!$result = $db->sql_query($sql)) { mx_message_die(GENERAL_ERROR, 'Could not delete this Category', '', __LINE__, __FILE__, $sql); } // Re-order the rest of categories mx_radiocast_reorder_cat(); // Return a message... $message = $lang['Category_deleted'] . "<br /><br />" . sprintf($lang['Click_return_radiocast_category'], "<a href=\"" . append_sid("admin_radio_cat.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid("index.$phpEx?pane=right") . "\">", "</a>"); mx_message_die(GENERAL_MESSAGE, $message); } } } ?> --- NEW FILE: index.html --- <html> <head> <title>Mx Radio Cast Module</title> </head> <body> <br /><br /><br /><br /><br /><br /><br /> <center><h1><a href="http://mxbb.net/">mxBB-Portal</a></h1></center> </body> --- NEW FILE: admin_radio_auth.php --- <?php /** * * @package mxBB Portal Module - mx_radiocast * @version $Id: admin_radio_auth.php,v 1.1 2007/06/06 23:03:45 orynider Exp $ * @copyright (c) 2003 [ory...@rd..., OryNider] mxBB Development Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ define('IN_PORTAL', 1); if ( !empty( $setmodules ) ) { $file = basename( __FILE__ ); $module['Radio_Cast']['Permissions'] = 'modules/mx_radiocast/admin/' . $file; return; } // // Let's set the root dir for phpBB // $module_root_path = '../'; $mx_root_path = '../../../'; $radiocast_root_path = $module_root_path . 'radiocast_mod/'; $phpEx = substr(strrchr(__FILE__, '.'), 1); require($mx_root_path . 'admin/pagestart.' . $phpEx); // // Get general radiocast information // include($radiocast_root_path . 'radiocast_common.'.$phpEx); // ********************************************************************** // Read language definition // ********************************************************************** if ( file_exists( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx ) ) { include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx ); } else if ( file_exists( $module_root_path . 'language/lang_english/lang_admin.' . $phpEx ) ) { include( $module_root_path . 'language/lang_english/lang_admin.' . $phpEx ); } if ( file_exists( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx ) ) { include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx ); } else if ( file_exists( $module_root_path . 'language/lang_english/lang_main.' . $phpEx ) ) { include( $module_root_path . 'language/lang_english/lang_main.' . $phpEx ); } if( !isset($HTTP_POST_VARS['submit']) ) { // Build the category selector $sql = "SELECT cat_id, cat_title, cat_order FROM ". RADIOCAST_CAT_TABLE ." ORDER BY cat_order ASC"; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, 'Could not get Category list', '', __LINE__, __FILE__, $sql); } while( $row = $db->sql_fetchrow($result) ) { $catrows[] = $row; } for ($i = 0; $i < count($catrows); $i++) { $template->assign_block_vars('catrow', array( 'CAT_ID' => $catrows[$i]['cat_id'], 'CAT_TITLE' => $catrows[$i]['cat_title']) ); } $template->set_filenames(array( 'body' => 'admin/radiocast_cat_select_body.tpl') ); $template->assign_vars(array( 'L_RADIOCAST_AUTH_TITLE' => $lang['RadioCast_Auth_Title'], 'L_RADIOCAST_AUTH_EXPLAIN' => $lang['RadioCast_Auth_Explain'], 'L_SELECT_CAT' => $lang['Select_a_Category'], 'S_RADIOCAST_ACTION' => append_sid("admin_radio_auth.$phpEx"), 'L_LOOK_UP_CAT' => $lang['Look_up_Category']) ); $template->pparse('body'); include($mx_root_path . 'admin/page_footer_admin.'.$phpEx); } else { if( !isset($HTTP_GET_VARS['cat_id']) ) { $cat_id = intval($HTTP_POST_VARS['cat_id']); $template->set_filenames(array( 'body' => 'admin/radiocast_auth_body.tpl') ); $template->assign_vars(array( 'L_RADIOCAST_AUTH_TITLE' => $lang['RadioCast_Auth_Title'], 'L_RADIOCAST_AUTH_EXPLAIN' => $lang['RadioCast_Auth_Explain'], 'L_SUBMIT' => $lang['Submit'], 'L_RESET' => $lang['Reset'], 'L_GROUPS' => $lang['Usergroups'], 'L_VIEW' => $lang['View'], 'L_UPLOAD' => $lang['Upload'], 'L_RATE' => $lang['Rate'], 'L_COMMENT' => $lang['Comment'], 'L_EDIT' => $lang['Edit'], 'L_DELETE' => $lang['Delete'], 'L_IS_MODERATOR' => $lang['Is_Moderator'], 'S_RADIOCAST_ACTION' => append_sid("admin_radio_auth.$phpEx?cat_id=$cat_id"), ) ); // Get the list of phpBB usergroups $sql = "SELECT group_id, group_name FROM " . GROUPS_TABLE . " WHERE group_single_user <> " . TRUE ." ORDER BY group_name ASC"; if ( !($result = $db->sql_query($sql)) ) { message_die(GENERAL_ERROR, 'Could not get group list', '', __LINE__, __FILE__, $sql); } while( $row = $db->sql_fetchrow($result) ) { $groupdata[] = $row; } // Get info of this cat $sql = "SELECT cat_id, cat_title, cat_view_groups, cat_upload_groups, cat_rate_groups, cat_comment_groups, cat_edit_groups, cat_delete_groups, cat_moderator_groups FROM ". RADIOCAST_CAT_TABLE ." WHERE cat_id = '$cat_id'"; if( !$result = $db->sql_query($sql) ) { message_die(GENERAL_ERROR, 'Could not get Category information', '', __LINE__, __FILE__, $sql); } $thiscat = $db->sql_fetchrow($result); $view_groups = @explode(',', $thiscat['cat_view_groups']); $upload_groups = @explode(',', $thiscat['cat_upload_groups']); $rate_groups = @explode(',', $thiscat['cat_rate_groups']); $comment_groups = @explode(',', $thiscat['cat_comment_groups']); $edit_groups = @explode(',', $thiscat['cat_edit_groups']); $delete_groups = @explode(',', $thiscat['cat_delete_groups']); $moderator_groups = @explode(',', $thiscat['cat_moderator_groups']); for ($i = 0; $i < count($groupdata); $i++) { $template->assign_block_vars('grouprow', array( 'GROUP_ID' => $groupdata[$i]['group_id'], 'GROUP_NAME' => $groupdata[$i]['group_name'], 'VIEW_CHECKED' => (in_array($groupdata[$i]['group_id'], $view_groups)) ? 'checked="checked"' : '', 'UPLOAD_CHECKED' => (in_array($groupdata[$i]['group_id'], $upload_groups)) ? 'checked="checked"' : '', 'RATE_CHECKED' => (in_array($groupdata[$i]['group_id'], $rate_groups)) ? 'checked="checked"' : '', 'COMMENT_CHECKED' => (in_array($groupdata[$i]['group_id'], $comment_groups)) ? 'checked="checked"' : '', 'EDIT_CHECKED' => (in_array($groupdata[$i]['group_id'], $edit_groups)) ? 'checked="checked"' : '', 'DELETE_CHECKED' => (in_array($groupdata[$i]['group_id'], $delete_groups)) ? 'checked="checked"' : '', 'MODERATOR_CHECKED' => (in_array($groupdata[$i]['group_id'], $moderator_groups)) ? 'checked="checked"' : '') ); } $template->pparse('body'); include($mx_root_path . 'admin/page_footer_admin.'.$phpEx); } else { $cat_id = intval($HTTP_GET_VARS['cat_id']); $view_groups = @implode(',', $HTTP_POST_VARS['view']); $upload_groups = @implode(',', $HTTP_POST_VARS['upload']); $rate_groups = @implode(',', $HTTP_POST_VARS['rate']); $comment_groups = @implode(',', $HTTP_POST_VARS['comment']); $edit_groups = @implode(',', $HTTP_POST_VARS['edit']); $delete_groups = @implode(',', $HTTP_POST_VARS['delete']); $moderator_groups = @implode(',', $HTTP_POST_VARS['moderator']); $sql = "UPDATE ". RADIOCAST_CAT_TABLE ." SET cat_view_groups = '$view_groups', cat_upload_groups = '$upload_groups', cat_rate_groups = '$rate_groups', cat_comment_groups = '$comment_groups', cat_edit_groups = '$edit_groups', cat_delete_groups = '$delete_groups', cat_moderator_groups = '$moderator_groups' WHERE cat_id = '$cat_id'"; if ( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, 'Could not update radiocast config table', '', __LINE__, __FILE__, $sql); } // okay, return a message... $message = $lang['RadioCast_Auth_successfully'] . '<br /><br />' . sprintf($lang['Click_return_radiocast_auth'], '<a href="' . append_sid("admin_radio_auth.$phpEx") . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . append_sid("index.$phpEx?pane=right") . '">', '</a>'); mx_message_die(GENERAL_MESSAGE, $message); } } ?> --- NEW FILE: admin_radio_cfg.php --- <?php /** * * @package mxBB Portal Module - mx_radiocast * @version $Id: admin_radio_cfg.php,v 1.1 2007/06/06 23:03:46 orynider Exp $ * @copyright (c) 2007 [ory...@rd..., OryNider] mxBB Development Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ define('IN_PORTAL', 1); if ( !empty( $setmodules ) ) { $file = basename( __FILE__ ); $module['Radio_Cast']['Configuration std'] = 'modules/mx_radiocast/admin/' . $file; return; } // // Let's set the root dir for phpBB // $module_root_path = '../'; $mx_root_path = '../../../'; $radiocast_root_path = $module_root_path . 'radiocast_mod/'; $phpEx = substr(strrchr(__FILE__, '.'), 1); require($mx_root_path . 'admin/pagestart.' . $phpEx); // // Get general music information // include($radiocast_root_path . 'radiocast_common.'.$phpEx); // ********************************************************************** // Read language definition // ********************************************************************** if ( file_exists( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx ) ) { include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx ); } else if ( file_exists( $module_root_path . 'language/lang_english/lang_admin.' . $phpEx ) ) { include( $module_root_path . 'language/lang_english/lang_admin.' . $phpEx ); } if ( file_exists( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx ) ) { include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx ); } else if ( file_exists( $module_root_path . 'language/lang_english/lang_main.' . $phpEx ) ) { include( $module_root_path . 'language/lang_english/lang_main.' . $phpEx ); } // // Pull all config data // $sql = "SELECT * FROM " . RADIOCAST_CONFIG_TABLE; if(!$result = $db->sql_query($sql)) { message_die(CRITICAL_ERROR, "Could not query music config information", "", __LINE__, __FILE__, $sql); } else { while( $row = $db->sql_fetchrow($result) ) { $config_name = $row['config_name']; $config_value = $row['config_value']; $default_config[$config_name] = $config_value; $new[$config_name] = ( isset($HTTP_POST_VARS[$config_name]) ) ? $HTTP_POST_VARS[$config_name] : $default_config[$config_name]; if( isset($HTTP_POST_VARS['submit']) ) { $sql = "UPDATE " . RADIOCAST_CONFIG_TABLE . " SET config_value = '" . str_replace("\'", "''", $new[$config_name]) . "' WHERE config_name = '$config_name'"; if( !$db->sql_query($sql) ) { message_die(GENERAL_ERROR, "Failed to update music configuration for $config_name", "", __LINE__, __FILE__, $sql); } } } if( isset($HTTP_POST_VARS['submit']) ) { $message = $lang['RadioCast_config_updated'] . "<br /><br />" . sprintf($lang['Click_return_radiocast_config'], "<a href=\"" . append_sid("admin_radio_cfg.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid("index.$phpEx?pane=right") . "\">", "</a>"); message_die(GENERAL_MESSAGE, $message); } } $template->set_filenames(array( "body" => "admin/radiocast_cfg_body.tpl") ); $template->assign_vars(array( 'L_RADIOCAST_CONFIG' => $lang['RadioCast_config'], 'L_RADIOCAST_CONFIG_EXPLAIN' => $lang['RadioCast_config_explain'], 'S_RADIOCAST_CONFIG_ACTION' => append_sid('admin_radio_cfg.'.$phpEx), 'MAX_STATIONS' => $new['max_stations'], 'MAX_FILE_SIZE' => $new['max_file_size'], 'ROWS_PER_PAGE' => $new['rows_per_page'], 'COLS_PER_PAGE' => $new['cols_per_page'], 'TOP' => $new['top'], // // station image // 'MAX_IMAGE_SIZE' => $new['max_image_size'], 'MAX_IMAGE_WIDTH' => $new['max_image_width'], 'MAX_IMAGE_HEIGHT' => $new['max_image_height'], 'USER_STATIONS_LIMIT' => $new['user_stations_limit'], 'MOD_STATIONS_LIMIT' => $new['mod_stations_limit'], 'MP3_ENABLED' => ($new['mp3_allowed'] == 1) ? 'checked="checked"' : '', 'MP3_DISABLED' => ($new['mp3_allowed'] == 0) ? 'checked="checked"' : '', 'WAV_ENABLED' => ($new['wav_allowed'] == 1) ? 'checked="checked"' : '', 'WAV_DISABLED' => ($new['wav_allowed'] == 0) ? 'checked="checked"' : '', 'WMA_ENABLED' => ($new['wma_allowed'] == 1) ? 'checked="checked"' : '', 'WMA_DISABLED' => ($new['wma_allowed'] == 0) ? 'checked="checked"' : '', // Media Center 'WMV_ENABLED' => ($new['wmv_allowed'] == 1) ? 'checked="checked"' : '', 'WMV_DISABLED' => ($new['wmv_allowed'] == 0) ? 'checked="checked"' : '', 'MIDI_ENABLED' => ($new['mid_allowed'] == 1) ? 'checked="checked"' : '', 'MIDI_DISABLED' => ($new['mid_allowed'] == 0) ? 'checked="checked"' : '', 'RAM_ENABLED' => ($new['ram_allowed'] == 1) ? 'checked="checked"' : '', 'RAM_DISABLED' => ($new['ram_allowed'] == 0) ? 'checked="checked"' : '', 'AU_ENABLED' => ($new['au_allowed'] == 1) ? 'checked="checked"' : '', 'AU_DISABLED' => ($new['au_allowed'] == 0) ? 'checked="checked"' : '', 'MPEG_ENABLED' => ($new['mpeg_allowed'] == 1) ? 'checked="checked"' : '', 'MPEG_DISABLED' => ($new['mpeg_allowed'] == 0) ? 'checked="checked"' : '', 'AVI_ENABLED' => ($new['avi_allowed'] == 1) ? 'checked="checked"' : '', 'AVI_DISABLED' => ($new['avi_allowed'] == 0) ? 'checked="checked"' : '', 'SWF_ENABLED' => ($new['swf_allowed'] == 1) ? 'checked="checked"' : '', 'SWF_DISABLED' => ($new['swf_allowed'] == 0) ? 'checked="checked"' : '', 'QT_ENABLED' => ($new['qt_allowed'] == 1) ? 'checked="checked"' : '', 'QT_DISABLED' => ($new['qt_allowed'] == 0) ? 'checked="checked"' : '', 'RM_ENABLED' => ($new['rm_allowed'] == 1) ? 'checked="checked"' : '', 'RM_DISABLED' => ($new['rm_allowed'] == 0) ? 'checked="checked"' : '', // Media Center 'STATION_DESC_MAX_LENGTH' => $new['desc_length'], 'HOTLINK_PREVENT_ENABLED' => ($new['hotlink_prevent'] == 1) ? 'checked="checked"' : '', 'HOTLINK_PREVENT_DISABLED' => ($new['hotlink_prevent'] == 0) ? 'checked="checked"' : '', 'HOTLINK_ALLOWED' => $new['hotlink_allowed'], 'RATE_ENABLED' => ($new['rate'] == 1) ? 'checked="checked"' : '', 'RATE_DISABLED' => ($new['rate'] == 0) ? 'checked="checked"' : '', 'RATE_SCALE' => $new['rate_scale'], 'COMMENT_ENABLED' => ($new['comment'] == 1) ? 'checked="checked"' : '', 'COMMENT_DISABLED' => ($new['comment'] == 0) ? 'checked="checked"' : '', 'DOWNLOAD_ENABLED' => ($new['download'] == 1) ? 'checked="checked"' : '', 'DOWNLOAD_DISABLED' => ($new['download'] == 0) ? 'checked="checked"' : '', 'SORT_TIME' => ($new['sort_method'] == 'station_time') ? 'selected="selected"' : '', 'SORT_STATION_TITLE' => ($new['sort_method'] == 'station_title') ? 'selected="selected"' : '', 'SORT_USERNAME' => ($new['sort_method'] == 'station_user_id') ? 'selected="selected"' : '', 'SORT_VIEW' => ($new['sort_method'] == 'station_view_count') ? 'selected="selected"' : '', 'SORT_RATING' => ($new['sort_method'] == 'rating') ? 'selected="selected"' : '', 'SORT_COMMENTS' => ($new['sort_method'] == 'comments') ? 'selected="selected"' : '', 'SORT_NEW_COMMENT' => ($new['sort_method'] == 'new_comment') ? 'selected="selected"' : '', 'SORT_ASC' => ($new['sort_order'] == 'ASC') ? 'selected="selected"' : '', 'SORT_DESC' => ($new['sort_order'] == 'DESC') ? 'selected="selected"' : '', 'S_GUEST' => RADIOCAST_GUEST, 'S_USER' => RADIOCAST_USER, 'S_PRIVATE' => RADIOCAST_PRIVATE, 'S_MOD' => RADIOCAST_MOD, 'S_ADMIN' => RADIOCAST_ADMIN, 'L_MAX_STATIONS' => $lang['Max_Stations'], 'L_MAX_FILE_SIZE' => $lang['Max_file_size'], 'L_USER_STATIONS_LIMIT' => $lang['User_stations_limit'], 'L_MOD_STATIONS_LIMIT' => $lang['Moderator_stations_limit'], 'L_ROWS_PER_PAGE' => $lang['Rows_per_page'], 'L_COLS_PER_PAGE' => $lang['Cols_per_page'], 'L_TOP' => $lang['Top'], // // Lang station image // 'L_MAX_IMAGE_SIZE' => $lang['Max_image_size'], 'L_MAX_IMAGE_WIDTH' => $lang['Max_image_width'], 'L_MAX_IMAGE_HEIGHT' => $lang['Max_image_height'], 'L_MP3_ALLOWED' => $lang['MP3_allowed'], 'L_WAV_ALLOWED' => $lang['WAV_allowed'], 'L_WMA_ALLOWED' => $lang['WMA_allowed'], // Media Center 'L_WMV_ALLOWED' => $lang['WMV_allowed'], 'L_MIDI_ALLOWED' => $lang['MIDI_allowed'], 'L_RAM_ALLOWED' => $lang['RAM_allowed'], 'L_AU_ALLOWED' => $lang['AU_allowed'], 'L_MPEG_ALLOWED' => $lang['MPEG_allowed'], 'L_AVI_ALLOWED' => $lang['AVI_allowed'], 'L_SWF_ALLOWED' => $lang['SWF_allowed'], 'L_QT_ALLOWED' => $lang['QT_allowed'], 'L_RM_ALLOWED' => $lang['RM_allowed'], // Media Center 'L_STATION_DESC_MAX_LENGTH' => $lang['Station_Desc_Max_Length'], 'L_HOTLINK_PREVENT' => $lang['Hotlink_prevent'], 'L_HOTLINK_ALLOWED' => $lang['Hotlink_allowed'], 'L_RATE_SYSTEM' => $lang['Rate_system'], 'L_RATE_SCALE' => $lang['Rate_Scale'], 'L_COMMENT_SYSTEM' => $lang['Comment_system'], 'L_DOWNLOAD_SYSTEM' => $lang['Download_system'], 'L_EXTRA_SETTINGS' => $lang['Extra_Settings'], 'L_DEFAULT_SORT_METHOD' => $lang['Default_Sort_Method'], 'L_TIME' => $lang['Time'], 'L_STATION_TITLE' => $lang['Station_Title'], 'L_USERNAME' => $lang['Sort_Username'], 'L_VIEW' => $lang['View'], 'L_RATING' => $lang['Rating'], 'L_COMMENTS' => $lang['Comments'], 'L_DOWNLOAD' => $lang['Download'], 'L_NEW_COMMENT' => $lang['New_Comment'], 'L_DEFAULT_SORT_ORDER' => $lang['Default_Sort_Order'], 'L_ASC' => $lang['Sort_Ascending'], 'L_DESC' => $lang['Sort_Descending'], 'L_GUEST' => $lang['Forum_ALL'], 'L_REG' => $lang['Forum_REG'], 'L_PRIVATE' => $lang['Forum_PRIVATE'], 'L_MOD' => $lang['Forum_MOD'], 'L_ADMIN' => $lang['Forum_ADMIN'], 'L_DISABLED' => $lang['Disabled'], 'L_ENABLED' => $lang['Enabled'], 'L_YES' => $lang['Yes'], 'L_NO' => $lang['No'], 'L_SUBMIT' => $lang['Submit'], 'L_RESET' => $lang['Reset']) ); $template->pparse("body"); include($mx_root_path . 'admin/page_footer_admin.'.$phpEx); ?> |
Update of /cvsroot/mxbb/mx_radiocast In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv1615 Added Files: Radio_Cast.nfo Radio_Cast.pak db_install.php db_uninstall.php index.html mx_install_readme.htm radiocast.php Log Message: --- NEW FILE: index.html --- <html> <head> <title>Mx Radio Cast Module</title> </head> <body> <br /><br /><br /><br /><br /><br /><br /> <center><h1><a href="http://mxbb.net/">mxBB-Portal</a></h1></center> </body> --- NEW FILE: db_uninstall.php --- <?php /** * * @package mxBB Portal Module - mx_radiocast * @version $Id: db_uninstall.php,v 1.1 2007/06/06 23:03:44 orynider Exp $ * @copyright (c) 2007 [sma...@ho..., Smartor] mxBB Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ define('IN_PORTAL', true); if ( !defined('IN_ADMIN') ) { $mx_root_path = '../../'; $phpEx = substr(strrchr(__FILE__, '.'), 1); include($mx_root_path . 'common.'.$phpEx); // // Start session management // $mx_user->init($user_ip, PAGE_INDEX); if( !$userdata['session_logged_in'] ) { die("Hacking attempt(3)"); } if( $userdata['user_level'] != ADMIN ) { die("Hacking attempt(4)"); } // // End session management // } $sql = array( "DROP TABLE IF EXISTS " . $mx_table_prefix . "radiocast", "DROP TABLE IF EXISTS " . $mx_table_prefix . "radiocast_rate", "DROP TABLE IF EXISTS " . $mx_table_prefix . "radiocast_comment", "DROP TABLE IF EXISTS " . $mx_table_prefix . "radiocast_cat", "DROP TABLE IF EXISTS " . $mx_table_prefix . "radiocast_config", ); $n = 0; $message = "<b>This list is a result of the SQL queries needed for Radio Cast module</b><br /><br />"; while($sql[$n]) { $message .= ($mods[$n-1] != $mods[$n]) ? '<p><b><font size=3>'.$mods[$n].'</font></b><br />' : ''; if(!$result = $db->sql_query($sql[$n])) { $message .= '<b><font color=#FF0000>[Error, Already deleted or updated]</font></b> line: '.($n+1).' , '.$sql[$n].'<br />'; } else { $message .='<b><font color=#0000fF>[Deleted/Updated]</font></b> line: '.($n+1).' , '.$sql[$n].'<br />'; } $n++; } $message .= '<br /> If you get some Error, Already Deleted or Updated, relax, this is normal ;)'; echo "<br /><br />"; echo "<table cellpadding=\"4\" cellspacing=\"1\" border=\"0\" class=\"forumline\">"; echo "<tr><th class=\"thHead\" align=\"center\">Module Uninstallation Information</th></tr>"; echo "<tr><td class=\"row1\" align=\"center\"><span class=\"gen\">" . $message . "</span></td></tr>"; echo "</table><br />"; ?> --- NEW FILE: mx_install_readme.htm --- <html> <head> <title>Mx Portal installation - readme</title> <meta http-equiv="Content-Type" content="text/html; charset=windows-1250"> <!-- link rel="stylesheet" href="../../templates/subSilver/subSilver.css" type="text/css" --> <style type="text/css"> <!-- /* The original subSilver Theme for phpBB version 2+ Created by subBlue design http://www.subBlue.com NOTE: These CSS definitions are stored within the main page body so that you can use the phpBB2 theme administration centre. When you have finalised your style you could cut the final CSS code and place it in an external file, deleting this section to save bandwidth. */ /* General page style. The scroll bar colours only visible in IE5.5+ */ body { background-color: #E5E5E5; scrollbar-face-color: #DEE3E7; scrollbar-highlight-color: #FFFFFF; scrollbar-shadow-color: #DEE3E7; scrollbar-3dlight-color: #D1D7DC; scrollbar-arrow-color: #006699; scrollbar-track-color: #EFEFEF; scrollbar-darkshadow-color: #98AAB1; } /* General font families for common tags */ font, th, td, p { font-family: Verdana, Arial, Helvetica, sans-serif } a:link, a:active, a:visited { color : #006699; } a:hover { text-decoration: underline; color : #DD6900; } hr { height: 0px; border: solid #D1D7DC 0px; border-top-width: 1px;} /* This is the border line & background colour round the entire page */ .bodyline { background-color: #FFFFFF; border: 1px #98AAB1 solid; } /* This is the outline round the main forum tables */ .forumline { background-color: #FFFFFF; border: 2px #006699 solid; } /* Main table cell colours and backgrounds */ td.row1 { background-color: #EFEFEF; } td.row2 { background-color: #DEE3E7; } td.row3 { background-color: #D1D7DC; } /* This is for the table cell above the Topics, Post & Last posts on the index.php page By default this is the fading out gradiated silver background. However, you could replace this with a bitmap specific for each forum */ td.rowpic { background-color: #FFFFFF; background-image: url('../../install/templates/subSilver/images/cellpic2.jpg'); background-repeat: repeat-y } /* Header cells - the blue and silver gradient backgrounds */ th { color: #FFA34F; font-size: 11px; font-weight : bold; background-color: #006699; height: 25px; background-image: url('../../install/templates/subSilver/images/cellpic3.gif'); } td.cat, td.catHead, td.catSides, td.catLeft, td.catRight, td.catBottom { background-image: url('../../install/templates/subSilver/images/cellpic1.gif'); background-color:#D1D7DC; border: medium solid #FFFFFF; height: 28px } /* Setting additional nice inner borders for the main table cells. The names indicate which sides the border will be on. Don't worry if you don't understand this, just ignore it :-) */ td.cat, td.catHead, td.catBottom { height: 29px; border-width: 0px 0px 0px 0px; } th.thHead, th.thSides, th.thTop, th.thLeft, th.thRight, th.thBottom, th.thCornerL, th.thCornerR { font-weight: bold; border: #FFFFFF; border-style: solid; height: 28px; } td.row3Right, td.spaceRow { background-color: #D1D7DC; border: #FFFFFF; border-style: solid; } th.thHead, td.catHead { font-size: 12px; border-width: 1px 1px 0px 1px; } th.thSides, td.catSides, td.spaceRow { border-width: 0px 1px 0px 1px; } th.thRight, td.catRight, td.row3Right { border-width: 0px 1px 0px 0px; } th.thLeft, td.catLeft { border-width: 0px 0px 0px 1px; } th.thBottom, td.catBottom { border-width: 0px 1px 1px 1px; } th.thTop { border-width: 1px 0px 0px 0px; } th.thCornerL { border-width: 1px 0px 0px 1px; } th.thCornerR { border-width: 1px 1px 0px 0px; } /* The largest text used in the index page title and toptic title etc. */ .maintitle { font-weight: bold; font-size: 22px; font-family: "Trebuchet MS",Verdana, Arial, Helvetica, sans-serif; text-decoration: none; line-height : 120%; color : #000000; } /* General text */ .gen { font-size : 12px; } .genmed { font-size : 11px; } .gensmall { font-size : 10px; } .gen, .genmed, .gensmall { color : #000000; } a.gen, a.genmed, a.gensmall { color: #006699; text-decoration: none; } a.gen:hover, a.genmed:hover, a.gensmall:hover { color: #DD6900; text-decoration: underline; } /* The register, login, search etc links at the top of the page */ .mainmenu { font-size : 11px; color : #000000 } a.mainmenu { text-decoration: none; color : #006699; } a.mainmenu:hover{ text-decoration: underline; color : #DD6900; } /* Forum category titles */ .cattitle { font-weight: bold; font-size: 12px ; letter-spacing: 1px; color : #006699} a.cattitle { text-decoration: none; color : #006699; } a.cattitle:hover{ text-decoration: underline; } /* Forum title: Text and link to the forums used in: index.php */ .forumlink { font-weight: bold; font-size: 12px; color : #006699; } a.forumlink { text-decoration: none; color : #006699; } a.forumlink:hover{ text-decoration: underline; color : #DD6900; } /* Used for the navigation text, (Page 1,2,3 etc) and the navigation bar when in a forum */ .nav { font-weight: bold; font-size: 11px; color : #000000;} a.nav { text-decoration: none; color : #006699; } a.nav:hover { text-decoration: underline; } /* titles for the topics: could specify viewed link colour too */ .topictitle, h1, h2 { font-weight: bold; font-size: 11px; color : #000000; } a.topictitle:link { text-decoration: none; color : #006699; } a.topictitle:visited { text-decoration: none; color : #5493B4; } a.topictitle:hover { text-decoration: underline; color : #DD6900; } /* Name of poster in viewmsg.php and viewtopic.php and other places */ .name { font-size : 11px; color : #000000;} /* Location, number of posts, post date etc */ .postdetails { font-size : 10px; color : #000000; } /* The content of the posts (body of text) */ .postbody { font-size : 12px; line-height: 18px} a.postlink:link { text-decoration: none; color : #006699 } a.postlink:visited { text-decoration: none; color : #5493B4; } a.postlink:hover { text-decoration: underline; color : #DD6900} /* Quote & Code blocks */ .code { font-family: Courier, 'Courier New', sans-serif; font-size: 11px; color: #006600; background-color: #FAFAFA; border: #D1D7DC; border-style: solid; border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px } .quote { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #444444; line-height: 125%; background-color: #FAFAFA; border: #D1D7DC; border-style: solid; border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px } /* Copyright and bottom info */ .copyright { font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; color: #444444; letter-spacing: -1px;} a.copyright { color: #444444; text-decoration: none;} a.copyright:hover { color: #000000; text-decoration: underline;} /* Form elements */ input, textarea, select { color : #000000; font: normal 11px Verdana, Arial, Helvetica, sans-serif; border-color : #000000; } /* The text input fields background colour */ input.post, textarea.post, select { background-color : #FFFFFF; } input { text-indent : 2px; } /* The buttons used for bbCode styling in message post */ input.button { background-color : #EFEFEF; color : #000000; font-size: 11px; font-family: Verdana, Arial, Helvetica, sans-serif; } /* The main submit button option */ input.mainoption { background-color : #FAFAFA; font-weight : bold; } /* None-bold submit button */ input.liteoption { background-color : #FAFAFA; font-weight : normal; } /* This is the line in the posting page which shows the rollover help line. This is actually a text box, but if set to be the same colour as the background no one will know ;) */ .helpline { background-color: #DEE3E7; border-style: none; } /* Import the fancy styles for IE only (NS4.x doesn't use the @import function) */ @import url("../../templates/subSilver/formIE.css"); --> </style> <script language="Javascript" type="text/javascript"> <!-- if ( 0 ) { window.open('privmsg.php?mode=newpm', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');; } //--> </script> </head> <body bgcolor="#FFFFFF" text="#000000"> <table> <tr> <td colspan="2"><p><b> <font style="font-size: 9pt; font-family:Verdana, Arial, Helvetica, sans-serif">MX Module - <span lang="ro">Radio</span> <span lang="ro">Cast</span> <br> v. <span lang="ro">1</span>.0.<span lang="ro">0 RC 2</span> </font></b></p> <p><span style="line-height: normal; font-weight:bold"> <font style="font-size: 9pt">Module</font></span><font style="font-size: 9pt"> <br /> - for mxBB-Portal v. 2.8.</font><span lang="ro"><font style="font-size: 9pt">x</font></span></p> <p><strong><font style="font-size: 9pt">Author</font></strong><font style="font-size: 9pt"><span lang="ro">: </span>OryNider (mxBB-Development Team)</font></p> <p><font style="font-size: 9pt"> <br /> <span style="font-weight: bold">Description</span> <br /> </font><span class="postbody">This Module allows you create the <span lang="ro">Radio </span>Center Page/Block where <span lang="ro"> admins/</span>users can <span lang="ro">add</span>, listen, rate and comment on s<span lang="ro">tations</span>. <br> Beside that, users can link URL of the <span lang="ro">station</span> from the <span lang="ro">shotcast or icecast like </span>server<span lang="ro">s</span>. <br> You have an admin panel that allows you to manage the features of the module. </span></p> <p><font style="font-size: 9pt"> <br /> </font><strong> <span style="font-size: 9pt">Features</span></strong><span style="font-size: 9pt"> - <span lang="ro">Radio </span>Center, Easy to install/uninstall module:</span><span class="postbody"></p> <ul> <li> <p style="margin-top: 0; margin-bottom: 0"> <span style="text-decoration: underline" lang="ro">Station</span><span style="TEXT-DECORATION: underline"> Song Image</span> - You can add the S<span lang="ro">tation</span> Image to the section of each <span lang="ro">radio station</span>. <span lang="ro">(</span>any image you want <img alt="Wink" src="http://www.mx-system.com/forum/images/smiles/icon_wink.gif" border="0" width="15" height="15"> ) <br> Maximum image size is configurable in <span lang="ro">A</span>dminCP <img alt="Very Happy" src="http://www.mx-system.com/forum/images/smiles/icon_biggrin.gif" border="0" width="15" height="15"> <br> </li> <li> <p style="margin-top: 0; margin-bottom: 0"> <span style="TEXT-DECORATION: underline">Search <span lang="ro"> Station</span></span> - is helping you find the s<span lang="ro">tation</span> by Title, <span lang="ro">Dj</span> or Poster quickly and easily. <br> </li> <li> <p style="margin-top: 0; margin-bottom: 0"> <span style="TEXT-DECORATION: underline">Cat Views</span> - is adding a viewed counter of each Category; <br> </li> <li> <p style="margin-top: 0; margin-bottom: 0"> <span style="text-decoration: underline" lang="ro">Share</span><span style="TEXT-DECORATION: underline"> S<span lang="ro">tation URL</span></span> - alows users to directly <span lang="ro">copy/paste</span> the s<span lang="ro">tation</span> <span lang="ro">listen url </span>to their <span lang="ro">favorite player</span>.</li> </ul> </span> <p> <font style="font-size: 9pt"> <br /> I. <a href="#install">Installation instructions</a> <br /> <br /> II. <a href="#themes">Additional styles</a> <br /> <br /> III. <a href="#languages">Additional languages</a><br /> <br /> <a target="_blank" class="postlink" href="http://mxbb-portal.evonet.ro/index.php?page=15">DEMO</a><br /> <br /></font><a name="install"> <font style="font-size: 9pt"> <br /> <span style="font-weight: bold">I. Installation Instructions</span> <br /> To install this module, follow these instructions.</font></a></p> <font style="font-size: 9pt">To</font><font style="font-size: 9pt"> summarize:<br> If installing from scratch, use import module in the AdminCP.<br> If upgrading, uninstall, then reinstall from AdminCP<br> If uninstalling, use the delete feature in the AdminCP</font></p> <p><font style="font-size: 9pt">Note: If upgrading,<span lang="ro"> </span>uninstall module without <span lang="ro">deleating</span> db entries, or else you'll lose all module data!<br /> <br /> <br /> </font> <span class="gensmall"><a href="#top" onclick="window.scrollTo(0,0); return false"> <font style="font-size: 9pt">Back to Top</font></a></span><font style="font-size: 9pt"> <br /> <br /><b>II. Additional Styles</b> <br> This module is compatible with any theme/style. <br> </font> <a name="themes"><font style="font-size: 9pt"> </font></font></p> <p style="margin-top: 0; margin-bottom: 0"> <span class="gensmall"></span> <span class="gensmall"><font face="Tahoma"> <a href="#top" onclick="window.scrollTo(0,0); return false"> <font style="font-size: 9pt">Back to Top</font></a></font></span><font face="Tahoma"><font style="font-size: 9pt"> <br /><a name="languages"> <br /> <span style="font-weight: bold">III. Additional Languages</span> <br /> First check to see if your language is already translated. </a> <br /> <br /> If exists, download and install in the modules/mx_radio/language folder. If not, duplicate (copy and paste) any included language file, rename to match your language, translate using any texteditor, save and upload. <br /> <br /> </font> <span class="gensmall"><a href="#top" onclick="window.scrollTo(0,0); return false"> <font style="font-size: 9pt">Back to Top</font></a></span><font style="font-size: 9pt"> </font> <p> <font style="font-size: 9pt">/MxBB Development Team</font></p> </td> </tr> </table> </body> </html> --- NEW FILE: db_install.php --- <?php /** * * @package mxBB Portal Module - mx_radiocast * @version $Id: db_install.php,v 1.1 2007/06/06 23:03: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 * */ ini_set( 'display_errors', '1' ); define( 'IN_PORTAL', true ); if ( !defined( 'IN_ADMIN' ) ) { $mx_root_path = './../../'; $phpEx = substr(strrchr(__FILE__, '.'), 1); include( $mx_root_path . 'common.' . $phpEx ); // Start session management $mx_user->init($user_ip, PAGE_INDEX); // End session management if ( !$userdata['session_logged_in'] ) { die( "Hacking attempt(1)" ); } if ( $userdata['user_level'] != ADMIN ) { die( "Hacking attempt(2)" ); } } $mx_module_version = '1.0.0'; $mx_module_copy = 'mxBB <i> - Radio Cast</i> module by <a href="http://www.mxbb.net/" target="_blank">OryNider</a>'; // If fresh install if ( !$result = $db->sql_query( "SELECT config_name from " . $mx_table_prefix . "radiocast_config" ) ) { $message = "<b>This is a fresh install!</b><br/><br/>"; $sql = array(); $sql[] = "DROP TABLE IF EXISTS " . $mx_table_prefix . "radiocast"; $sql[] = "DROP TABLE IF EXISTS " . $mx_table_prefix . "radiocast_rate"; $sql[] = "DROP TABLE IF EXISTS " . $mx_table_prefix . "radiocast_comment"; $sql[] = "DROP TABLE IF EXISTS " . $mx_table_prefix . "radiocast_cat"; $sql[] = "DROP TABLE IF EXISTS " . $mx_table_prefix . "radiocast_config"; $sql[] = "CREATE TABLE ". $mx_table_prefix . "radiocast ( station_id int(11) UNSIGNED NOT NULL auto_increment, station_filename varchar(255) NOT NULL, station_imagename varchar(255) NOT NULL, station_title varchar(255) NOT NULL, station_url varchar(255) NOT NULL, station_desc text, station_singer varchar(255) NOT NULL, station_user_id mediumint(8) NOT NULL, station_username varchar(32), station_user_ip char(8) NOT NULL DEFAULT '0', station_time int(11) UNSIGNED NOT NULL, station_cat_id mediumint(8) UNSIGNED NOT NULL DEFAULT '1', station_view_count int(11) UNSIGNED NOT NULL DEFAULT '0', station_lock tinyint(3) NOT NULL DEFAULT '0', station_approval tinyint(3) NOT NULL DEFAULT '1', station_download_count varchar(255) NOT NULL, PRIMARY KEY (station_id), KEY station_cat_id (station_cat_id), KEY station_user_id (station_user_id), KEY station_time (station_time) ) TYPE=MyISAM"; $sql[] = "CREATE TABLE ". $mx_table_prefix . "radiocast_rate ( rate_station_id int(11) UNSIGNED NOT NULL, rate_user_id mediumint(8) NOT NULL, rate_user_ip char(8) NOT NULL, rate_point tinyint(3) UNSIGNED NOT NULL, KEY rate_station_id (rate_station_id), KEY rate_user_id (rate_user_id), KEY rate_user_ip (rate_user_ip), KEY rate_point (rate_point) ) TYPE=MyISAM"; $sql[] = "CREATE TABLE ". $mx_table_prefix . "radiocast_comment ( comment_id int(11) UNSIGNED NOT NULL auto_increment, comment_station_id int(11) UNSIGNED NOT NULL, comment_user_id mediumint(8) NOT NULL, comment_username varchar(32), comment_user_ip char(8) NOT NULL, comment_time int(11) UNSIGNED NOT NULL, comment_text TEXT, comment_edit_time int(11) UNSIGNED, comment_edit_count smallint(5) UNSIGNED NOT NULL DEFAULT '0', comment_edit_user_id mediumint(8), PRIMARY KEY(comment_id), KEY comment_station_id (comment_station_id), KEY comment_user_id (comment_user_id), KEY comment_user_ip (comment_user_ip), KEY comment_time (comment_time) ) TYPE=MyISAM"; $sql[] = "CREATE TABLE ". $mx_table_prefix . "radiocast_cat ( cat_id mediumint(8) UNSIGNED NOT NULL auto_increment, cat_title varchar(255) NOT NULL, cat_desc text, cat_order mediumint(8) NOT NULL, cat_views mediumint(8) NOT NULL, cat_view_level tinyint(3) NOT NULL DEFAULT '-1', cat_upload_level tinyint(3) NOT NULL DEFAULT '0', cat_rate_level tinyint(3) NOT NULL DEFAULT '0', cat_comment_level tinyint(3) NOT NULL DEFAULT '0', cat_edit_level tinyint(3) NOT NULL DEFAULT '0', cat_delete_level tinyint(3) NOT NULL DEFAULT '2', cat_view_groups varchar(255), cat_upload_groups varchar(255), cat_rate_groups varchar(255), cat_comment_groups varchar(255), cat_edit_groups varchar(255), cat_delete_groups varchar(255), cat_moderator_groups varchar(255), cat_approval tinyint(3) NOT NULL DEFAULT '0', PRIMARY KEY (cat_id), KEY cat_order (cat_order) ) TYPE=MyISAM"; $sql[] = "CREATE TABLE " . $mx_table_prefix . "radiocast_config ( config_name VARCHAR(255) NOT NULL default '', config_value varchar(255) NOT NULL default '', PRIMARY KEY (config_name) ) TYPE=MyISAM"; $sql[] = "INSERT INTO " . $mx_table_prefix . "radiocast_config VALUES ('max_stations', '1024')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "radiocast_config VALUES ('user_stations_limit', '50')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "radiocast_config VALUES ('mod_stations_limit', '250')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "radiocast_config VALUES ('max_file_size', '3145728')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "radiocast_config VALUES ('rows_per_page', '20')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "radiocast_config VALUES ('cols_per_page', '1')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "radiocast_config VALUES ('top', '5')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "radiocast_config VALUES ('sort_method', 'station_time')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "radiocast_config VALUES ('sort_order', 'DESC')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "radiocast_config VALUES ('mp3_allowed', '1')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "radiocast_config VALUES ('wav_allowed', '1')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "radiocast_config VALUES ('wma_allowed', '1')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "radiocast_config VALUES ('wmv_allowed', '1')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "radiocast_config VALUES ('mid_allowed', '1')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "radiocast_config VALUES ('ram_allowed', '1')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "radiocast_config VALUES ('au_allowed', '1')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "radiocast_config VALUES ('mpeg_allowed', '1')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "radiocast_config VALUES ('avi_allowed', '1')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "radiocast_config VALUES ('swf_allowed', '1')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "radiocast_config VALUES ('qt_allowed', '1')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "radiocast_config VALUES ('rm_allowed', '1')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "radiocast_config VALUES ('desc_length', '512000')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "radiocast_config VALUES ('hotlink_prevent', '0')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "radiocast_config VALUES ('hotlink_allowed', 'mxbb.net')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "radiocast_config VALUES ('rate', '1')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "radiocast_config VALUES ('rate_scale', '10')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "radiocast_config VALUES ('comment', '1')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "radiocast_config VALUES ('radiocast_version', '.0.0')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "radiocast_config VALUES ('max_image_size', '10240')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "radiocast_config VALUES ('max_image_width', '300')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "radiocast_config VALUES ('max_image_height', '200')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "radiocast_config VALUES ('download', '1')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "radiocast_config VALUES ('enable_integration', '1')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "radiocast_config VALUES ('override_default_pages', '0')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "radiocast_config VALUES ('index', '5')"; $sql[] = "UPDATE " . $mx_table_prefix . "module" . " SET module_version = '" . $mx_module_version . "', module_copy = '" . $mx_module_copy . "' WHERE module_id = '" . $mx_module_id . "'"; $message .= mx_do_install_upgrade( $sql ); } else { // If already installed $message = "<b>Module is already installed... consider upgrading ;)</b><br/><br/>"; } echo "<br /><br />"; echo "<table width=\"90%\" align=\"center\" cellpadding=\"4\" cellspacing=\"1\" border=\"0\" class=\"forumline\">"; echo "<tr><th class=\"thHead\" align=\"center\">Module Installation/Upgrading/Uninstallation Information - Module specific DB tables</th></tr>"; echo "<tr><td class=\"row1\" align=\"left\"><span class=\"gen\">" . $message . "</span></td></tr>"; echo "</table><br />"; ?> --- NEW FILE: Radio_Cast.pak --- module=+:76=+:Radio Cast=+:modules/mx_radiocast/=+:Radio_Cast=+:1 New_function=+:---------------------------=+:0=+:0=+:0=+:0=+:0 function=+:76=+:94=+:Radio_Cast=+:Radio Cast=+:radiocast.php=+: parameter=+:0=+:0=+:0=+:endoflist=+:0=+:0 block=+:=+:Radio Cast=+:Demo block=+:94=+:0=+:5=+:0=+:0=+:0=+:0=+:1=+:1 function=+:0=+:0=+:0=+:endoflist=+:0=+:0 --- NEW FILE: radiocast.php --- <?php /** * * @package mxBB Portal Module - mx_radiocast * @version $Id: radiocast.php,v 1.1 2007/06/06 23:03:45 orynider Exp $ * @copyright (c) 2007 [ory...@rd..., OryNider] mxBB Development Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ // // ERROR HANDLING // //error_reporting( E_ALL ); 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 // $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/'; // // Get general music information // include($radiocast_root_path . 'radiocast_common.'.$phpEx); // // Nav switch for mx // // --------------------- // Check $album_user_id // --------------------- if (isset ($_POST['user_id'])) { $radiocast_user_id = intval($_POST['user_id']); } elseif (isset ($_GET['user_id'])) { $radiocast_user_id = intval($_GET['user_id']); } else { $radiocast_user_id = $userdata['user_id']; } // //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 { $mode= 'radiocast_index'; } if ( $mode == 'radiocast_cat' ) { include($module_root_path. 'includes/radiocast_cat.'.$phpEx); } else if ( $mode == 'radiocast_comment' ) { include($module_root_path. 'includes/radiocast_comment.'.$phpEx); } else if ( $mode == 'radiocast_comment_delete' ) { include($module_root_path. 'includes/radiocast_comment_delete.'.$phpEx); } else if ( $mode == 'radiocast_comment_edit' ) { include($module_root_path. 'includes/radiocast_comment_edit.'.$phpEx); } else if ( $mode == 'radiocast_delete' ) { include($module_root_path. 'includes/radiocast_delete.'.$phpEx); } else if ( $mode == 'radiocast_download' ) { include($module_root_path. 'includes/radiocast_download.'.$phpEx); } else if ( $mode == 'radiocast_add' ) { include($module_root_path. 'includes/radiocast_add.'.$phpEx); } else if ( $mode == 'radiocast_edit' ) { include($module_root_path. 'includes/radiocast_edit.'.$phpEx); } else if ( $mode == 'radiocast_list' ) { include($module_root_path. 'includes/radiocast_list.'.$phpEx); } else if ( $mode == 'radiocast_modcp' ) { include($module_root_path. 'includes/radiocast_modcp.'.$phpEx); } else if ( $mode == 'radiocast_player' ) { include($module_root_path. 'includes/radiocast_player.'.$phpEx); } else if ( $mode == 'radiocast_rate' ) { include($module_root_path. 'includes/radiocast_rate.'.$phpEx); } else if ( $mode == 'radiocast_station' ) { include($module_root_path. 'includes/radiocast_station.'.$phpEx); } else if ( $mode == 'radiocast_stream' ) { include($module_root_path. 'includes/radiocast_stream.'.$phpEx); } else if( !is_object($mx_block)) { die("Hacking attempt"); } else { /* +---------------------------------------------------------- | Build Categories Index +---------------------------------------------------------- */ $sql = "SELECT c.*, COUNT(s.station_id) AS count FROM ". RADIOCAST_CAT_TABLE ." AS c LEFT JOIN ". RADIOCAST_TABLE ." AS s ON c.cat_id = s.station_cat_id WHERE cat_id <> 0 GROUP BY cat_id ORDER BY cat_order ASC"; if( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Could not query categories list', '', __LINE__, __FILE__, $sql); } $catrows = array(); while( $row = $db->sql_fetchrow($result) ) { $radiocast_user_access = radiocast_user_access($row['cat_id'], $row, 1, 0, 0, 0, 0, 0); // VIEW if ($radiocast_user_access['view'] == 1) { $catrows[] = $row; } } $allowed_cat = ''; // For Recent Public Stations below // // $catrows now stores all categories which this user can view. Dump them out! // for ($i = 0; $i < count($catrows); $i++) { // -------------------------------- // Build allowed category-list (for recent stations after here) // -------------------------------- $allowed_cat .= ($allowed_cat == '') ? $catrows[$i]['cat_id'] : ',' . $catrows[$i]['cat_id']; // -------------------------------- // Build moderators list // -------------------------------- $l_moderators = ''; $moderators_list = ''; $grouprows= array(); if( $catrows[$i]['cat_moderator_groups'] != '') { // We have usergroup_ID, now we need usergroup name $sql = "SELECT group_id, group_name FROM " . GROUPS_TABLE . " WHERE group_single_user <> 1 AND group_type <> ". GROUP_HIDDEN ." AND group_id IN (". $catrows[$i]['cat_moderator_groups'] .") ORDER BY group_name ASC"; if ( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, 'Could not obtain usergroups data', '', __LINE__, __FILE__, $sql); } while( $row = $db->sql_fetchrow($result) ) { $grouprows[] = $row; } } if( count($grouprows) > 0 ) { $l_moderators = $lang['Moderators']; 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; } } // ------------------------------------------ // Get Last station of this Category // ------------------------------------------ if ($catrows[$i]['count'] == 0) { // // Oh, this category is empty // $last_station_info = $lang['No_Stations']; $u_last_station = ''; $last_station_title = ''; } else { // ---------------------------- // Check Station Approval // ---------------------------- if(($catrows[$i]['cat_approval'] == RADIOCAST_ADMIN) or ($catrows[$i]['cat_approval'] == RADIOCAST_MOD)) { $station_approval_sql = 'AND s.station_approval = 1'; // station Approval ON } else { $station_approval_sql = ''; // station Approval OFF } // ---------------------------- // OK, we may do a query now... // ---------------------------- $sql = "SELECT s.station_id, s.station_title, s.station_singer, s.station_user_id, s.station_username, s.station_time, s.station_cat_id, u.user_id, u.username FROM ". RADIOCAST_TABLE ." AS s LEFT JOIN ". USERS_TABLE ." AS u ON s.station_user_id = u.user_id WHERE s.station_cat_id = '". $catrows[$i]['cat_id'] ."' $station_approval_sql ORDER BY s.station_time DESC LIMIT 1"; if ( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, 'Could not get last station information', '', __LINE__, __FILE__, $sql); } $lastrow = $db->sql_fetchrow($result); // ---------------------------- // Write the Date // ---------------------------- $last_station_info = create_date($board_config['default_dateformat'], $lastrow['station_time'], $board_config['board_timezone']); $last_station_info .= '<br />'; // ---------------------------- // Write username of last poster // ---------------------------- if( ($lastrow['user_id'] == RADIOCAST_GUEST) or ($lastrow['username'] == '') ) { $last_station_info .= ($lastrow['station_username'] == '') ? $lang['Guest'] : $lastrow['station_username']; } else { $last_station_info .= $lang['Poster'] .': <a href="'. append_sid($phpbb_root_path . "profile.$phpEx?mode=viewprofile&". POST_USERS_URL .'='. $lastrow['user_id']) .'">'. $lastrow['username'] .'</a>'; } // ---------------------------- // Write the last station's title. // Truncate it if it's too long // ---------------------------- if( !isset($radiocast_config['last_station_title_length']) ) { $radiocast_config['last_station_title_length'] = 25; } $lastrow['station_title'] = $lastrow['station_title']; if (strlen($lastrow['station_title']) > $radiocast_config['last_station_title_length']) { $lastrow['station_title'] = substr($lastrow['station_title'], 0, $radiocast_config['last_station_title_length']) . '...'; } $last_station_info .= '<br />'. $lang['Station_Title'] .': <a href="'; $last_station_info .= append_sid(this_rc_mxurl("radiocast_mode=radiocast_player&station_id=". $lastrow['station_id'])) .'">' ; $last_station_info .= $lastrow['station_title'] .'</a>'; } // END of Last Station // ------------------------------------------ // Parse to template the info of the current Category // ------------------------------------------ $template->assign_block_vars('catrow', array( 'U_VIEW_CAT' => append_sid(this_rc_mxurl("radiocast_mode=radiocast_cat&cat_id=". $catrows[$i]['cat_id'])), 'CAT_TITLE' => $catrows[$i]['cat_title'], 'CAT_DESC' => $catrows[$i]['cat_desc'], 'CAT_VIEWS' => $catrows[$i]['cat_views'], 'L_MODERATORS' => $l_moderators, 'MODERATORS' => $moderators_list, 'STATIONS' => $catrows[$i]['count'], 'LAST_STATION_INFO' => $last_station_info) ); } // END of Categories Index /* +---------------------------------------------------------- | Top Stations +---------------------------------------------------------- */ if( isset($HTTP_GET_VARS['sort_method']) ) { switch ($HTTP_GET_VARS['sort_method']) { case 'station_time': $sort_method = 'station_time'; break; case 'station_view_count': $sort_method = 'station_view_count'; break; case 'rating': $sort_method = 'rating'; break; case 'comments': $sort_method = 'comments'; break; case 'new_comment': $sort_method = 'new_comment'; break; default: $sort_method = $radiocast_config['sort_method']; } } else if( isset($HTTP_POST_VARS['sort_method']) ) { switch ($HTTP_POST_VARS['sort_method']) { case 'station_time': $sort_method = 'station_time'; break; case 'station_view_count': $sort_method = 'station_view_count'; break; case 'rating': $sort_method = 'rating'; break; case 'comments': $sort_method = 'comments'; break; case 'new_comment': $sort_method = 'new_comment'; break; default: $sort_method = $radiocast_config['sort_method']; } } else { $sort_method = $radiocast_config['sort_method']; } // Station limit if( isset($HTTP_GET_VARS['station_limit']) ) { switch ($HTTP_GET_VARS['station_limit']) { case '5': $station_limit = '5'; break; case '10': $station_limit = '10'; break; case '15': $station_limit = '15'; break; case '20': $station_limit = '20'; break; default: $station_limit = $radiocast_config['top']; } } else if( isset($HTTP_POST_VARS['station_limit']) ) { switch ($HTTP_POST_VARS['station_limit']) { case '5': $station_limit = '5'; break; case '10': $station_limit = '10'; break; case '15': $station_limit = '15'; break; case '20': $station_limit = '20'; break; default: $station_limit = $radiocast_config['top']; } } else { $station_limit = $radiocast_config['top']; } // // We may do query now // if ($allowed_cat != '') { $sql = "SELECT s.station_id, s.station_title, s.station_desc, s.station_singer, s.station_user_id, s.station_user_ip, s.station_username, s.station_time, s.station_cat_id, s.station_view_count, u.user_id, u.username, r.rate_station_id, AVG(r.rate_point) AS rating, COUNT(DISTINCT c.comment_id) AS comments, MAX(c.comment_id) as new_comment FROM ". RADIOCAST_TABLE ." AS s LEFT JOIN ". USERS_TABLE ." AS u ON s.station_user_id = u.user_id LEFT JOIN ". RADIOCAST_CAT_TABLE ." AS ct ON s.station_cat_id = ct.cat_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 s.station_cat_id IN ($allowed_cat) AND ( s.station_approval = 1 OR ct.cat_approval = 0 ) GROUP BY s.station_id ORDER BY $sort_method DESC LIMIT $station_limit"; if( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Could not query top stations information', '', __LINE__, __FILE__, $sql); } $topstationrow = array(); while( $row = $db->sql_fetchrow($result) ) { $topstationrow[] = $row; } if (count($topstationrow) > 0) { for ($i = 0; $i < count($topstationrow); $i += $radiocast_config['rows_per_page']) { $template->assign_block_vars('top_stations', array()); for ($j = $i; $j < ($i + $radiocast_config['rows_per_page']); $j++) { if( $j >= count($topstationrow) ) { break; } if(!$topstationrow[$j]['rating']) { $topstationrow[$j]['rating'] = $lang['Not_rated']; } else { $topstationrow[$j]['rating'] = round($topstationrow[$j]['rating'], 2); } $template->assign_block_vars('top_stations.top_row', array( 'U_STATION' => append_sid(this_rc_mxurl("radiocast_mode=radiocast_player&station_id=". $topstationrow[$j]['station_id'])), 'DESC' => $topstationrow[$j]['station_desc'] ) ); if( ($topstationrow[$j]['user_id'] == RADIOCAST_GUEST) or ($topstationrow[$j]['username'] == '') ) { $top_poster = ($topstationrow[$j]['station_username'] == '') ? $lang['Guest'] : $topstationrow[$j]['station_username']; } else { $top_poster = '<a href="'. append_sid($phpbb_root_path . "profile.$phpEx?mode=viewprofile&". POST_USERS_URL .'='. $topstationrow[$j]['user_id']) .'">'. $topstationrow[$j]['username'] .'</a>'; } $template->assign_block_vars('top_stations.top_detail', array( 'TITLE' => '<a href="'. append_sid(this_rc_mxurl("radiocast_mode=radiocast_player&station_id=". $topstationrow[$j]['station_id'])) . '">' . $topstationrow[$j]['station_title'] . '</a>', 'SINGER' => $topstationrow[$j]['station_singer'], 'RADIO_FRONT_IMG' => $mx_images['radio_front'], 'POSTER' => $top_poster, 'TIME' => create_date($board_config['default_dateformat'], $topstationrow[$j]['station_time'], $board_config['board_timezone']), 'VIEW' => $topstationrow[$j]['station_view_count'], 'RATING' => ($radiocast_config['rate'] == 1) ? ( '<a href="'. append_sid(this_rc_mxurl("radiocast_mode=radiocast_rate&station_id=". $topstationrow[$j]['station_id'])) . '">' . $topstationrow[$j]['rating'] . '</a>' ) : '', 'COMMENTS' => ($radiocast_config['comment'] == 1) ? ( '<a href="'. append_sid(this_rc_mxurl("radiocast_mode=radiocast_comment&station_id=". $topstationrow[$j]['station_id'])) . '">' . $topstationrow[$j]['comments'] . '</a>' ) : '', 'IP' => ($userdata['user_level'] == ADMIN) ? $lang['IP_Address'] . ': <a href="http://www.nic.com/cgi-bin/whois.cgi?query=' . decode_ip($topstationrow[$j]['station_user_ip']) . '" target="_blank">' . decode_ip($topstationrow[$j]['station_user_ip']) .'</a><br />' : '' ) ); } } } else { // // No stations Found // $template->assign_block_vars('no_stations', array()); } } else { // // No Cats Found // $template->assign_block_vars('no_stations', array()); } // ------------------------------------ // additional sorting options // ------------------------------------ $sort_rating_option = ''; $sort_comments_option = ''; if( $radiocast_config['rate'] == 1 ) { $sort_rating_option = '<option value="rating" '; $sort_rating_option .= ($sort_method == 'rating') ? 'selected="selected"' : ''; $sort_rating_option .= '>' . $lang['Rating'] .'</option>'; } if( $radiocast_config['comment'] == 1 ) { $sort_comments_option = '<option value="comments" '; $sort_comments_option .= ($sort_method == 'comments') ? 'selected="selected"' : ''; $sort_comments_option .= '>' . $lang['Comments'] .'</option>'; $sort_new_comment_option = '<option value="new_comment" '; $sort_new_comment_option .= ($sort_method == 'new_comment') ? 'selected="selected"' : ''; $sort_new_comment_option .= '>' . $lang['New_Comment'] .'</option>'; } /* +---------------------------------------------------------- | Start output the page +---------------------------------------------------------- */ $page_title = $lang['Radio']; if ( !is_object($mx_block)) { include($mx_root_path . 'includes/page_header.'.$phpEx); } $template->set_filenames(array( 'body' => 'radiocast_index_body.tpl') ); $template->assign_vars(array( 'L_CATEGORY' => $lang['Category'], 'L_STATIONS' => $lang['Stations'], 'L_CAT_VIEWS' => $lang['Cat_Views'], 'L_LAST_STATION' => $lang['Last_Station'], 'S_RADIOCAST_ACTION' => append_sid(this_rc_mxurl()), 'S_ROWS' => $radiocast_config['rows_per_page'], 'S_ROW_WIDTH' => (100/$radiocast_config['rows_per_page']) . '%', 'L_TOP_STATIONS' => $lang['Top_Stations'], 'L_SELECT_SORT_METHOD' => $lang['Select_sort_method'], 'L_STATION_LIMIT' => $lang['Station_Limit'], 'L_NO_STATIONS' => $lang['No_Stations'], 'L_STATION_TITLE' => $lang['Station_Title'], 'L_SINGER' => $lang['Singer'], 'L_POSTER' => $lang['Poster'], 'L_POSTED' => $lang['Posted'], 'L_RATING' => $lang['Rating'], 'L_COMMENTS' => $lang['Comments'], 'L_PUBLIC_CATS' => $lang['Public_Categories'], 'L_SEARCH_STATIONS' => $lang['Search_station'], 'S_RADIOCAST_LIST' => append_sid(this_rc_mxurl("radiocast_mode=radiocast_list")), 'L_TIME' => $lang['Time'], 'L_VIEW' => $lang['View'], 'SORT_TIME' => ($sort_method == 'station_time') ? 'selected="selected"' : '', 'SORT_VIEW' => ($sort_method == 'station_view_count') ? 'selected="selected"' : '', '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); } } ?> --- NEW FILE: Radio_Cast.nfo --- (This appears to be a binary file; contents omitted.) |
|
From: OryNider <ory...@us...> - 2007-06-06 23:02:48
|
Update of /cvsroot/mxbb/mx_radiocast/upload/station_image In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv1160/station_image Log Message: Directory /cvsroot/mxbb/mx_radiocast/upload/station_image added to the repository |
|
From: OryNider <ory...@us...> - 2007-06-06 23:02:06
|
Update of /cvsroot/mxbb/mx_radiocast/templates/subSilver/images/lang_english In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv1069/lang_english Log Message: Directory /cvsroot/mxbb/mx_radiocast/templates/subSilver/images/lang_english added to the repository |
|
From: OryNider <ory...@us...> - 2007-06-06 23:01:44
|
Update of /cvsroot/mxbb/mx_radiocast/templates/subSilver/images In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv981/images Log Message: Directory /cvsroot/mxbb/mx_radiocast/templates/subSilver/images added to the repository |
|
From: OryNider <ory...@us...> - 2007-06-06 23:01:44
|
Update of /cvsroot/mxbb/mx_radiocast/templates/subSilver/admin In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv981/admin Log Message: Directory /cvsroot/mxbb/mx_radiocast/templates/subSilver/admin added to the repository |
|
From: OryNider <ory...@us...> - 2007-06-06 23:01:32
|
Update of /cvsroot/mxbb/mx_radiocast/templates/subSilver In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv925/subSilver Log Message: Directory /cvsroot/mxbb/mx_radiocast/templates/subSilver added to the repository |
|
From: OryNider <ory...@us...> - 2007-06-06 23:00:50
|
Update of /cvsroot/mxbb/mx_radiocast/language/lang_english In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv32392/lang_english Log Message: Directory /cvsroot/mxbb/mx_radiocast/language/lang_english added to the repository |
|
From: OryNider <ory...@us...> - 2007-06-06 22:59:37
|
Update of /cvsroot/mxbb/mx_radiocast/templates In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv31710/templates Log Message: Directory /cvsroot/mxbb/mx_radiocast/templates added to the repository |
|
From: OryNider <ory...@us...> - 2007-06-06 22:59:37
|
Update of /cvsroot/mxbb/mx_radiocast/upload In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv31710/upload Log Message: Directory /cvsroot/mxbb/mx_radiocast/upload added to the repository |
|
From: OryNider <ory...@us...> - 2007-06-06 22:59:37
|
Update of /cvsroot/mxbb/mx_radiocast/radiocast_mod In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv31710/radiocast_mod Log Message: Directory /cvsroot/mxbb/mx_radiocast/radiocast_mod added to the repository |
|
From: OryNider <ory...@us...> - 2007-06-06 22:59:36
|
Update of /cvsroot/mxbb/mx_radiocast/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv31710/includes Log Message: Directory /cvsroot/mxbb/mx_radiocast/includes added to the repository |
|
From: OryNider <ory...@us...> - 2007-06-06 22:59:36
|
Update of /cvsroot/mxbb/mx_radiocast/admin In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv31710/admin Log Message: Directory /cvsroot/mxbb/mx_radiocast/admin added to the repository |