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 21:38:35
|
Update of /cvsroot/mxbb/mx_pageblock In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv29672 Added Files: db_install.php db_upgrade.php mx_install_readme.htm mx_pageblock.php pageblock.pak Log Message: --- NEW FILE: mx_install_readme.htm --- <html> <head> <title>MxBB Portal installation - readme</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <!-- 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 : 11px; } .genmed { font-size : 10px; } .gensmall { font-size : 9px; } .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" class="gen"><p><b><font face="Tahoma" size="4">mxBB Module -<i> mx_pageblock</i></font><font size="5"><br> <font size="2">v. 1.0</font></font></b></p> <p><strong>Module</strong><br /> - tested with mxBB Portal v. 2.8.0 RC 1</p> <p><strong>Author</strong><br /> OryNider<br /> <br /> <span style="font-weight: bold">Description</span> <br /> The MX Module is an addon product for the mxBB-portal. This module / block is bazed on mx_textblocks and does what php function include does. The page to include can be changed in blockCP.</p> <p><strong>Features</strong> <br /> Easy to use and install/uninstall module.</p> <p> <br /> I. <a href="#install">Installation instructions</a> <br /> <br /> <br /> II. <a href="#languages">Additional languages</a><br /> <br /> <br /><a name="install"> <br /> <span style="font-weight: bold">I. Installation Instructions</span> <br /> To install this module, follow these instructions.</a></p> To summarize:<br> If installing from scratch, use import module in the AdminCP.<br> If upgrading, upgrade from AdminCP<br> If uninstalling, use the delete feature in the AdminCP</p> <br /> <br /> <span class="gensmall"><a href="#top" onclick="window.scrollTo(0,0); return false">Back to Top</a></span> <br /> <br /> <br /> <br /><a name="languages"> <br /> <span style="font-weight: bold">II. 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_pageblock/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 /> <span class="gensmall"><a href="#top" onclick="window.scrollTo(0,0); return false">Back to Top</a></span> <p> /Mx Development Team</p> </td> </tr> </table> </body> </html> --- NEW FILE: db_upgrade.php --- <?php /** * * @package mxBB Portal Module - mx_pageblock * @version $Id: db_upgrade.php,v 1.1 2007/06/06 21:38:29 orynider Exp $ * @copyright (c) 2002-2006 [Jon Ohlsson] 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(1)" ); } if ( $userdata['user_level'] != ADMIN ) { die( "Hacking attempt(2)" ); } // End session management } $mx_module_version = '1.0.0'; $mx_module_copy = 'mxBB <i> - PageBlock Include</i> module by OryNider & <a href="http://www.mxbb.net" target="_blank">Mx Team</a>'; $message = "<b>Upgrading!</b><br/><br/>"; $sql = array(); $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 ); 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/Uninstalling 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: mx_pageblock.php --- <?php /** * * @package mxBB Portal Module - mx_pageblock * @version $Id: mx_pageblock.php,v 1.1 2007/06/06 21:38:30 orynider Exp $ * @copyright (c) 2002-2006 [Jon Ohlsson] mxBB Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ if( !defined('IN_PORTAL') || !is_object($mx_block)) { die("Hacking attempt"); } // $mx_root_path = "./"; $mx_module_path = $mx_root_path . "modules/mx_pageblock/"; // // Load language files. // 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 { include($module_root_path . 'language/lang_english/lang_main.' . $phpEx); } // // Start output of page // echo " <table width=\"100%\" cellpadding=\"0\" cellspacing=\"1\" border=\"0\" class=\"forumline\" style=\"border-top:none;\">\n"; echo " <tr>\n"; echo " <td class=\"row1\" align=\"left\" colspan=\"2\">\n"; if ( file_exists( $mx_block->get_parameters( 'Source_PageBlock' ) ) ) { include($mx_block->get_parameters( 'Source_PageBlock' )); } else { echo $lang['nofile_exist']; } echo " </td>\n"; echo " </tr>\n"; echo "</table>\n"; ?> --- NEW FILE: db_install.php --- <?php /** * * @package mxBB Portal Module - mx_pageblock * @version $Id: db_install.php,v 1.1 2007/06/06 21:38:29 orynider Exp $ * @copyright (c) 2002-2006 [Jon Ohlsson] 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(1)" ); } if ( $userdata['user_level'] != ADMIN ) { die( "Hacking attempt(2)" ); } // End session management } $mx_module_version = '1.0.0'; $mx_module_copy = 'mxBB <i> - PageBlock Include</i> module by OryNider & <a href="http://www.mxbb.net" target="_blank">Mx Team</a>'; $message = "<b>This is a fresh install!</b><br/><br/>"; $sql = array(); $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 ); 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/Uninstalling 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: pageblock.pak --- module=+:20=+:Page Block=+:modules/mx_pageblock/=+:PageBlock module=+: New_function=+:---------------------------=+:0=+:0=+:0=+:0=+:0 function=+:20=+:20=+:PageBlock (include)=+:php, html and and other files can be included=+:mx_pageblock.php=+: parameter=+:20=+:15=+:Source_PageBlock=+:pageblock_select=+:modules/mx_pageblock/pages/index.php=+:=+:0 parameter=+:0=+:0=+:0=+:endoflist=+:0=+:0 block=+:=+:Demo - PageBlock (include)=+:Demo block=+:20=+:0=+:5=+:0=+:0=+:0=+:0=+:1=+:1 function=+:0=+:0=+:0=+:endoflist=+:0=+:0 |
|
From: OryNider <ory...@us...> - 2007-06-06 21:38:34
|
Update of /cvsroot/mxbb/mx_pageblock/admin In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv29672/admin Added Files: mx_module_defs.php Log Message: --- NEW FILE: mx_module_defs.php --- <?php /** * * @package mxBB Portal Module - mx_pageblock * @version $Id: mx_module_defs.php,v 1.1 2007/06/06 21:38:29 orynider Exp $ * @copyright (c) 2002-2006 [Jon Ohlsson] mxBB Project Team, mxBB Development Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ if ( !defined( 'IN_PORTAL' ) ) { die( "Hacking attempt" ); } /********************************************************************************\ | Class: mx_module_defs | The mx_module_defs object provides additional module block parameters... \********************************************************************************/ class mx_module_defs { // ------------------------------ // Private Methods // // // =================================================== // define module specific block parameters // =================================================== function get_parameters($type_row = '') { global $lang; if (empty($type_row)) { $type_row = array(); } $type_row['pageblock_select'] = !empty($lang['ParType_pageblock_type_select']) ? $lang['ParType_pageblock_type_select'] : "pageblock Source"; return $type_row; } // =================================================== // Submit custom parameter field and data // =================================================== function submit_module_parameters( $parameter_data, $block_id ) { global $HTTP_POST_VARS, $db, $board_config, $mx_cache, $mx_blockcp, $mx_root_path, $phpbb_root_path, $phpEx; global $html_entities_match, $html_entities_replace; $parameter_value = $HTTP_POST_VARS[$parameter_data['parameter_name']]; $parameter_opt = ''; switch ( $parameter_data['parameter_type'] ) { case 'pageblock_select': $bbcode_on = false; $html_on = false; $smilies_on = false; $bbcode_uid = 0; // Remove allowed html tags $html_entities_match = array(); $html_entities_replace = array(); break; } // // Instantiate the mx_text class // include_once($mx_root_path . 'includes/mx_functions_tools.'.$phpEx); $mx_text = new mx_text(); $mx_text->init($html_on, $bbcode_on, $smilies_on); $mx_text->allow_all_html_tags = $parameter_data['parameter_type'] = 'WysiwygTextBlock' ? true : false; // // Encode for db storage // $parameter_value = $mx_text->encode($parameter_value); $parameter_opt = $mx_text->bbcode_uid; // // Add search words // mx_admin::mx_remove_search_post($block_id); $block_config_temp = $mx_cache->read( $block_id, MX_CACHE_BLOCK_TYPE ); $block_info_temp = $block_config_temp[$block_id]['block_info']; $block_title = $block_info_temp['block_title']; mx_admin::mx_add_search_words('single', $block_id, $parameter_value, $block_title); return array('parameter_value' => $parameter_value, 'parameter_opt' => $parameter_opt); } // =================================================== // Display cuztom parameter field and data in the Block Control Panel // =================================================== function display_module_parameters( $parameter_data, $block_id ) { global $template, $mx_blockcp, $mx_root_path, $theme, $lang; switch ( $parameter_data['parameter_type'] ) { case 'pageblock_select': $this->display_edit_pageBlock( $block_id, $parameter_data['parameter_id'], $parameter_data ); break; } } function display_edit_pageBlock( $block_id, $parameter_id, $parameter_data ) { global $template, $board_config, $db, $theme, $lang, $images, $mx_blockcp, $mx_root_path, $phpbb_root_path, $phpEx, $mx_table_prefix, $table_prefix, $html_entities_match, $html_entities_replace; global $HTTP_POST_VARS; $parameter_value = isset($HTTP_POST_VARS['preview']) ? $HTTP_POST_VARS[$parameter_data['parameter_name']] : $parameter_data['parameter_value']; $bbcode_uid = isset($HTTP_POST_VARS['preview']) ? '' : $parameter_data['parameter_opt']; // // Toggles // $bbcode_on = false; $html_on = true; $smilies_on = false; // // Instantiate the mx_text class // include_once($mx_root_path . 'includes/mx_functions_tools.'.$phpEx); $mx_text = new mx_text(); $mx_text->init($html_on, $bbcode_on, $smilies_on); // // Allow all html tags // Fix: Setting 'emtpy' enables all // $mx_text->allow_all_html_tags = true; if ( isset($HTTP_POST_VARS['preview']) ) { // // Encode for preview // $preview_text = $mx_text->encode_preview($parameter_value); $template->assign_vars(array( 'TEXT' => $preview_text )); $template->assign_block_vars('preview', array()); // // Decode for form editing // $parameter_value = $mx_text->decode($parameter_value, '', true); } else { // // Decode for form editing // $parameter_value = $mx_text->decode($parameter_value, $bbcode_uid); } // // HTML, BBCode & Smilies toggle selection // $html_status = ( $html_on ) ? $lang['HTML_is_ON'] : $lang['HTML_is_OFF']; $bbcode_status = ( $bbcode_on ) ? $lang['BBCode_is_ON'] : $lang['BBCode_is_OFF']; $smilies_status = ( $smilies_on ) ? $lang['Smilies_are_ON'] : $lang['Smilies_are_OFF']; $template->set_filenames(array( 'parameter' => 'admin/mx_module_parameters.tpl') ); // // This switch is for enabling the wysiwyg html editor addon "tiny mce". to disable this feature // either remove this section or delete the modules/tinymce folder // if ( file_exists( $mx_root_path . 'modules/mx_shared/tinymce/jscripts/tiny_mce/blank.htm' ) ) { $langcode = mx_get_langcode(); $template->assign_block_vars( "tinyMCE", array( 'PATH' => $mx_root_path, 'LANG' => !empty($langcode) ? $langcode : $HTTP_SERVER_VARS['HTTP_ACCEPT_LANGUAGE'], 'TEMPLATE' => $phpbb_root_path . 'templates/'. $theme['template_name'] . '/' . $theme['head_stylesheet'] )); } $parameter_field = '<textarea rows="30" cols="150" wrap="virtual" name="' . $parameter_id . '" class="post">' . $parameter_value . '</textarea>'; $template->assign_vars(array( 'HTML_STATUS' => $html_status, 'BBCODE_STATUS' => $bbcode_status, 'SMILIES_STATUS' => $smilies_status, 'L_PREVIEW' => $lang['Preview'], 'L_PAGEBLOCK_SETTINGS' => $lang['pageblock_Settings'], 'L_CAT_PAGEURL' => $lang['Page_url'], // To sync script and textarea select field 'SELECT_NAME' => $parameter_data['parameter_name'], )); $template->assign_block_vars('textblock', array( 'PARAMETER_TITLE' => ( !empty($lang[$parameter_data['parameter_name']]) ) ? $lang[$parameter_data['parameter_name']] : $parameter_data['parameter_name'], 'PARAMETER_TYPE' => ( !empty($lang["ParType_".$parameter_data['parameter_type']]) ) ? $lang["ParType_".$parameter_data['parameter_type']] : '', 'PARAMETER_TYPE_EXPLAIN' => ( !empty($lang["ParType_".$parameter_data['parameter_type'] . "_info"]) ) ? '<br />' . $lang["ParType_".$parameter_data['parameter_type'] . "_info"] : '', 'TEXT' => $parameter_data['parameter_value'] )); $template->pparse('parameter'); } } ?> |
|
From: OryNider <ory...@us...> - 2007-06-06 21:37:39
|
Update of /cvsroot/mxbb/mx_pageblock/templates/SwiftBlue/admin In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv28506/admin Log Message: Directory /cvsroot/mxbb/mx_pageblock/templates/SwiftBlue/admin added to the repository |
|
From: OryNider <ory...@us...> - 2007-06-06 21:37:16
|
Update of /cvsroot/mxbb/mx_pageblock/templates/subSilver/admin In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv28104/admin Log Message: Directory /cvsroot/mxbb/mx_pageblock/templates/subSilver/admin added to the repository |
|
From: OryNider <ory...@us...> - 2007-06-06 21:36:48
|
Update of /cvsroot/mxbb/mx_pageblock/templates/pubOry/admin In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv27624/admin Log Message: Directory /cvsroot/mxbb/mx_pageblock/templates/pubOry/admin added to the repository |
|
From: OryNider <ory...@us...> - 2007-06-06 21:36:42
|
Update of /cvsroot/mxbb/mx_pageblock/templates/subSilver In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv27492/subSilver Log Message: Directory /cvsroot/mxbb/mx_pageblock/templates/subSilver added to the repository |
|
From: OryNider <ory...@us...> - 2007-06-06 21:36:41
|
Update of /cvsroot/mxbb/mx_pageblock/templates/pubOry In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv27492/pubOry Log Message: Directory /cvsroot/mxbb/mx_pageblock/templates/pubOry added to the repository |
|
From: OryNider <ory...@us...> - 2007-06-06 21:36:41
|
Update of /cvsroot/mxbb/mx_pageblock/templates/SwiftBlue In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv27492/SwiftBlue Log Message: Directory /cvsroot/mxbb/mx_pageblock/templates/SwiftBlue added to the repository |
|
From: OryNider <ory...@us...> - 2007-06-06 21:35:55
|
Update of /cvsroot/mxbb/mx_pageblock/language/lang_romanian In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv26587/lang_romanian Log Message: Directory /cvsroot/mxbb/mx_pageblock/language/lang_romanian added to the repository |
|
From: OryNider <ory...@us...> - 2007-06-06 21:35:55
|
Update of /cvsroot/mxbb/mx_pageblock/language/lang_english In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv26587/lang_english Log Message: Directory /cvsroot/mxbb/mx_pageblock/language/lang_english added to the repository |
|
From: OryNider <ory...@us...> - 2007-06-06 21:34:24
|
Update of /cvsroot/mxbb/mx_pageblock/pages In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv24932/pages Log Message: Directory /cvsroot/mxbb/mx_pageblock/pages added to the repository |
|
From: OryNider <ory...@us...> - 2007-06-06 21:34:24
|
Update of /cvsroot/mxbb/mx_pageblock/admin In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv24932/admin Log Message: Directory /cvsroot/mxbb/mx_pageblock/admin added to the repository |
|
From: OryNider <ory...@us...> - 2007-06-06 21:34:24
|
Update of /cvsroot/mxbb/mx_pageblock/templates In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv24932/templates Log Message: Directory /cvsroot/mxbb/mx_pageblock/templates added to the repository |
|
From: OryNider <ory...@us...> - 2007-06-06 21:34:24
|
Update of /cvsroot/mxbb/mx_pageblock/language In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv24932/language Log Message: Directory /cvsroot/mxbb/mx_pageblock/language added to the repository |
|
From: OryNider <ory...@us...> - 2007-06-06 20:55:24
|
Update of /cvsroot/mxbb/mx_music/language/lang_romanian In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv11149/lang_romanian Added Files: lang_admin.php lang_admin_music.php lang_main_music.php Log Message: --- NEW FILE: lang_main_music.php --- <?php /** * * @package mxBB Portal Module - mx_music * @version $Id: lang_main_music.php,v 1.1 2007/06/06 20:54:57 orynider Exp $ * @copyright (c) 2003 [ory...@rd..., OryNider] mxBB Development Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ /* Translation: Românã (Romanian) Rev date: September 02, 2006 Copyright: (C) 2006 Romanian phpBB online community - http://www.phpbb.ro/ Translator: Aliniuz < al...@ya... > */ // // Music Online // $lang['Music'] = 'Media Center'; // // Music Index // $lang['Music_Online'] = 'Muzicã'; $lang['Songs'] = 'Melodii'; $lang['Cat_Views'] = 'Board Views'; $lang['Last_Song'] = 'Ultima melodie'; $lang['Public_Categories'] = 'Categorii publice'; $lang['No_Songs'] = 'Nici o melodie'; $lang['Top_Songs'] = 'Top melodii'; $lang['Song_Limit'] = 'Limitã de melodii'; $lang['Nav_Separator'] = ' » '; $lang['View'] = 'Ascultã'; $lang['Singer'] = 'Solist'; // // Category View // $lang['Category_not_exist'] = 'Aceastã categorie nu existã'; $lang['Upload_Song'] = 'Uploadeazã melodie'; $lang['Song_Title'] = 'Numele melodiei'; $lang['Music_upload_can'] = '<b>Poþi</b> uploada noi melodii în aceastã categorie'; $lang['Music_upload_cannot'] = '<b>Nu poþi</b> uploada noi melodii în aceastã categorie'; $lang['Music_rate_can'] = '<b>Poþi</b> vota melodii în aceastã categorie'; $lang['Music_rate_cannot'] = '<b>Nu poþi</b> vota melodii în aceastã categorie'; $lang['Music_comment_can'] = '<b>Poþi</b> adãuga comentarii melodiilor din aceastã categorie'; $lang['Music_comment_cannot'] = '<b>Nu poþi</b> adãuga comentarii melodiilor din aceastã categorie'; $lang['Music_edit_can'] = '<b>Poþi</b> edita melodiile tale ºi comentariile acestora din aceastã categorie'; $lang['Music_edit_cannot'] = '<b>Nu poþi</b> edita melodiile tale ºi comentariile acestora din aceastã categorie'; $lang['Music_delete_can'] = '<b>Poþi</b> ºterge melodiile tale ºi comentariile acestora din aceastã categorie'; $lang['Music_delete_cannot'] = '<b>Nu poþi</b> ºterge melodiile tale ºi comentariile din aceastã categorie'; $lang['Music_moderate_can'] = '<b>Poþi</b> %smodera%s aceastã categorie'; $lang['Edit_song'] = 'Editeazã'; $lang['Delete_song'] = 'ªterge'; $lang['Rating'] = 'Rating'; $lang['Comments'] = 'Comentarii'; $lang['Download'] = 'Download'; $lang['New_Comment'] = 'Comentariu nou'; $lang['Not_rated'] = '<i>nu este votat</i>'; // // Upload // $lang['Song_url'] = 'Adresa catre melodie'; $lang['Song_Desc'] = 'Versurile cântecului'; $lang['Plain_text_only'] = 'Numai text plan'; $lang['Max_length'] = 'Dimensiunea maximã (bytes)'; $lang['Upload_song_from_machine'] = 'Uploadeazã melodie din PC-ul tãu'; $lang['Upload_to_Category'] = 'Uploadeazã cãtre categorie'; $lang['Upload_no_title'] = 'Ai uitat sa precizezi numele melodiei'; $lang['Upload_no_file'] = 'Trebuie sa precizati calea cãtre melodie'; $lang['Upload_both_file'] = 'Puteþi alege doar o singura cale: Upload sau Adresa cãtre melodie'; $lang['Desc_too_long'] = 'Versurile melodiei depãseste numarul maxim de caractere'; $lang['Max_file_size'] = 'Dimensiunea maximã a unei melodii (bytes)'; $lang['Allowed_file'] = 'Aceste fiºiere sunt permise'; $lang['Music_reached_quota'] = 'Aceastã categorie a atins numãrul maxim de melodii. Acum nu mai poþi uploada melodii. Contacteazã administratorii pentru mai multe informaþii'; $lang['User_reached_songs_quota'] = 'Ai atins numãrul maxim de melodii pe care le poþi uploada. Acum nu mai poþi uploada melodii. Contacteazã administratorii pentru mai multe informaþii'; $lang['Bad_upload_file_size'] = 'Melodia uploadatã de tine este coruptã sau depãseste dimensiunea maxima'; $lang['Not_allowed_file_type'] = 'Extensia fiºierului tãu nu e permisã'; $lang['Missed_song_title'] = 'Nu ai precizat numele melodiei'; $lang['Missed_song_url'] = 'Nu ai precizat adresa cãtre melodie'; $lang['Music_upload_successful'] = 'Melodia ta a fost uploadatã cu succes'; $lang['Music_upload_need_approval'] = 'Melodia ta a fost uploadatã cu succes.<br /><br />Dar facilitatea Aprobarea Melodiei este activatã, aºa cã trebuie ca melodia ta sa fie aprobatã de un administrator sau de un moderator înainte de a fi postatã'; $lang['Click_return_category'] = 'Click %saici%s pentru a te întoarce la categorie'; $lang['Click_return_music_index'] = 'Click %saici%s pentru a te întoarce la Pagina de Muzicã Online'; // View song $lang['Song_not_exist'] = 'Aceastã melodie nu existã'; // Edit song $lang['Edit_Song_Info'] = 'Editeazã informaþiile melodiei'; $lang['Songs_updated_successfully'] = 'Informaþiile melodiei au fost actualizate cu succes'; // Delete song $lang['Music_delete_confirm'] = 'Eºti sigur cã vrei sã ºtergi aceasta(aceste) melodie(melodii)?'; $lang['Songs_deleted_successfully'] = 'Aceasta(aceste) melodie(melodii) a(au) fost ºterse cu succes'; // // ModCP // $lang['Approval'] = 'Aprobare'; $lang['Approve'] = 'Aprobã'; $lang['Unapprove'] = 'Dezaprobã'; $lang['Status'] = 'Statut'; $lang['Locked'] = 'Închis'; $lang['Not_approved'] = 'Nu este aprobat'; $lang['Approved'] = 'Aprobat'; $lang['Move_to_Category'] = 'Mutã la Categorie'; $lang['Songs_moved_successfully'] = 'Melodiile tale au fost mutate cu succes'; $lang['Songs_locked_successfully'] = 'Melodiile tale au fost închise cu succes'; $lang['Songs_unlocked_successfully'] = 'Melodiile tale au fost deschise cu succes'; $lang['Songs_approved_successfully'] = 'Melodiile tale au fost aprobate cu succes'; $lang['Songs_unapproved_successfully'] = 'Melodiile tale au fost dezaprobate cu succes'; // // Rate // $lang['Current_Rating'] = 'Nota curentã'; $lang['Please_Rate_It'] = 'Voteazã'; $lang['Already_rated'] = 'Ai votat deja aceastã melodie'; $lang['Music_rate_successfully'] = 'Melodia ta a fost votatã cu succes'; // // Comment // $lang['Comment_no_text'] = 'Scrie comentariul'; $lang['Comment_too_long'] = 'Comentariul tãu e prea lung'; $lang['Comment_delete_confirm'] = 'Eºti sigur cã vrei sã ºtergi acest comentariu?'; $lang['Song_Locked'] = 'Scuze, aceastã melodie a fost închisã. Deci nu mai puteþi posta comentarii'; // // Song Image // $lang['Song_image'] = 'Song Image'; $lang['Song_image_desc'] = 'The Image of this song<br />(such as CD Cover, Artist Photo...)'; $lang['No_image'] = 'No Image'; $lang['Upload_image'] = 'Upload Image from your PC'; $lang['Not_allowed_image_type'] = 'Your uploaded image type is not allowed'; $lang['Bad_upload_image_size'] = 'Bad upload image size'; $lang['Upload_image_size_too_big'] = 'Your uploaded image size is too big'; // // Search Song // $lang['Search_song'] = 'Cautã melodii'; // auth_key $lang['Music_view_can'] = 'Music_view_can'; $lang['Music_view_cannot'] = 'Music_view_cannot'; $lang['Music_upload_can'] = 'Music_upload_can'; $lang['Music_upload_cannot'] = 'Music_upload_cannot'; $lang['Music_download_can'] = 'Music_download_can'; $lang['Music_download_cannot'] = 'Music_download_cannot'; ?> --- NEW FILE: lang_admin_music.php --- <?php /** * * @package mxBB Portal Module - mx_music * @version $Id: lang_admin_music.php,v 1.1 2007/06/06 20:54:57 orynider Exp $ * @copyright (c) 2003 [ory...@rd..., OryNider] mxBB Development Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ /* Translation: Românã (Romanian) Rev date: September 02, 2006 Copyright: (C) 2006 Romanian phpBB online community - http://www.phpbb.ro/ Translator: Aliniuz < al...@ya... > */ // // Configuration // $lang['Music_config'] = 'Configuraþia Melodiilor'; $lang['Music_config_explain'] = 'Aici poþi schimba setãrile generale Music Online-ului instalat pe forumul tãu'; $lang['Music_config_updated'] = 'Configuraþia Melodiilor a fost actualizatã cu succes'; $lang['Click_return_music_config'] = 'Click %saici%s pentru a te întoarce la Configuraþia Melodiilor'; $lang['Max_songs'] = 'Numãrul maxim de melodii pentru fiecare categorie (-1 = nelimitat)'; $lang['User_songs_limit'] = 'Limita de melodii pe fiecare categorie pentru fiecare membru (-1 = nelimitat)'; $lang['Moderator_songs_limit'] = 'Limita de melodii pe fiecare categorie pentru fiecare moderator (-1 = nelimitat)'; $lang['Songs_Approval'] = 'Aprobarea melodiilor'; $lang['Rows_per_page'] = 'Numãrul de rânduri'; $lang['Cols_per_page'] = 'Numãrul de coloane'; $lang['Top'] = 'Numãrul de melodii pe lista Top Melodii'; $lang['Song_Desc_Max_Length'] = 'Lungimea maximã a versurilor/comentariilor melodiilor (bytes)'; $lang['Hotlink_prevent'] = 'Prevenire HotLink'; $lang['Hotlink_allowed'] = 'Domenii acceptate pentru hotlink (separate printr-o virgulã)'; $lang['Rate_system'] = 'Activare sistemul de votare'; $lang['Rate_Scale'] =' Scala notelor (pentru rating)'; $lang['Comment_system'] = 'Activeazã sistemul pentru comentarii'; $lang['Download_system'] = 'Activeazã sistemul pentru download'; $lang['Extra_Settings'] = 'Setãri suplimentare'; $lang['Default_Sort_Method'] = 'Metoda implicitã de sortare'; $lang['Default_Sort_Order'] = 'Ordinea implicitã de sortare'; // // Categories // $lang['Music_Categories_Title'] = 'Configuraþia Categoriilor de Melodii'; $lang['Music_Categories_Explain'] = 'În aceastã secþiune îþi poþi conduce categoriile: creazã, modificã, ºterge, sorteazã, etc.'; $lang['Category_Permissions'] = 'Permisiunile Categoriilor'; $lang['Category_Title'] = 'Titlul Categoriei'; $lang['Category_Desc'] = 'Descrierea Categoriei'; $lang['View_level'] = 'Nivelul de vizualizãri'; $lang['Upload_level'] = 'Nivelul de upload'; $lang['Rate_level'] = 'Nivelul de votare'; $lang['Comment_level'] = 'Nivelul de comentarii'; $lang['Edit_level'] = ' Nivelul de editare'; $lang['Delete_level'] = 'Nivelul de ºtergere'; $lang['New_category_created'] = 'Categoria a fost creatã cu succes'; $lang['Click_return_music_category'] = 'Click %saici%s pentru a te intoarce la Configuraþia Categoriilor de Melodii'; $lang['Category_updated'] = 'Categoria a fost actualizatã cu succes'; $lang['Delete_Category'] = 'ºterge categoria'; $lang['Delete_Category_Explain'] = 'Formularul de mai jos îþi vã permite sã ºtergi o categorie ºi sã decizi unde vrei sã pui melodiile pe care le conþine categoria respectivã'; $lang['Delete_all_songs'] = 'ºterge toate melodiile'; $lang['Category_deleted'] = 'Categoria a fost ºtearsã cu succes'; $lang['Category_changed_order'] = 'Categoria s-a mutat cu succes'; // // Permissions // $lang['Music_Auth_Title'] = 'Permisiuni'; $lang['Music_Auth_Explain'] = 'Aici poþi alege ce grupuri pot deveni moderator pentru fiecare categorie de muzicã sau sã aibã doar acces privat'; $lang['Select_a_Category'] = 'Selecteazã o categorie'; $lang['Look_up_Category'] = 'Vezi aceastã categorie'; $lang['Music_Auth_successfully'] = 'Permisiunile au fost actualizate cu succes'; $lang['Click_return_music_auth'] = 'Click %saici%s pentru a te intoarce la Permisiuni'; $lang['Upload'] = 'Upload'; $lang['Rate'] = 'Vot'; $lang['Comment'] = 'Comentariu'; // // Song Image // $lang['Max_image_size'] = 'Max song image size (bytes)'; $lang['Max_image_width'] = 'Max song image width (pixel)'; $lang['Max_image_height'] = 'Max song image height (pixel)'; ?> --- NEW FILE: lang_admin.php --- <?php /** * * @package mxBB Portal Module - mx_music * @version $Id: lang_admin.php,v 1.1 2007/06/06 20:54: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['music_config_updated'] = 'Mx MOM Configuration Updated Successfully.'; $lang['Click_return_music_config'] = 'Click %sHere%s to return to mx_music Configuration'; $lang['index'] = 'Mx MOM Album Index'; $lang['mx_music_admin'] = 'mxBB MOM Integration'; $lang['mx_music_admin_explain'] = 'Here, you can do music index and mxBB page mappings.'; $lang['default_pages_title'] = 'mxBB and MOM integration'; $lang['default_pages_title_explain'] = ''; $lang['default_pages_more_title'] = 'More mappings...'; $lang['default_pages_more_title_explain'] = ''; $lang['integration_enabled'] = 'Activate the Integration?'; $lang['integration_enabled_explain'] = 'When the MOM module integration is activated, all mx_music URLs will be directed to mxBB pages. If deactivated, music.php will operate "as usual"'; $lang['integration_enabled_yes'] = 'Activate'; $lang['integration_enabled_no'] = 'Do not integrate music.php'; $lang['override'] = 'Associate music.php and mxBB pages'; $lang['override_explain'] = 'All mx_music urls are redirected to mxBB pages following these settings.'; $lang['override_yes'] = 'Use Block Settings'; $lang['override_no'] = 'Use fixed mappings (see below)'; // // That's all Folks! // ------------------------------------------------- ?> |
|
From: OryNider <ory...@us...> - 2007-06-06 20:55:22
|
Update of /cvsroot/mxbb/mx_music/language/lang_english In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv11149/lang_english Added Files: lang_admin.php lang_admin_music.php lang_main_music.php Log Message: --- NEW FILE: lang_main_music.php --- <?php /** * * @package mxBB Portal Module - mx_music * @version $Id: lang_main_music.php,v 1.1 2007/06/06 20:54:56 orynider Exp $ * @copyright (c) 2003 [ory...@rd..., OryNider] mxBB Development Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ // // Music Online // $lang['Music'] = 'Media Center'; // // Music Index // $lang['Music_Online'] = 'Music Online'; $lang['Songs'] = 'Songs'; $lang['Cat_Views'] = 'Board Views'; $lang['Last_Song'] = 'Last Song'; $lang['Public_Categories'] = 'Public Categories'; $lang['No_Songs'] = 'No Song'; $lang['Top_Songs'] = 'Top Songs'; $lang['Song_Limit'] = 'Song limit'; $lang['Nav_Separator'] = ' » '; $lang['View'] = 'Listen'; $lang['Singer'] = 'Singer'; // // Category View // $lang['Category_not_exist'] = 'This category does not exist'; $lang['Upload_Song'] = 'Upload Song'; $lang['Song_Title'] = 'Song Title'; $lang['Music_upload_can'] = 'You <b>can</b> upload new songs in this category'; $lang['Music_upload_cannot'] = 'You <b>cannot</b> upload new songs in this category'; $lang['Music_rate_can'] = 'You <b>can</b> rate songs in this category'; $lang['Music_rate_cannot'] = 'You <b>cannot</b> rate songs in this category'; $lang['Music_comment_can'] = 'You <b>can</b> post comments to songs in this category'; $lang['Music_comment_cannot'] = 'You <b>cannot</b> post comments to songs in this category'; $lang['Music_edit_can'] = 'You <b>can</b> edit your songs and comments in this category'; $lang['Music_edit_cannot'] = 'You <b>cannot</b> edit your songs and comments in this category'; $lang['Music_delete_can'] = 'You <b>can</b> delete your songs and comments in this category'; $lang['Music_delete_cannot'] = 'You <b>cannot</b> delete your songs and comments in this category'; $lang['Music_moderate_can'] = 'You <b>can</b> %smoderate%s this category'; $lang['Edit_song'] = 'Edit'; $lang['Delete_song'] = 'Del'; $lang['Rating'] = 'Rating'; $lang['Comments'] = 'Comments'; $lang['Download'] = 'Download'; $lang['Listen'] = 'Listen URL'; $lang['New_Comment'] = 'New Comment'; $lang['Not_rated'] = '<i>not rated</i>'; // // Upload // $lang['Song_url'] = 'Song URL'; $lang['Song_Desc'] = 'Song Lyric'; $lang['Plain_text_only'] = 'Plain text only'; $lang['Max_length'] = 'Max length (bytes)'; $lang['Upload_song_from_machine'] = 'Upload song from your PC'; $lang['Upload_to_Category'] = 'Upload to Category'; $lang['Upload_no_title'] = 'You missed the song title'; $lang['Upload_no_file'] = 'You must enter the path of song'; $lang['Upload_both_file'] = 'You can just choose 1 in 2 way Upload or Link URL'; $lang['Desc_too_long'] = 'Song lyric is too long'; $lang['Max_file_size'] = 'Maximum file size (bytes)'; $lang['Allowed_file'] = 'These files are allowed'; $lang['Music_reached_quota'] = 'This category has reached the quota of songs. Now you cannot upload any more. Please contact the administrators for more information'; $lang['User_reached_songs_quota'] = 'You have reached your quota of songs. Now you cannot upload any more. Please contact the administrators for more information'; $lang['Bad_upload_file_size'] = 'Your uploaded file is too large or corrupted'; $lang['Not_allowed_file_type'] = 'Your file type is not allowed'; $lang['Missed_song_title'] = 'You missed the song title'; $lang['Missed_song_url'] = 'You missed the song url'; $lang['Music_upload_successful'] = 'Your song has been uploaded successfully'; $lang['Music_upload_need_approval'] = 'Your song has been uploaded successfully.<br /><br />But the feature Song Approval has been enabled so your song must be approved by a administrator or a moderator before posting'; $lang['Click_return_category'] = 'Click %shere%s to return to the category'; $lang['Click_return_music_index'] = 'Click %shere%s to return to the Music Index'; // View song $lang['Song_not_exist'] = 'This song does not exits'; // Edit song $lang['Edit_Song_Info'] = 'Edit Song infomation'; $lang['Songs_updated_successfully'] = 'Your song information has been updated successfully'; // Delete song $lang['Music_delete_confirm'] = 'Are you sure to delete these song(s)?'; $lang['Songs_deleted_successfully'] = 'These song(s) have been deleted successfully'; // // ModCP // $lang['Approval'] = 'Approval'; $lang['Approve'] = 'Approve'; $lang['Unapprove'] = 'Unapprove'; $lang['Status'] = 'Status'; $lang['Locked'] = 'Locked'; $lang['Not_approved'] = 'Not approved'; $lang['Approved'] = 'Approved'; $lang['Move_to_Category'] = 'Move to Category'; $lang['Songs_moved_successfully'] = 'Your song(s) have been moved successfully'; $lang['Songs_locked_successfully'] = 'Your song(s) have been locked successfully'; $lang['Songs_unlocked_successfully'] = 'Your song(s) have been unlocked successfully'; $lang['Songs_approved_successfully'] = 'Your song(s) have been approved successfully'; $lang['Songs_unapproved_successfully'] = 'Your song(s) have been unapproved successfully'; // // Rate // $lang['Current_Rating'] = 'Current Rating'; $lang['Please_Rate_It'] = 'Please Rate It'; $lang['Already_rated'] = 'You have already rated this song'; $lang['Music_rate_successfully'] = 'Your song has been rated successfully'; // // Comment // $lang['Comment_no_text'] = 'Please enter your comment'; $lang['Comment_too_long'] = 'Your comment is too long'; $lang['Comment_delete_confirm'] = 'Are you sure to delete this comment?'; $lang['Song_Locked'] = 'Sorry, this song was locked. So you cannot post comment for this song anymore'; // // Song Image // $lang['Song_image'] = 'Song Image'; $lang['Song_image_desc'] = 'The Image of this song<br />(such as CD Cover, Artist Photo...)'; $lang['No_image'] = 'No Image'; $lang['Upload_image'] = 'Upload Image from your PC'; $lang['Not_allowed_image_type'] = 'Your uploaded image type is not allowed'; $lang['Bad_upload_image_size'] = 'Bad upload image size'; $lang['Upload_image_size_toobig'] = 'Your uploaded image size is too big'; // // Search Song // $lang['Search_song'] = 'Search song'; // auth_key $lang['Music_view_can'] = 'Music_view_can'; $lang['Music_view_cannot'] = 'Music_view_cannot'; $lang['Music_upload_can'] = 'Music_upload_can'; $lang['Music_upload_cannot'] = 'Music_upload_cannot'; $lang['Music_download_can'] = 'Music_download_can'; $lang['Music_download_cannot'] = 'Music_download_cannot'; ?> --- NEW FILE: lang_admin_music.php --- <?php /** * * @package mxBB Portal Module - mx_music * @version $Id: lang_admin_music.php,v 1.1 2007/06/06 20:54:55 orynider Exp $ * @copyright (c) 2003 [ory...@rd..., OryNider] mxBB Development Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ // // Configuration // $lang['Music_config'] = 'Music Configuration'; $lang['Music_config_explain'] = 'You can change the general settings of your Music Online here'; $lang['Music_config_updated'] = 'Music Configuration has been updated successfully'; $lang['Click_return_music_config'] = 'Click %sHere%s to return to the Music Configuration'; $lang['Max_songs'] = 'Maximum songs for each Category (-1 = unlimited)'; $lang['User_songs_limit'] = 'Songs limit per category for each user (-1 = unlimited)'; $lang['Moderator_songs_limit'] = 'Songs limit per category for each moderator (-1 = unlimited)'; $lang['Songs_Approval'] = 'Songs Approval'; $lang['Rows_per_page'] = 'Number of rows'; $lang['Cols_per_page'] = 'Number of columns'; $lang['Top'] = 'Number of songs on Top Hit List'; $lang['Song_Desc_Max_Length'] = 'Song Lyric/Comment Max Length (bytes)'; $lang['Hotlink_prevent'] = 'Hotlink Prevention'; $lang['Hotlink_allowed'] = 'Allowed domains for hotlink (separated by a comma)'; $lang['Rate_system'] = 'Enable rate system'; $lang['Rate_Scale'] =' Rating Scale'; $lang['Comment_system'] = 'Enable comment system'; $lang['Download_system'] = 'Enable download system'; $lang['Extra_Settings'] = 'Extra Settings'; $lang['Default_Sort_Method'] = 'Default Sort Method'; $lang['Default_Sort_Order'] = 'Default Sort Order'; // // Categories // $lang['Music_Categories_Title'] = 'Music Categories Control'; $lang['Music_Categories_Explain'] = 'On this screen you can manage your categories: create, alter, delete, sort, etc.'; $lang['Category_Permissions'] = 'Category Permissions'; $lang['Category_Title'] = 'Category Title'; $lang['Category_Desc'] = 'Category Description'; $lang['View_level'] = 'View Level'; $lang['Upload_level'] = 'Upload Level'; $lang['Rate_level'] = 'Rate Level'; $lang['Comment_level'] = 'Comment Level'; $lang['Edit_level'] = ' Edit Level'; $lang['Delete_level'] = 'Delete Level'; $lang['New_category_created'] = 'New category has been created successfully'; $lang['Click_return_music_category'] = 'Click %sHere%s to return to the Music Categories Manager'; $lang['Category_updated'] = 'This category has been updated successfully'; $lang['Delete_Category'] = 'Delete Category'; $lang['Delete_Category_Explain'] = 'The form below will allow you to delete a category and decide where you want to put songs it contained'; $lang['Delete_all_songs'] = 'Delete all songs'; $lang['Category_deleted'] = 'This category has been deleted successfully'; $lang['Category_changed_order'] = 'This category has been changed order successfully'; // // Permissions // $lang['Music_Auth_Title'] = 'Music Permissions'; $lang['Music_Auth_Explain'] = 'Here you can choose which usergroup(s) can be the moderators for each Music category or just has the private access'; $lang['Select_a_Category'] = 'Select a Category'; $lang['Look_up_Category'] = 'Look up Category'; $lang['Music_Auth_successfully'] = 'Auth has been updated successfully'; $lang['Click_return_music_auth'] = 'Click %sHere%s to return to the Music Permissions'; $lang['Upload'] = 'Upload'; $lang['Rate'] = 'Rate'; $lang['Comment'] = 'Comment'; // // Song Image // $lang['Max_image_size'] = 'Max song image size (bytes)'; $lang['Max_image_width'] = 'Max song image width (pixel)'; $lang['Max_image_height'] = 'Max song image height (pixel)'; ?> --- NEW FILE: lang_admin.php --- <?php /** * * @package mxBB Portal Module - mx_music * @version $Id: lang_admin.php,v 1.1 2007/06/06 20:54:55 orynider Exp $ * @copyright (c) 2007 [ory...@rd..., OryNider] mxBB Development Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ // // The format of this file is: // // ---> $lang["message"] = "text"; // // Specify your language character encoding... [optional] // // setlocale(LC_ALL, "en"); $lang['display_most_posts'] = "Display most posts"; $lang['display_random_posts'] = "Display random posts"; $lang['display_top_ranked'] = "Display top ranked"; $lang['display_latest_posts'] = "Display latest posts"; $lang['num_of_cols'] = "Num of cols"; $lang['num_of_rows'] = "Num of rows"; $lang['music_config_updated'] = 'Mx MOM Configuration Updated Successfully.'; $lang['Click_return_music_config'] = 'Click %sHere%s to return to mx_music Configuration'; $lang['index'] = 'Mx MOM Album Index'; $lang['mx_music_admin'] = 'mxBB MOM Integration'; $lang['mx_music_admin_explain'] = 'Here, you can do music index and mxBB page mappings.'; $lang['default_pages_title'] = 'mxBB and MOM integration'; $lang['default_pages_title_explain'] = ''; $lang['default_pages_more_title'] = 'More mappings...'; $lang['default_pages_more_title_explain'] = ''; $lang['integration_enabled'] = 'Activate the Integration?'; $lang['integration_enabled_explain'] = 'When the MOM module integration is activated, all mx_music URLs will be directed to mxBB pages. If deactivated, music.php will operate "as usual"'; $lang['integration_enabled_yes'] = 'Activate'; $lang['integration_enabled_no'] = 'Do not integrate music.php'; $lang['override'] = 'Associate music.php and mxBB pages'; $lang['override_explain'] = 'All mx_music urls are redirected to mxBB pages following these settings.'; $lang['override_yes'] = 'Use Block Settings'; $lang['override_no'] = 'Use fixed mappings (see below)'; // // That's all Folks! // ------------------------------------------------- ?> |
|
From: Jon O. <jon...@us...> - 2007-06-06 20:44:03
|
Update of /cvsroot/mxbb/mx_music In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv24969 Modified Files: release.txt Log Message: Testing Index: release.txt =================================================================== RCS file: /cvsroot/mxbb/mx_music/release.txt,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** release.txt 6 Jun 2007 20:32:31 -0000 1.1 --- release.txt 6 Jun 2007 20:43:56 -0000 1.2 *************** *** 1,5 **** ! [b][Release][mx_music]: Music Center[/b] ! [b][Authors]: Cf Manager, OryNider[/b] [b][Version]: 2.0.6 [/b] --- 1,6 ---- ! Jon ! [b][Release][mx_music]: Music Center[/b] ! [b][Authors]: Cf Manager, OryNider[/b] [b][Version]: 2.0.6 [/b] *************** *** 11,26 **** [b][DEMO]:[/b] [url=http://atcer.ministry.ro/board/?page=16]Here[/url] ! [b][Note]:[/b] [color=red]If you upgrade from 2.7.x and you have mx_musiconline, the posibility of migration to mx_music it's just teoretical with unknown rezult, and you do it at your own risc!!! A mx_musiconline module for 2.8.0 may be relesed by Selven.[/color] ! [b][Description]:[/b] This Module allows you create the Music Center Page/Block where users can upload, listen, rate and comment on songs. ! Beside that, users can link URL of the song from the another server without uploading. ! You have an admin panel that allows you to manage the features of the module. Some modifications on the original MODS have been applied to make this package more integrated, flexible and multilanguage. Allowed files: MP3, WMA, WMV, WAV, MIDI, MPEG, AVI, AU, SWF, QT, RAM, RM and others. [b]Additionaly:[/b] ! [list] [*][u]Music Song Image[/u] - You can add the Song Image to the section of each song. (Maybe CD Cover, Artist Photo or any image you want ;) ) Maximum image size is configurable in adminCP :D --- 12,27 ---- [b][DEMO]:[/b] [url=http://atcer.ministry.ro/board/?page=16]Here[/url] ! [b][Note]:[/b] [color=red]If you upgrade from 2.7.x and you have mx_musiconline, the posibility of migration to mx_music it's just teoretical with unknown rezult, and you do it at your own risc!!! A mx_musiconline module for 2.8.0 may be relesed by Selven.[/color] ! [b][Description]:[/b] This Module allows you create the Music Center Page/Block where users can upload, listen, rate and comment on songs. ! Beside that, users can link URL of the song from the another server without uploading. ! You have an admin panel that allows you to manage the features of the module. Some modifications on the original MODS have been applied to make this package more integrated, flexible and multilanguage. Allowed files: MP3, WMA, WMV, WAV, MIDI, MPEG, AVI, AU, SWF, QT, RAM, RM and others. [b]Additionaly:[/b] ! [list] [*][u]Music Song Image[/u] - You can add the Song Image to the section of each song. (Maybe CD Cover, Artist Photo or any image you want ;) ) Maximum image size is configurable in adminCP :D *************** *** 33,37 **** [b]Special Note:[/b] [color=blue] ! In version 2.0.2 and above if you are posting a radio stream that ends with "/listen.pls" on music_page will be swiched to music_stream mode and will make traffic on your website, but if it's submited like a normal url with no "/listen.pls" will make traffic on the shotcast server who is brotcasting the stream. But if it's submited with "/listen.pls" can be listened with your favorite player and the original stream informations will he hidden To do this copy the link from Download/Listen in your player on the website or local computer such as WinAMP :wink: But do not try to save the file couse you will just make not needed traffic and get a very large file!!![/color] [b][Download]:[/b] [URL=http://www.mx-system.com/modules/mx_pafiledb/dload.php?action=download&file_id=368]mx_music_center.zip[/URL] --- 34,38 ---- [b]Special Note:[/b] [color=blue] ! In version 2.0.2 and above if you are posting a radio stream that ends with "/listen.pls" on music_page will be swiched to music_stream mode and will make traffic on your website, but if it's submited like a normal url with no "/listen.pls" will make traffic on the shotcast server who is brotcasting the stream. But if it's submited with "/listen.pls" can be listened with your favorite player and the original stream informations will he hidden To do this copy the link from Download/Listen in your player on the website or local computer such as WinAMP :wink: But do not try to save the file couse you will just make not needed traffic and get a very large file!!![/color] [b][Download]:[/b] [URL=http://www.mx-system.com/modules/mx_pafiledb/dload.php?action=download&file_id=368]mx_music_center.zip[/URL] |
|
From: OryNider <ory...@us...> - 2007-06-06 20:41:47
|
Update of /cvsroot/mxbb/mx_music/upload/song_image In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv21591 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://cfmanager.net.tf'; </script> </head> <body> </body> </html> |
|
From: OryNider <ory...@us...> - 2007-06-06 20:41:32
|
Update of /cvsroot/mxbb/mx_music/templates/subSilver/images/lang_english In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv21232 Added Files: upload_song.gif Log Message: --- NEW FILE: upload_song.gif --- (This appears to be a binary file; contents omitted.) |
|
From: OryNider <ory...@us...> - 2007-06-06 20:41:15
|
Update of /cvsroot/mxbb/mx_music/templates/subSilver In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv19323 Added Files: music_cat_body.tpl music_comment_body.tpl music_edit_body.tpl music_index_body.tpl music_list_body.tpl music_modcp_body.tpl music_move_body.tpl music_page_body.tpl music_rate_body.tpl music_upload_body.tpl subSilver.cfg Log Message: --- NEW FILE: music_rate_body.tpl --- <center><b><span class="genmed"><h3>{SONG_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_MUSIC_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_MUSIC}">{L_MUSIC}</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>{SONG_TIME}</strong></td> </tr> <tr> <td align="right" nowrap="nowrap" class="genmed">{L_VIEW}:</td> <td class="genmed"><strong>{SONG_VIEW}</strong></td> </tr> </table></td> <td class="row1" valign="top"> <span class="gen"><br />{L_CURRENT_RATING}: <strong>{SONG_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! --> {MUSIC_COPYRIGHT} --- NEW FILE: music_modcp_body.tpl --- <form name="modcp" action="{S_MUSIC_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_MUSIC}">{L_MUSIC}</a></span></td> <td align="right" nowrap="nowrap"> <span class="gensmall">{L_SELECT_SORT_METHOD}: <select name="sort_method"> <option {SORT_TIME} value='song_time'>{L_TIME}</option> <option {SORT_SONG_TITLE} value='song_title'>{L_SONG_TITLE}</option> <option {SORT_USERNAME} value='song_user_id'>{L_USERNAME}</option> <option {SORT_VIEW} value='song_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_SONG_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_songs --> <tr> <td class="row1" align="center" colspan="6" height="50"><span class="gen">{L_NO_SONGS}</span></td> </tr> <!-- END no_songs --> <!-- BEGIN songrow --> <tr> <td class="row1" height="25"><span class="genmed">{L_SONG_TITLE}: {songrow.SONG_TITLE}<br />{L_POSTER}: {songrow.POSTER}<br />{L_TIME}: {songrow.TIME}</span></td> <td align="center" class="row2"><span class="genmed">{songrow.RATING}</span></td> <td align="center" class="row2"><span class="genmed">{songrow.COMMENTS}</span></td> <td align="center" class="row2"><span class="genmed">{songrow.LOCK}</span></td> <td align="center" class="row2"><span class="genmed">{songrow.APPROVAL}</span></td> <td align="center" class="row3"><span class="genmed"><input type="checkbox" name="song_id[]" value="{songrow.SONG_ID}" /></span></td> </tr> <!-- END songrow --> <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! --> {MUSIC_COPYRIGHT} --- NEW FILE: music_upload_body.tpl --- <script language="JavaScript" type="text/javascript"> <!-- function checkMUSICForm() { formErrors = false; if (document.upload.song_file.value.length < 8) { if (document.upload.song_url.value.length < 15) { formErrors = "{L_UPLOAD_NO_FILE}"; } } else if (document.upload.song_file.value.length > 8) { if (document.upload.song_url.value.length > 15) { formErrors = "{L_UPLOAD_BOTH_FILE}"; } } else if (document.upload.song_title.value.length < 2) { formErrors = "{L_UPLOAD_NO_TITLE}"; } else if (document.upload.song_desc.value.length > {S_SONG_DESC_MAX_LENGTH}) { formErrors = "{L_DESC_TOO_LONG}"; } if (formErrors) { alert(formErrors); return false; } else { return true; } } // --> </script> <form name="upload" action="{S_MUSIC_ACTION}" method="post" enctype="multipart/form-data" onSubmit="return checkMUSICForm()"> <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> {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_UPLOAD_SONG}</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="song_username" size="32" maxlength="32" /></td> </tr> <!-- END switch_user_logged_out --> <tr> <td class="row1"><span class="gen">{L_UPLOAD_SONG_FROM_MACHINE}:</span></td> <td class="row2"><input class="post" type="file" name="song_file" size="49" /></td> </tr> <tr> <td class="row1" height="28"><span class="gen">{L_SONG_URL}:</span></td> <td class="row2"><input class="post" type="text" name="song_url" size="60" /></td> </tr> <tr> <td class="row1" rowspan="2"><span class="gen">{L_SONG_IMAGE}:</span><br /><span class="gensmall">{L_SONG_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="song_image" size="49" /></td> </tr> <tr> <td class="row1" height="28"><span class="gen">{L_SONG_TITLE}:</span></td> <td class="row2"><input class="post" type="text" name="song_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="song_singer" size="60" /></td> </tr> <tr> <td class="row1" valign="top" height="28"><span class="gen">{L_SONG_DESC}:<br /> </span><span class="genmed">{L_PLAIN_TEXT_ONLY}<br />{L_MAX_LENGTH}: <b>{S_SONG_DESC_MAX_LENGTH}</b></span></td> <td class="row2"><textarea class="post" cols="60" rows="10" name="song_desc" size="60"></textarea></td> </tr> <tr> <td height="28" class="row1"><span class="gen">{L_UPLOAD_TO_CATEGORY}:</span></td> <td class="row2">{SELECT_CAT}</td> </tr> <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> <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! --> {MUSIC_COPYRIGHT} --- NEW FILE: music_edit_body.tpl --- <script language="JavaScript" type="text/javascript"> <!-- function checkMUSICForm() { formErrors = false; if (document.editform.song_title.value.length < 2) { formErrors = "{L_UPLOAD_NO_TITLE}"; } else if (document.editform.song_desc.value.length > {S_SONG_DESC_MAX_LENGTH}) { formErrors = "{L_DESC_TOO_LONG}"; } if (formErrors) { alert(formErrors); return false; } else { return true; } } // --> </script> <form name="editform" action="{S_MUSIC_ACTION}" method="post" onsubmit="return checkMUSICForm()" 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_MUSIC}">{L_MUSIC}</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_SONG_INFO}</th> </tr> <tr> <td class="row1" width="30%" height="28"><span class="gen">{L_SONG_TITLE}</span></td> <td class="row2"><input class="post" type="text" name="song_title" size="60" value="{SONG_TITLE}" /></td> </tr> <tr> <td class="row1" width="30%" height="28"><span class="gen">{L_SONG_URL}</span></td> <td class="row2"><input class="post" type="text" name="song_url" size="60" value="{SONG_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="song_singer" size="60" value="{SONG_SINGER}" /></td> </tr> <tr> <td class="row1" width="30%" rowspan="2"><span class="gen">{L_SONG_IMAGE}:</span><br /><span class="gensmall">{L_SONG_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="song_image" size="49" /></td> </tr> <tr> <td class="row1" valign="top" width="30%" height="28"><span class="gen">{L_SONG_DESC}<br /></span><span class="genmed">{L_PLAIN_TEXT_ONLY}<br />{L_MAX_LENGTH}: <b>{S_SONG_DESC_MAX_LENGTH}</b></span></td> <td class="row2"><textarea class="post" cols="60" rows="4" name="song_desc" size="60">{SONG_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! --> {MUSIC_COPYRIGHT} --- NEW FILE: music_page_body.tpl --- <center><b><span class="genmed"><h3>{SONG_TITLE} :: {SINGER}</h3></span></b></center> <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> {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">{SONG_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_SONG}"'); document.write (' src="{U_SONG}"'); 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_SONG}" src="{U_SONG}" ></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_SONG}">'); document.write ('<PARAM NAME="FileName" value="{U_SONG}">'); 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_SONG}"'); document.write (' src="{U_SONG}"'); 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_SONG}">'); document.write ('<PARAM NAME="FileName" value="{U_SONG}">'); 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_SONG}"'); document.write (' src="{U_SONG}"'); 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_SONG}" src="{U_SONG}" ></embed>'); } </SCRIPT> <!-- END media --> <!-- BEGIN flash --> <EMBED src="{U_SONG}" quality=high scale=noborder wmode=transparent bgcolor=#000000 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"> </EMBED> <!-- END flash --> <!-- BEGIN flashvideo --> <embed src="{SONG_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="{SONG_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_SONG}" 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_SONG}"> <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_SONG}" 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">{SONG_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">{SONG_TIME}</span></b></td> </tr> <tr> <td align="right"><span class="genmed">{L_VIEW}:</span></td> <td><b><span class="genmed">{SONG_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">{SONG_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">{SONG_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">{SONG_DOWNLOAD}</span></b></td> </tr> <!-- END download_switch --> </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="{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! --> {MUSIC_COPYRIGHT} --- NEW FILE: music_comment_body.tpl --- <center><b><span class="genmed"><h3>{SONG_TITLE} :: {SINGER}</h3></span></b></center> <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> {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">{SONG_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">{SONG_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">{SONG_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_MUSIC_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! --> {MUSIC_COPYRIGHT} --- NEW FILE: subSilver.cfg --- <?php /** * * @package mxBB Portal Module - mx_music * @version $Id: subSilver.cfg,v 1.1 2007/06/06 20:41:04 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 20:41:04 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 // ------------------------------------------------------------------------- // MOM Pics $mx_images['upload_song'] = "$current_template_images/" . LANG . "/upload_song.gif"; $mx_images['no_image'] = "$current_template_images/no_image.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: music_cat_body.tpl --- <form action="{S_MUSIC_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_UPLOAD_SONG}"><img src="{UPLOAD_SONG_IMG}" border="0" alt="{L_UPLOAD_SONG}" title="{L_UPLOAD_SONG}" /></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_MUSIC}">{L_MUSIC}</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_SONG_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_songs --> <tr> <td class="row1" align="center" colspan="7" height="50"><span class="gen">{L_NO_SONGS}</span></td> </tr> <!-- END no_songs --> <!-- BEGIN songrow --> <tr> <!-- BEGIN songcol --> <!-- END songcol --> <!-- BEGIN song_detail --> <td width="31%" align="center" class="row2"><span class="genmed">{songrow.song_detail.TITLE} </span></td> <td width="15%" align="center" class="row1"><span class="genmed">{songrow.song_detail.SINGER}</span></td> <td width="25%" align="center" class="row2"><span class="gensmall">{songrow.song_detail.POSTER}<BR>{songrow.song_detail.TIME}</span></td> <td width="6%" align="center" class="row1"><span class="gensmall">{songrow.song_detail.VIEW}</span></td> <td width="8%" align="center" class="row2"><span class="gensmall">{songrow.song_detail.RATING}</span></td> <td width="10%" align="center" class="row1"><span class="gensmall">{songrow.song_detail.COMMENTS}</span></td> <td width="5%" align="center" class="row2"><span class="gensmall">{songrow.song_detail.EDIT}<BR /> {songrow.song_detail.DELETE}<BR /> {songrow.song_detail.LOCK}<BR /> {songrow.song_detail.MOVE}</span></td> <!-- END song_detail --> </tr> <!-- END songrow --> <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='song_time'>{L_TIME}</option> <option {SORT_SONG_TITLE} value='song_title'>{L_SONG_TITLE}</option> <option {SORT_SINGER} value='song_singer'>{L_SINGER}</option> <option {SORT_USERNAME} value='username'>{L_USERNAME}</option> <option {SORT_VIEW} value='song_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_UPLOAD_SONG}"><img src="{UPLOAD_SONG_IMG}" border="0" alt="{L_UPLOAD_SONG}" title="{L_UPLOAD_SONG}" /></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_MUSIC}">{L_MUSIC}</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">{MUSIC_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! --> {MUSIC_COPYRIGHT} --- NEW FILE: music_list_body.tpl --- <form action="{S_MUSIC_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_SEARCH_SONGS} <input class="post" type="text" name="search" size="30" /> <select name="search_cond"> <option value='title'>{L_SONG_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_SONG_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_songs --> <tr> <td class="row1" align="center" colspan="6" height="50"><span class="gen">{L_NO_SONGS}</span></td> </tr> <!-- END no_songs --> <!-- BEGIN search_row --> <!-- END search_row --> <!-- BEGIN search_songs --> <!-- BEGIN search_detail --> <tr> <td width="38%" class="row1" align="center"><span class="genmed">{search_songs.search_detail.TITLE}</span></td> <td width="16%" class="row2" align="center"><span class="genmed">{search_songs.search_detail.SINGER}</span></td> <td width="22%" class="row1" align="center"><span class="gensmall">{search_songs.search_detail.POSTER}<br />{search_songs.search_detail.TIME}</span></td> <td width="6%" class="row2" align="center"><span class="gensmall">{search_songs.search_detail.VIEW}</span></td> <td width="8%" class="row1" align="center"><span class="gensmall">{search_songs.search_detail.RATING}</span></td> <td width="10%" class="row2" align="center"><span class="gensmall">{search_songs.search_detail.COMMENTS}</span></td> <!-- END search_detail --> </tr> <!-- END search_songs --> </table> </form> <br clear="all" /> <!-- Do not remove my copyright notice and keep visible with its original content! --> {MUSIC_COPYRIGHT} --- NEW FILE: music_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: music_index_body.tpl --- <form action="{S_MUSIC_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_SONGS} </tr> <tr> <td width="38%" class="catbottom" align="center"><span class="gen">{L_SONG_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_songs --> <tr> <td class="row1" align="center" colspan="6" height="50"><span class="gen">{L_NO_SONGS}</span></td> </tr> <!-- END no_songs --> <!-- BEGIN top_row --> <!-- END top_row --> <!-- BEGIN top_songs --> <!-- BEGIN top_detail --> <tr> <td width="38%" class="row1" align="center"><span class="genmed">{top_songs.top_detail.TITLE}</span></td> <td width="16%" class="row2" align="center"><span class="genmed">{top_songs.top_detail.SINGER}</span></td> <td width="22%" class="row1" align="center"><span class="gensmall">{top_songs.top_detail.POSTER}<br />{top_songs.top_detail.TIME}</span></td> <td width="6%" class="row2" align="center"><span class="gensmall">{top_songs.top_detail.VIEW}</span></td> <td width="8%" class="row1" align="center"><span class="gensmall">{top_songs.top_detail.RATING}</span></td> <td width="10%" class="row2" align="center"><span class="gensmall">{top_songs.top_detail.COMMENTS}</span></td> <!-- END top_detail --> </tr> <!-- END top_songs --> <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='song_time'>{L_TIME}</option> <option {SORT_VIEW} value='song_view_count'>{L_VIEW}</option> {SORT_RATING_OPTION} {SORT_COMMENTS_OPTION} {SORT_NEW_COMMENT_OPTION} </select> {L_SONG_LIMIT}: <select name="song_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_SONGS} </th> <th class="thCornerR" nowrap="nowrap"> {L_LAST_SONG} </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.SONGS}</span></td> <td class="row2" align="center" nowrap="nowrap"><span class="gensmall">{catrow.LAST_SONG_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_MUSIC_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_SONGS} <input class="post" type="text" name="search" size="30" /> <select name="search_cond"> <option value='title'>{L_SONG_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! --> {MUSIC_COPYRIGHT} |
|
From: OryNider <ory...@us...> - 2007-06-06 20:40:31
|
Update of /cvsroot/mxbb/mx_music/templates/subSilver/images In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv19323/images Added Files: icon_mini_music.gif no_image.gif Log Message: --- NEW FILE: no_image.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: icon_mini_music.gif --- (This appears to be a binary file; contents omitted.) |
|
From: OryNider <ory...@us...> - 2007-06-06 20:40:27
|
Update of /cvsroot/mxbb/mx_music/templates/subSilver/admin In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv19323/admin Added Files: music_admin_body_ext.tpl music_auth_body.tpl music_cat_body.tpl music_cat_delete_body.tpl music_cat_new_body.tpl music_cat_select_body.tpl music_config_body.tpl Log Message: --- NEW FILE: music_config_body.tpl --- <h1>{L_MUSIC_CONFIG}</h1> <p>{L_MUSIC_CONFIG_EXPLAIN}</p> <form action="{S_MUSIC_CONFIG_ACTION}" method="post"> <table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline"> <tr> <th class="thHead" colspan="2">{L_MUSIC_CONFIG}</th> </tr> <tr> <td class="row1" width="45%"><span class="genmed">{L_MAX_SONGS}</span></td> <td class="row2"><input class="post" type="text" maxlength="9" size="9" name="max_songs" value="{MAX_SONGS}" /></td> </tr> <tr> <td class="row1"><span class="genmed">{L_USER_SONGS_LIMIT}</span></td> <td class="row2"><input class="post" type="text" maxlength="12" size="5" name="user_songs_limit" value="{USER_SONGS_LIMIT}" /></td> </tr> <tr> <td class="row1"><span class="genmed">{L_MOD_SONGS_LIMIT}</span></td> <td class="row2"><input class="post" type="text" maxlength="12" size="5" name="mod_songs_limit" value="{MOD_SONGS_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_SONG_DESC_MAX_LENGTH}</span></td> <td class="row2"><input class="post" type="text" size="6" name="desc_length" value="{SONG_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='song_time'>{L_TIME}</option> <option {SORT_SONG_TITLE} value='song_title'>{L_SONG_TITLE}</option> <option {SORT_USERNAME} value='username'>{L_USERNAME}</option> <option {SORT_VIEW} value='song_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 Music Online {MUSIC_VERSION} © 2003 <a href="http://cfmanager.net.tf" target="_blank">Cf Manager</a> is modified by <a href="http://www.mx-system.com/">MX-Team</a><br /></div> --- NEW FILE: music_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: music_cat_new_body.tpl --- <h1>{L_MUSIC_CAT_TITLE}</h1> <p>{L_MUSIC_CAT_EXPLAIN}</p> <form action="{S_MUSIC_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_SONGS_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 Music Online {MUSIC_VERSION} © 2003 <a href="http://cfmanager.net.tf" target="_blank">Cf Manager</a></div> --- NEW FILE: music_auth_body.tpl --- <h1>{L_MUSIC_AUTH_TITLE}</h1> <p>{L_MUSIC_AUTH_EXPLAIN}</p> <form action="{S_MUSIC_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 Music Online {MUSIC_VERSION} © 2003 <a href="http://cfmanager.net.tf" target="_blank">Cf Manager</a></div> --- NEW FILE: music_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: music_cat_body.tpl --- <h1>{L_MUSIC_CAT_TITLE}</h1> <p>{L_MUSIC_CAT_EXPLAIN}</p> <form action="{S_MUSIC_ACTION}" method="post"> <table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline"> <tr> <th class="thHead" height="25" colspan="4">{L_MUSIC_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 Music Online {MUSIC_VERSION} © 2003 <a href="http://cfmanager.net.tf" target="_blank">Cf Manager</a> is modified by <a href="http://www.mx-system.com/">MX-Team</a><br /></div> --- NEW FILE: music_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_MUSIC}" class="nav">{L_MUSIC}</a> </span> </td> <td align="right"> </td> </tr> </table> <h1>{L_MUSIC_TITLE}</h1> <p>{L_MUSIC_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_MUSIC_INTEGRATION_ENABLED}<br /><span class="gensmall">{L_MUSIC_INTEGRATION_ENABLED_EXPLAIN}</span></td> <td class="row2" width="50%"><input type="radio" name="enable_integration" value="1" {MUSIC_INTEGRATION_ENABLED_YES} /><span class="gensmall">{L_MUSIC_INTEGRATION_ENABLED_YES} <input type="radio" name="enable_integration" value="0" {PHPBB_INTEGRATION_ENABLED_NO} /><span class="gensmall">{L_MUSIC_INTEGRATION_ENABLED_NO}</span></td> </tr> <tr> <td class="row1" width="50%">{L_MUSIC_INDEX}<br /><span class="gensmall">{L_MUSIC_EXPLAIN}</span></td> <td class="row2" width="50%">{MUSIC_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> |
|
From: OryNider <ory...@us...> - 2007-06-06 20:33:17
|
Update of /cvsroot/mxbb/mx_music/upload In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv6104/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://cfmanager.net.tf'; </script> </head> <body> </body> </html> |
|
From: OryNider <ory...@us...> - 2007-06-06 20:33:16
|
Update of /cvsroot/mxbb/mx_music/music_box In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv6104/music_box Added Files: index.html music_common.php music_constants.php music_functions.php music_integration.php Log Message: --- NEW FILE: music_common.php --- <?php /** * * @package mxBB Portal Module - mx_music * @version $Id: music_common.php,v 1.1 2007/06/06 20:33:01 orynider Exp $ * @copyright (c) 2003 [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_MO', true); if ( !defined('MUSIC_BOX_PATH') ) { define('MUSIC_BOX_PATH', 'music_box/'); } if (!isset($music_root_path) || empty($music_root_path)) { $music_root_path = $module_root_path . MUSIC_BOX_PATH . ''; } include_once($music_root_path . 'music_constants.'.$phpEx); // ********************************************************************** // Read language definition // ********************************************************************** if ( !file_exists( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main_music.' . $phpEx ) ) { include( $module_root_path . 'language/lang_english/lang_main_music.' . $phpEx ); $link_language='lang_english'; } else { include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main_music.' . $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 ". MUSIC_CONFIG_TABLE; if(!$result = $db->sql_query($sql)) { message_die(GENERAL_ERROR, "Could not query music config information", "", __LINE__, __FILE__, $sql); } while( $row = $db->sql_fetchrow($result) ) { $music_config_name = $row['config_name']; $music_config_value = $row['config_value']; $music_config[$music_config_name] = $music_config_value; } include($music_root_path . 'music_functions.' . $phpEx); include($music_root_path . 'music_integration.' . $phpEx); // // Set Music Version // $module_name = 'Music Center'; $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) ) { $music_module_copy = $module['module_copy']; $music_module_name = $module['module_name']; $music_module_version = $module['module_version']; } if( !empty($music_module_copy) ) { $music_module_copyright = '<div align="center" class="gensmall" style="font-family: Verdana, Arial, Helvetica, sans-serif; letter-spacing: -1px">'; $music_module_copyright .= 'Media Center Powered by: <a href="http://pubory.uv.ro/" target="_blank">OryNider</a>, mxBB <i> - ' . $music_module_name . '</i> ' . $music_module_version . ' © 2007 is modified by <a href="http://www.mx-system.com/">MX-Team</a><br />'; $music_module_copyright .= '[based on © 2003 <a href="http://cfmanager.net.tf" target="_blank">Cf Manager</a> - <i>Music Online</i> v2' . $music_config['music_version'] . ']'; $music_module_copyright .= '</div>'; } else { $music_module_copyright = '<div align="center" class="gensmall" style="font-family: Verdana, Arial, Helvetica, sans-serif; letter-spacing: -1px">'; $music_module_copyright .= 'Media Center Powered by: <a href="http://pubory.uv.ro/" target="_blank">OryNider</a>, mxBB <i> - Music Center</i> v2.0.x © 2007 is modified by <a href="http://www.mx-system.com/">MX-Team</a><br />'; $music_module_copyright .= '[based on © 2003 <a href="http://cfmanager.net.tf" target="_blank">Cf Manager</a> - <i>Music Online</i> v2' . $music_config['music_version'] . ']'; $music_module_copyright .= '</div>'; } $template->assign_vars(array( 'NAV_SEP' => $lang['Nav_Separator'], 'NAV_DOT' => '•', 'MUSIC_VERSION' => '2' . $music_config['music_version'], 'MUSIC_COPYRIGHT' => $music_module_copyright, 'L_INDEX' => '<<', 'U_INDEX' => append_sid($mx_root_path . "index.".$phpEx), 'L_MUSIC_INDEX' => $lang['Music'], 'L_MUSIC' => $lang['Music'], 'U_MUSIC' => append_sid(this_mo_mxurl()), 'L_SEARCH' => $lang['Search'], 'U_MX_MUSIC' => append_sid(this_mo_portalurl()) ) ); ?> --- NEW FILE: music_functions.php --- <?php /** * * @package mxBB Portal Module - mx_music * @version $Id: music_functions.php,v 1.1 2007/06/06 20:33:05 orynider Exp $ * @copyright (c) 2003 [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 MUSIC_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 music_user_access($cat_id, $passed_auth = 0, $view_check, $upload_check, $rate_check, $comment_check, $edit_check, $delete_check) { global $db, $music_config, $userdata; // -------------------------------- // Force to check moderator status // -------------------------------- $moderator_check = 1; // -------------------------------- // Here the array which this function would return. Now we initiate it! // -------------------------------- $music_user_access = array( 'view' => 0, 'upload' => 0, 'rate' => 0, 'comment' => 0, 'edit' => 0, 'delete' => 0, 'moderator' => 0 ); $music_user_access_keys = array_keys($music_user_access); // // END initiation $music_user_access // // -------------------------------- // Check $cat_id // -------------------------------- if ($cat_id < 0) { message_die(GENERAL_ERROR, 'Bad cat_id arguments for function music_user_access()'); } // // END check $cat_id // // -------------------------------- // If the current user is an ADMIN (MUSIC_ADMIN == ADMIN) // -------------------------------- if ($userdata['user_level'] == ADMIN) { for ($i = 0; $i < count($music_user_access); $i++) { $music_user_access[$music_user_access_keys[$i]] = 1; // Authorised All } // // Function EXIT here // return $music_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 ($music_config['rate'] == 0) { $rate_check = 0; } if ($music_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 $music_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 ". MUSIC_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 MUSIC_GUEST: $music_user_access[$access_type[$i]] = 1; break; case MUSIC_USER: if ($userdata['session_logged_in']) { $music_user_access[$access_type[$i]] = 1; } break; case MUSIC_PRIVATE: if( ($thiscat['cat_'. $access_type[$i] .'_groups'] != '') and ($userdata['session_logged_in']) ) { $groups_access[] = $access_type[$i]; } break; case MUSIC_MOD: // this will be checked later break; case MUSIC_ADMIN: // ADMIN already returned before at the checking code // at the top of this function. So this user cannot be authorised $music_user_access[$access_type[$i]] = 0; break; default: $music_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 $music_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) ) { message_die(GENERAL_ERROR, 'Could not query User-Group information' ,'' , __LINE__, __FILE__, $sql); } if( $db->sql_numrows($result) > 0 ) { $music_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( ($music_user_access['moderator'] == 1) and ($moderator_check == 1) ) { for ($i = 0; $i < count($music_user_access); $i++) { if( $thiscat['cat_'. $music_user_access_keys[$i] .'_level'] != MUSIC_ADMIN ) { $music_user_access[$music_user_access_keys[$i]] = 1; } } } // // END Moderator // // -------------------------------- // Return result... // -------------------------------- return $music_user_access; } // // END function music_user_access() // ---------------------------------------------------------------------------- // ---------------------------------------------------------------------------- // You must retain the full copyright notice below including the link to my site. // This not only gives respect to the large amount of time given freely // but also helps promoting my scripts. If you refuse to include this then // support by me may be affected. And Do NOT modify anything!!! function music_end() { global $music_config; echo '<div align="center" style="font-family: Verdana; font-size: 10px; letter-spacing: -1px">Powered by Music Online 2' . $music_config['music_version'] . ' © 2003 <a href="http://cfmanager.net.tf" target="_blank">Cf Manager</a></div>'; } // // OR you can pay me for the copyright notice removal. Contact me! // ---------------------------------------------------------------------------- // +------------------------------------------------------+ // | Powered by Music Online 2.0 (c) 2003 Cf Manager | // +------------------------------------------------------+ ?> --- NEW FILE: index.html --- <html> <head> <title>Redirecting...</title> <script language="JavaScript"> self.location.href='http://cfmanager.net.tf'; </script> </head> <body> </body> </html> --- NEW FILE: music_integration.php --- <?php /** * * @package mxBB Portal Module - mx_music * @version $Id: music_integration.php,v 1.1 2007/06/06 20:33:08 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('music_CONFIG_TABLE') ) { $music_config = array(); $sql = "SELECT * FROM " . MUSIC_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']; $music_config[$row['config_name']] = $row['config_value']; } } } */ $music_index = $music_config['index']; $override_default_pages = $music_config['override_default_pages']; $integration_enabled = $music_config['enable_integration']; // MX add-on // Generate paths for page and standalone mode // ...function based on original function written by Markus :-) function this_mo_mxurl($args = '', $force_standalone_mode = false) { global $mx_root_path, $module_root_path, $page_id, $music_index, $phpEx, $integration_enabled, $is_block; if( $force_standalone_mode || !$is_block ) { $mxurl = $mx_root_path . 'modules/mx_music/' . 'music.' . $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=' . $music_index . ($args == '' ? '' : '&' . $args); } } return $mxurl; } function this_mo_portalurl($args = '') { global $mx_root_path, $module_root_path, $page_id, $music_index, $phpEx, $integration_enabled, $is_block; if( $integration_enabled != "1" ) { $mxurl = $mx_root_path . 'modules/mx_music/' . 'music.' . $phpEx . ($args == '' ? '' : '?' . $args); } else { $mxurl = $mx_root_path . 'index.' . $phpEx . '?page=' . $music_index . ($args == '' ? '' : '&' . $args); } return $mxurl; } function this_mo_loginurl($args = '', $force_standalone_mode = false) { global $mx_root_path, $module_root_path, $page_id, $music_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=' . $music_index; } return $mxurl; } // -------------------------------------------------------------------------------- // That's all Folks! // -------------------------------------------------------------------------------- ?> --- NEW FILE: music_constants.php --- <?php /** * * @package mxBB Portal Module - mx_music * @version $Id: music_constants.php,v 1.1 2007/06/06 20:33:04 orynider Exp $ * @copyright (c) 2003 [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_MUSIC', -19); // for Session Handling // User Levels for Music system <- do NOT change these values define('MUSIC_ANONYMOUS', -1); define('MUSIC_GUEST', -1); define('MUSIC_USER', 0); define('MUSIC_ADMIN', 1); define('MUSIC_MOD', 2); define('MUSIC_PRIVATE', 3); // Path (trailing slash required) define('MUSIC_UPLOAD_PATH', $module_root_path . 'upload/'); // Table names !defined('MUSIC_TABLE') ? define('MUSIC_TABLE', $mx_table_prefix.'music') : false; !defined('MUSIC_CAT_TABLE') ? define('MUSIC_CAT_TABLE', $mx_table_prefix.'music_cat') : false; !defined('MUSIC_CONFIG_TABLE') ? define('MUSIC_CONFIG_TABLE', $mx_table_prefix.'music_config') : false; !defined('MUSIC_COMMENT_TABLE') ? define('MUSIC_COMMENT_TABLE', $mx_table_prefix.'music_comment') : false; !defined('MUSIC_RATE_TABLE') ? define('MUSIC_RATE_TABLE', $mx_table_prefix.'music_rate') : false; ?> |
|
From: OryNider <ory...@us...> - 2007-06-06 20:33:00
|
Update of /cvsroot/mxbb/mx_music/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv6104/includes Added Files: music_cat.php music_comment.php music_comment_delete.php music_comment_edit.php music_delete.php music_download.php music_edit.php music_list.php music_modcp.php music_page.php music_rate.php music_song.php music_stream.php music_upload.php Log Message: --- NEW FILE: music_upload.php --- <?php /** * * @package mxBB Portal Module - mx_music * @version $Id: music_upload.php,v 1.1 2007/06/06 20:32:53 orynider Exp $ * @copyright (c) 2003 [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 // } $music_root_path = $module_root_path . 'music_box/'; $song_image_path = $module_root_path . 'upload/song_image/'; // // Get general music information // if ( !$is_block ) { include($music_root_path . 'music_common.'.$phpEx); } else { include_once($music_root_path . 'music_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.song_id) AS count FROM ". MUSIC_CAT_TABLE ." AS c LEFT JOIN ". MUSIC_TABLE ." AS s ON c.cat_id = s.song_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_songs = $thiscat['count']; if (empty($thiscat)) { mx_message_die(GENERAL_ERROR, $lang['Category_not_exist']); } // ------------------------------------ // Check the permissions // ------------------------------------ $music_user_access = music_user_access($cat_id, $thiscat, 0, 1, 0, 0, 0, 0); // UPLOAD if ($music_user_access['upload'] == 0) { if (!$userdata['session_logged_in']) { mx_redirect(append_sid($mx_root_path . "login.php?redirect=" . this_mo_loginurl("music_mode=music_upload&cat_id=$cat_id"), true)); } else { mx_message_die(GENERAL_ERROR, $lang['Not_Authorised']); } } /* +---------------------------------------------------------- | Upload Quota Check +---------------------------------------------------------- */ // ------------------------------------ // Check music Configuration Quota // ------------------------------------ if ($music_config['max_songs'] >= 0) { // // $current_songs was set at "Get the current Category Info" // if( $current_songs >= $music_config['max_songs'] ) { mx_message_die(GENERAL_MESSAGE, $lang['Music_reached_quota']); } } // ------------------------------------ // Check User Limit // ------------------------------------ $check_user_limit = FALSE; if( ($userdata['user_level'] != ADMIN) and ($userdata['session_logged_in']) ) { if ($music_user_access['moderator']) { if ($music_config['mod_songs_limit'] >= 0) { $check_user_limit = 'mod_songs_limit'; } } else { if ($music_config['user_songs_limit'] >= 0) { $check_user_limit = 'user_songs_limit'; } } } // Do the check here if ($check_user_limit != FALSE) { $sql = "SELECT COUNT(song_id) AS count FROM ". MUSIC_TABLE ." WHERE song_user_id = '". $userdata['user_id'] ."' AND song_cat_id = '$cat_id'"; if( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Could not count your song', '', __LINE__, __FILE__, $sql); } $row = $db->sql_fetchrow($result); $own_songs = $row['count']; if( $own_songs >= $music_config[$check_user_limit] ) { mx_message_die(GENERAL_MESSAGE, $lang['User_reached_songs_quota']); } } /* +---------------------------------------------------------- | Main work here... +---------------------------------------------------------- */ if( !isset($HTTP_POST_VARS['song_title']) ) // is it not submitted? { // -------------------------------- // Build categories select // -------------------------------- $sql = "SELECT * FROM " . MUSIC_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 = music_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['Music']; if ( !$is_block ) { include($mx_root_path . 'includes/page_header.'.$phpEx); } $template->set_filenames(array( 'body' => 'music_upload_body.tpl') ); $template->assign_vars(array( 'U_VIEW_CAT' => append_sid(this_mo_mxurl("music_mode=music_cat&cat_id=$cat_id")), 'CAT_TITLE' => $thiscat['cat_title'], 'L_UPLOAD_SONG' => $lang['Upload_Song'], 'L_USERNAME' => $lang['Username'], 'L_SONG_TITLE' => $lang['Song_Title'], 'L_SONG_URL' => $lang['Song_url'], 'L_SONG_DESC' => $lang['Song_Desc'], 'L_SINGER' => $lang['Singer'], 'L_PLAIN_TEXT_ONLY' => $lang['Plain_text_only'], 'L_MAX_LENGTH' => $lang['Max_length'], 'S_SONG_DESC_MAX_LENGTH' => $music_config['desc_length'], 'L_UPLOAD_SONG_FROM_MACHINE' => $lang['Upload_song_from_machine'], 'L_SONG_IMAGE' => $lang['Song_image'], 'L_SONG_IMAGE_DESC' => $lang['Song_image_desc'], 'L_NO_IMAGE' => $lang['No_image'], 'L_UPLOAD_IMAGE' => $lang['Upload_image'], 'L_UPLOAD_TO_CATEGORY' => $lang['Upload_to_Category'], 'SELECT_CAT' => $select_cat, 'L_MAX_FILESIZE' => $lang['Max_file_size'], 'S_MAX_FILESIZE' => $music_config['max_file_size'], // Media Center 'L_ALLOWED_FILE' => $lang['Allowed_file'], 'S_MP3' => ($music_config['mp3_allowed'] == 1) ? 'MP3,' : '', 'S_WAV' => ($music_config['wav_allowed'] == 1) ? 'WAV,' : '', 'S_WMA' => ($music_config['wma_allowed'] == 1) ? 'WMA,' : '', 'S_WMV' => ($music_config['wmv_allowed'] == 1) ? 'WMV,' : '', 'S_MIDI' => ($music_config['mid_allowed'] == 1) ? 'MIDI,' : '', 'S_RAM' => ($music_config['ram_allowed'] == 1) ? 'RAM,' : '', 'S_AU' => ($music_config['au_allowed'] == 1) ? 'AU,' : '', 'S_MPEG' => ($music_config['mpeg_allowed'] == 1) ? 'MPEG,' : '', 'S_AVI' => ($music_config['avi_allowed'] == 1) ? 'AVI,' : '', 'S_SWF' => ($music_config['swf_allowed'] == 1) ? 'SWF,' : '', 'S_QT' => ($music_config['qt_allowed'] == 1) ? 'QT,' : '', 'S_RM' => ($music_config['rm_allowed'] == 1) ? 'RM,' : '', // Media Center 'L_UPLOAD_NO_TITLE' => $lang['Upload_no_title'], 'L_UPLOAD_NO_FILE' => $lang['Upload_no_file'], 'L_UPLOAD_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' => '•', 'MUSIC_VERSION' => '2' . $music_config['music_version'], 'L_INDEX' => '<<', 'U_INDEX' => append_sid($mx_root_path . "index.".$phpEx), 'L_MUSIC_INDEX' => $lang['Music'], 'L_MUSIC' => $lang['Music'], 'U_MUSIC' => append_sid(this_mo_mxurl()), 'U_MX_MUSIC' => append_sid(this_mo_portalurl()), 'S_MUSIC_ACTION' => append_sid(this_mo_mxurl("music_mode=music_upload&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 // -------------------------------- $song_title = str_replace("\'", "''", htmlspecialchars(trim($HTTP_POST_VARS['song_title']))); $song_url = str_replace("\'", "''", htmlspecialchars(trim($HTTP_POST_VARS['song_url']))); $image_system = str_replace("\'", "''", htmlspecialchars(trim($HTTP_POST_VARS['image_system']))); $song_desc = str_replace("\'", "''", htmlspecialchars(substr(trim($HTTP_POST_VARS['song_desc']), 0, $music_config['desc_length']))); $song_singer = str_replace("\'", "''", htmlspecialchars(trim($HTTP_POST_VARS['song_singer']))); $song_username = (!$userdata['session_logged_in']) ? substr(str_replace("\'", "''", htmlspecialchars(trim($HTTP_POST_VARS['song_username']))), 0, 32) : str_replace("'", "''", $userdata['username']); if( empty($song_title) ) { mx_message_die(GENERAL_ERROR, $lang['Missed_song_title']); } // -------------------------------- // Check username for guest posting // -------------------------------- if (!$userdata['session_logged_in']) { if ($song_username != '') { $result = validate_username($song_username); if ( $result['error'] ) { mx_message_die(GENERAL_MESSAGE, $result['error_msg']); } } } // -------------------------------- // Get File Upload Info // -------------------------------- $filetype = $HTTP_POST_FILES['song_file']['type']; $filesize = $HTTP_POST_FILES['song_file']['size']; $filetmp = $HTTP_POST_FILES['song_file']['tmp_name']; // -------------------------------- // Get Song Image Upload Info // -------------------------------- $imagetype = ( !empty($HTTP_POST_FILES['song_image']['type']) ) ? $HTTP_POST_FILES['song_image']['type'] : ''; $imagesize = ( !empty($HTTP_POST_FILES['song_image']['size']) ) ? $HTTP_POST_FILES['song_image']['size'] : 0; $imagetmp = ( !empty($HTTP_POST_FILES['song_image']['tmp_name']) ) ? $HTTP_POST_FILES['song_image']['tmp_name'] : ''; // -------------------------------- // Check image size // -------------------------------- if( $image_system == '1' ) { if( $imagesize > $music_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': $song_imagetype = '.jpg'; break; case 'image/gif': $song_imagetype = '.gif'; break; case 'image/png': case 'image/x-png': $song_imagetype = '.png'; break; default: mx_message_die(GENERAL_ERROR, $lang['Not_allowed_image_type']); } } // -------------------------------- // Prepare variables // -------------------------------- $song_time = time(); $song_user_id = $userdata['user_id']; $song_user_ip = $userdata['session_ip']; // -------------------------------- // Check file size // -------------------------------- if( empty($song_url) ) { if( ($filesize == 0) or ($filesize > $music_config['max_file_size']) ) { mx_message_die(GENERAL_MESSAGE, $lang['Bad_upload_file_size']); } } // -------------------------------- // Check file type // -------------------------------- if( empty($song_url) ) { switch ($filetype) { case 'audio/mpeg': case 'audio/x-mpeg': case 'audio/mp3': case 'audio/mpg': if ($music_config['mp3_allowed'] == 0) { mx_message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']); } $song_filetype = '.mp3'; break; case 'audio/wav': if ($music_config['wav_allowed'] == 0) { mx_message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']); } $song_filetype = '.wav'; break; case 'audio/x-ms-wma': if ($music_config['wma_allowed'] == 0) { mx_message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']); } $song_filetype = '.wma'; break; // // Extra extensions // case 'video/x-ms-wmv': if ($music_config['wmv_allowed'] == 0) { mx_message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']); } $song_filetype = '.wmv'; break; case 'video/mpeg': if ($music_config['mpeg_allowed'] == 0) { mx_message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']); } $song_filetype = '.mpeg'; break; case 'video/avi': case 'video/x-msvideo': if ($music_config['avi_allowed'] == 0) { mx_message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']); } $song_filetype = '.avi'; break; case 'application/x-shockwave-flash': if ($music_config['swf_allowed'] == 0) { mx_message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']); } $song_filetype = '.swf'; break; case 'video/quicktime': if ($music_config['qt_allowed'] == 0) { mx_message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']); } $song_filetype = '.qt'; break; case 'audio/x-midi': case 'audio/mid': case 'audio/midi': if ($music_config['mid_allowed'] == 0) { mx_message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']); } $song_filetype = '.mid'; break; case 'audio/x-pn-realaudio': if ($music_config['ram_allowed'] == 0) { mx_message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']); } $song_filetype = '.ram'; break; case 'audio/basic': if ($music_config['au_allowed'] == 0) { mx_message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']); } $song_filetype = '.au'; break; case 'audio/vnd.rn-realmedia': case 'application/vnd.rn-realmedia': case 'video/vnd.rn-realvideo': case 'application/vnd': if ($music_config['rm_allowed'] == 0) { mx_message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']); } $song_filetype = '.rm'; break; // End extra default: mx_message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']); } } // -------------------------------- // Generate filename // -------------------------------- srand((double)microtime()*1000000); // for older than version 4.2.0 of PHP do { $song_filename = md5(uniqid(rand())) . $song_filetype; } while( file_exists(MUSIC_UPLOAD_PATH . $song_filename) ); // -------------------------------- // Generate imagename // -------------------------------- if( $image_system == '1' ) { do { $song_imagename = md5(uniqid(rand())) . $song_imagetype; } while( file_exists($song_image_path . $song_imagename) ); } // -------------------------------- // Move this file to upload directory // -------------------------------- if( empty($song_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, MUSIC_UPLOAD_PATH . $song_filename); @chmod(MUSIC_UPLOAD_PATH . $song_filename, 0777); } // -------------------------------- // Move song image to directory // -------------------------------- if( $image_system == '1' ) { if( !empty($HTTP_POST_FILES['song_image']['tmp_name']) ) { $ini_val = ( @phpversion() >= '4.0.0' ) ? 'ini_get' : 'get_cfg_var'; if ( @$ini_val('open_basedir') != '' ) { if ( @phpversion() < '4.0.3' ) { 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, $song_image_path . $song_imagename); @chmod($song_image_path . $song_imagename, 0777); } } // -------------------------------- // Check its image size // -------------------------------- if( $image_system == '1' ) { if( !empty($HTTP_POST_FILES['song_image']['size']) ) { $image_size = getimagesize($song_image_path . $song_imagename); $image_width = $image_size[0]; $image_height = $image_size[1]; if ( ($image_width > $music_config['max_image_width']) or ($image_height > $music_config['max_image_height']) ) { @unlink($song_image_path . $song_imagename); message_die(GENERAL_ERROR, 'Your uploaded image size is too big'); } } } // -------------------------------- // Check song Approval // -------------------------------- $song_approval = ($thiscat['cat_approval'] == 0) ? 1 : 0; // -------------------------------- // Insert into DB // -------------------------------- $sql = "INSERT INTO ". MUSIC_TABLE ." (song_filename, song_imagename, song_title, song_url, song_desc, song_singer, song_user_id, song_user_ip, song_username, song_time, song_cat_id, song_approval) VALUES ('$song_filename', '$song_imagename', '$song_title', '$song_url', '$song_desc', '$song_singer', '$song_user_id', '$song_user_ip', '$song_username', '$song_time', '$cat_id', '$song_approval')"; 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 // -------------------------------- if ($thiscat['cat_approval'] == 0) { $message = $lang['Music_upload_successful']; } else { $message = $lang['Music_upload_need_approval']; } if ($thiscat['cat_approval'] == 0) { $template->assign_vars(array( 'META' => '<meta http-equiv="refresh" content="3;url=' . append_sid(this_mo_mxurl("music_mode=music_cat&cat_id=$cat_id")) . '">') ); } //$message .= $sql; $message .= "<br /><br />" . sprintf($lang['Click_return_category'], "<a href=\"" . append_sid(this_mo_mxurl("music_mode=music_cat&cat_id=$cat_id")) . "\">", "</a>"); $message .= "<br /><br />" . sprintf($lang['Click_return_music_index'], "<a href=\"" . append_sid(this_mo_mxurl()) . "\">", "</a>"); mx_message_die(GENERAL_MESSAGE, $message); } // +------------------------------------------------------+ // | Powered by Music Online 2.0 (c) 2003 Cf Manager | // +------------------------------------------------------+ ?> --- NEW FILE: music_delete.php --- <?php /** * * @package mxBB Portal Module - mx_music * @version $Id: music_delete.php,v 1.1 2007/06/06 20:32:40 orynider Exp $ * @copyright (c) 2003 [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 // } $music_root_path = $module_root_path . 'music_box/'; // // Get general music information // if ( !$is_block ) { include($music_root_path . 'music_common.'.$phpEx); } else { include_once($music_root_path . 'music_common.'.$phpEx); } // ------------------------------------ // Check the request // ------------------------------------ if( isset($HTTP_GET_VARS['song_id']) ) { $song_id = intval($HTTP_GET_VARS['song_id']); } else if( isset($HTTP_POST_VARS['song_id']) ) { $song_id = intval($HTTP_POST_VARS['song_id']); } else { mx_message_die(GENERAL_ERROR, 'No songs specified'); } // ------------------------------------ // Get this song info // ------------------------------------ $sql = "SELECT * FROM ". MUSIC_TABLE ." WHERE song_id = '$song_id'"; if( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Could not query song information', '', __LINE__, __FILE__, $sql); } $thissong = $db->sql_fetchrow($result); $cat_id = $thissong['song_cat_id']; $user_id = $thissong['song_user_id']; $song_filename = $thissong['song_filename']; if( empty($thissong) ) { mx_message_die(GENERAL_ERROR, $lang['Song_not_exist']); } // ------------------------------------ // Get the current Category Info // ------------------------------------ $sql = "SELECT * FROM ". MUSIC_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 // ------------------------------------ $music_user_access = music_user_access($cat_id, $thiscat, 0, 0, 0, 0, 0, 1); // DELETE if ($music_user_access['delete'] == 0) { if (!$userdata['session_logged_in']) { mx_redirect(append_sid($mx_root_path . "login.php?redirect=" . this_mo_loginurl("music_mode=music_delete&song_id=$song_id"), true)); } else { mx_message_die(GENERAL_ERROR, $lang['Not_Authorised']); } } else { if( (!$music_user_access['moderator']) or ($userdata['user_level'] != ADMIN) ) { if ($thissong['song_user_id'] != $userdata['user_id']) { mx_message_die(GENERAL_ERROR, $lang['Not_Authorised']); } } } /* +---------------------------------------------------------- | Main work here... +---------------------------------------------------------- */ if( !isset($HTTP_POST_VARS['confirm']) ) { // -------------------------------- // If user give up deleting... // -------------------------------- if( isset($HTTP_POST_VARS['cancel']) ) { mx_redirect(append_sid(this_mo_mxurl("music_mode=music_cat&cat_id=$cat_id"))); exit; } // // Start output of page // $page_title = $lang['Music']; if ( !$is_block ) { include($mx_root_path . 'includes/page_header.'.$phpEx); } $template->set_filenames(array( 'body' => 'confirm_body.tpl') ); $template->assign_vars(array( 'MESSAGE_TITLE' => $lang['Confirm'], 'MESSAGE_TEXT' => $lang['Music_delete_confirm'], 'L_NO' => $lang['No'], 'L_YES' => $lang['Yes'], 'S_CONFIRM_ACTION' => append_sid(this_mo_mxurl("music_mode=music_delete&song_id=$song_id")), ) ); // // Generate the page // $template->pparse('body'); if ( !$is_block ) { include($mx_root_path . 'includes/page_tail.'.$phpEx); } } else { // -------------------------------- // It's confirmed. First delete all comments // -------------------------------- $sql = "DELETE FROM ". MUSIC_COMMENT_TABLE ." WHERE comment_song_id = '$song_id'"; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, 'Could not delete related comments', '', __LINE__, __FILE__, $sql); } // -------------------------------- // Delete all ratings // -------------------------------- $sql = "DELETE FROM ". MUSIC_RATE_TABLE ." WHERE rate_song_id = '$song_id'"; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, 'Could not delete related ratings', '', __LINE__, __FILE__, $sql); } // -------------------------------- // Delete File // -------------------------------- @unlink(MUSIC_UPLOAD_PATH . $thissong['song_filename']); // -------------------------------- // Delete DB entry // -------------------------------- $sql = "DELETE FROM ". MUSIC_TABLE ." WHERE song_id = '$song_id'"; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, 'Could not delete DB entry', '', __LINE__, __FILE__, $sql); } // -------------------------------- // Complete... now send a message to user // -------------------------------- $message = $lang['Songs_deleted_successfully']; $template->assign_vars(array( 'META' => '<meta http-equiv="refresh" content="3;url=' . append_sid(this_mo_mxurl("music_mode=music_cat&cat_id=$cat_id")) . '">') ); $message .= "<br /><br />" . sprintf($lang['Click_return_category'], "<a href=\"" . append_sid(this_mo_mxurl("music_mode=music_cat&cat_id=$cat_id")) . "\">", "</a>"); $message .= "<br /><br />" . sprintf($lang['Click_return_music_index'], "<a href=\"" . append_sid(this_mo_mxurl()) . "\">", "</a>"); mx_message_die(GENERAL_MESSAGE, $message); } // +------------------------------------------------------+ // | Powered by Music Online 2.0 (c) 2003 Cf Manager | // +------------------------------------------------------+ ?> --- NEW FILE: music_comment_edit.php --- <?php /** * * @package mxBB Portal Module - mx_music * @version $Id: music_comment_edit.php,v 1.1 2007/06/06 20:32:38 orynider Exp $ * @copyright (c) 2003 [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 // } $music_root_path = $module_root_path . 'music_box/'; // // Get general music information // if ( !$is_block ) { include($music_root_path . 'music_common.'.$phpEx); } else { include_once($music_root_path . 'music_common.'.$phpEx); } // ------------------------------------ // Check feature enabled // ------------------------------------ if( $music_config['comment'] == 0 ) { mx_message_die(GENERAL_MESSAGE, $lang['Not_Authorised']); } // ------------------------------------ // Check the request // ------------------------------------ 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, 'No comment_id specified'); } // ------------------------------------ // Get the comment info // ------------------------------------ $sql = "SELECT * FROM ". MUSIC_COMMENT_TABLE ." WHERE comment_id = '$comment_id'"; if( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Could not query this comment information', '', __LINE__, __FILE__, $sql); } $thiscomment = $db->sql_fetchrow($result); if( empty($thiscomment) ) { mx_message_die(GENERAL_ERROR, 'This comment does not exist'); } // ------------------------------------ // Get $song_id from $comment_id // ------------------------------------ $sql = "SELECT comment_id, comment_song_id FROM ". MUSIC_COMMENT_TABLE ." WHERE comment_id = '$comment_id'"; if( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Could not query comment and song information', '', __LINE__, __FILE__, $sql); } $row = $db->sql_fetchrow($result); $song_id = $row['comment_song_id']; // ------------------------------------ // Get this song info // ------------------------------------ $sql = "SELECT s.*, u.user_id, u.username, COUNT(c.comment_id) as comments_count FROM ". MUSIC_TABLE ." AS s LEFT JOIN ". USERS_TABLE ." AS u ON s.song_user_id = u.user_id LEFT JOIN ". MUSIC_COMMENT_TABLE ." AS c ON s.song_id = c.comment_song_id WHERE song_id = '$song_id' GROUP BY s.song_id LIMIT 1"; if( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Could not query song information', '', __LINE__, __FILE__, $sql); } $thissong = $db->sql_fetchrow($result); $cat_id = $thissong['song_cat_id']; $user_id = $thissong['song_user_id']; $total_comments = $thissong['comments_count']; $comments_per_page = $board_config['posts_per_page']; $song_filename = $thissong['song_filename']; if( empty($thissong) ) { mx_message_die(GENERAL_ERROR, $lang['Song_not_exist']); } // ------------------------------------ // Get the current Category Info // ------------------------------------ $sql = "SELECT * FROM ". MUSIC_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 // ------------------------------------ $music_user_access = music_user_access($thissong['song_cat_id'], $thiscat, 0, 0, 0, 1, 1, 0); if( ($music_user_access['comment'] == 0) or ($music_user_access['edit'] == 0) ) { if (!$userdata['session_logged_in']) { mx_redirect(append_sid($mx_root_path . "login.php?redirect=" . this_mo_loginurl("music_mode=music_comment_edit&comment_id=$comment_id"), true)); } else { mx_message_die(GENERAL_ERROR, $lang['Not_Authorised']); } } else { if( (!$music_user_access['moderator']) or ($userdata['user_level'] != ADMIN) ) { if ($thiscomment['comment_user_id'] != $userdata['user_id']) { mx_message_die(GENERAL_ERROR, $lang['Not_Authorised']); } } } /* +---------------------------------------------------------- | Main work here... +---------------------------------------------------------- */ if( !isset($HTTP_POST_VARS['comment']) ) { /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Comments Screen ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ if( ($thissong['song_user_id'] == MUSIC_GUEST) or ($thissong['username'] == '') ) { $poster = ($thissong['song_username'] == '') ? $lang['Guest'] : $thissong['song_username']; } else { $poster = '<a href="'. append_sid($phpbb_root_path . "profile.$phpEx?mode=viewprofile&". POST_USERS_URL .'='. $thissong['user_id']) .'">'. $thissong['username'] .'</a>'; } // // Start output of page // $page_title = $lang['Music']; if ( !$is_block ) { include($mx_root_path . 'includes/page_header.'.$phpEx); } $template->set_filenames(array( 'body' => 'music_comment_body.tpl') ); $template->assign_block_vars('switch_comment_post', array()); $template->assign_vars(array( 'CAT_TITLE' => $thiscat['cat_title'], 'U_VIEW_CAT' => append_sid(this_mo_mxurl("music_mode=music_cat&cat_id=$cat_id")), 'U_SONG' => append_sid(this_mo_mxurl("music_mode=music_song&song_id=$song_id")), 'SONG_TITLE' => $thissong['song_title'], 'POSTER' => $poster, 'SONG_TIME' => create_date($board_config['default_dateformat'], $thissong['song_time'], $board_config['board_timezone']), 'SONG_VIEW' => $thissong['song_view_count'], 'SONG_COMMENTS' => $total_comments, 'S_MESSAGE' => $thiscomment['comment_text'], 'L_SONG_TITLE' => $lang['Song_Title'], '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' => $music_config['desc_length'], 'L_SUBMIT' => $lang['Submit'], 'S_MUSIC_ACTION' => append_sid(this_mo_mxurl("music_mode=music_comment_edit&comment_id=$comment_id")) ) ); // // Generate the page // $template->pparse('body'); if ( !$is_block ) { include($mx_root_path . 'includes/page_tail.'.$phpEx); } } else { /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Comment Submited ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ $comment_text = str_replace("\'", "''", htmlspecialchars(substr(trim($HTTP_POST_VARS['comment']), 0, $music_config['desc_length']))); if( empty($comment_text) ) { mx_message_die(GENERAL_ERROR, $lang['Comment_no_text']); } // -------------------------------- // Prepare variables // -------------------------------- $comment_edit_time = time(); $comment_edit_user_id = $userdata['user_id']; // -------------------------------- // Update the DB // -------------------------------- $sql = "UPDATE ". MUSIC_COMMENT_TABLE ." SET comment_text = '$comment_text', comment_edit_time = '$comment_edit_time', comment_edit_count = comment_edit_count + 1, comment_edit_user_id = '$comment_edit_user_id' WHERE comment_id = '$comment_id'"; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, 'Could not update comment data', '', __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_mo_mxurl("music_mode=music_comment&comment_id=$comment_id")) . '#'.$comment_id.'">') ); $message = $lang['Stored'] . "<br /><br />" . sprintf($lang['Click_view_message'], "<a href=\"" . append_sid(this_mo_mxurl("music_mode=music_comment&comment_id=$comment_id")) . "#$comment_id\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_music_index'], "<a href=\"" . append_sid(this_mo_mxurl()) . "\">", "</a>"); mx_message_die(GENERAL_MESSAGE, $message); } // +------------------------------------------------------+ // | Powered by Music Online 2.0 (c) 2003 Cf Manager | // +------------------------------------------------------+ ?> --- NEW FILE: music_cat.php --- <?php /** * * @package mxBB Portal Module - mx_music * @version $Id: music_cat.php,v 1.1 2007/06/06 20:32:33 orynider Exp $ * @copyright (c) 2003 [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 // } $music_root_path = $module_root_path . 'music_box/'; // // Get general music information // include_once($music_root_path . 'music_common.'.$phpEx); // ------------------------------------ // Check the request // ------------------------------------ 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'); } // // END check request // // ------------------------------------ // Get this cat info // ------------------------------------ $sql = "SELECT c.*, COUNT(s.song_id) AS count FROM ". MUSIC_CAT_TABLE ." AS c LEFT JOIN ". MUSIC_TABLE ." AS s ON c.cat_id = s.song_cat_id WHERE c.cat_id <> 0 GROUP BY c.cat_id ORDER BY cat_order"; if( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Could not query category information', '', __LINE__, __FILE__, $sql); } $thiscat = array(); // this category $catrows = array(); // all categories for jumpbox while( $row = $db->sql_fetchrow($result) ) { $music_user_access = music_user_access($row['cat_id'], $row, 1, 0, 0, 0, 0, 0); // VIEW if ($music_user_access['view'] == 1) { $catrows[] = $row; if( $row['cat_id'] == $cat_id ) { $thiscat = $row; $auth_data = music_user_access($cat_id, $row, 1, 1, 1, 1, 1, 1); // ALL $total_songs = $thiscat['count']; } } } if (empty($thiscat)) { mx_message_die(GENERAL_MESSAGE, $lang['Category_not_exist']); } // // END cat info // // ------------------------------------ // Check permissions // ------------------------------------ if( !$auth_data['view'] ) { if (!$userdata['session_logged_in']) { mx_redirect(append_sid($mx_root_path . "login.php?redirect=" . this_mo_loginurl("music_mode=music_cat&cat_id=$cat_id"), true)); } else { mx_message_die(GENERAL_ERROR, $lang['Not_Authorised']); } } if ( $auth_data['upload'] ) { $enable_soung_upload_switch = true; $template->assign_block_vars('enable_soung_upload', array()); } // // END check permissions // // ------------------------------------ // Build Auth List // ------------------------------------ $auth_key = array_keys($auth_data); $auth_list = ''; for ($i = 0; $i < (count($auth_data) - 1); $i++) // ignore MODERATOR in this loop { // // we should skip a loop if RATE and COMMENT is disabled // if( ( ($music_config['rate'] == 0) and ($auth_key[$i] == 'rate') ) or ( ($music_config['comment'] == 0) and ($auth_key[$i] == 'comment') ) ) { continue; } $auth_list .= ($auth_data[$auth_key[$i]] == 1) ? $lang['Music_'. $auth_key[$i] .'_can'] : $lang['Music_'. $auth_key[$i] .'_cannot']; $auth_list .= '<br />'; } // add Moderator Control Panel here if( ($userdata['user_level'] == ADMIN) or ($auth_data['moderator'] == 1) ) { $auth_list .= sprintf($lang['Music_moderate_can'], '<a href="'. append_sid(this_mo_mxurl("music_mode=music_modcp&cat_id=$cat_id")) .'">', '</a>'); } // // END Auth List // // ------------------------------------ // Build Moderators List // ------------------------------------ $grouprows = array(); $moderators_list = ''; if ($thiscat['cat_moderator_groups'] != '') { // Get the namelist of moderator usergroups $sql = "SELECT group_id, group_name, group_type, group_single_user FROM " . GROUPS_TABLE . " WHERE group_single_user <> 1 AND group_type <> ". GROUP_HIDDEN ." AND group_id IN (". $thiscat['cat_moderator_groups'] .") ORDER BY group_name ASC"; if ( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, 'Could not get group list', '', __LINE__, __FILE__, $sql); } while( $row = $db->sql_fetchrow($result) ) { $grouprows[] = $row; } if( count($grouprows) > 0 ) { 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; } } } if( empty($moderators_list) ) { $moderators_list = $lang['None']; } // // END Moderator List // // ------------------------------------ // Build the thumbnail page // ------------------------------------ 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; } if( isset($HTTP_GET_VARS['sort_method']) ) { switch ($HTTP_GET_VARS['sort_method']) { case 'song_time': $sort_method = 'song_time'; break; case 'song_title': $sort_method = 'song_title'; break; case 'song_singer': $sort_method = 'song_singer'; break; case 'username': $sort_method = 'username'; break; case 'song_view_count': $sort_method = 'song_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 = $music_config['sort_method']; } } else if( isset($HTTP_POST_VARS['sort_method']) ) { switch ($HTTP_POST_VARS['sort_method']) { case 'song_time': $sort_method = 'song_time'; break; case 'song_title': $sort_method = 'song_title'; break; case 'song_singer': $sort_method = 'song_singer'; break; case 'username': $sort_method = 'username'; break; case 'song_view_count': $sort_method = 'song_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 = $music_config['sort_method']; } } else { $sort_method = $music_config['sort_method']; } if( isset($HTTP_GET_VARS['sort_order']) ) { switch ($HTTP_GET_VARS['sort_order']) { case 'ASC': $sort_order = 'ASC'; break; case 'DESC': $sort_order = 'DESC'; break; default: $sort_order = $music_config['sort_order']; } } else if( isset($HTTP_POST_VARS['sort_order']) ) { switch ($HTTP_POST_VARS['sort_order']) { case 'ASC': $sort_order = 'ASC'; break; case 'DESC': $sort_order = 'DESC'; break; default: $sort_order = $music_config['sort_order']; } } else { $sort_order = $music_config['sort_order']; } $songs_per_page = $music_config['rows_per_page'] * $music_config['cols_per_page']; if ($total_songs > 0) { $limit_sql = ($start == 0) ? $songs_per_page : $start .','. $songs_per_page; $song_approval_sql = 'AND s.song_approval = 1'; if ($thiscat['cat_approval'] != MUSIC_USER) { if( ($userdata['user_level'] == ADMIN) or (($auth_data['moderator'] == 1) and ($thiscat['cat_approval'] == MUSIC_MOD)) ) { $song_approval_sql = ''; } } $sql = "SELECT s.song_id, s.song_title, s.song_desc, s.song_singer, s.song_user_id, s.song_user_ip, s.song_username, s.song_time, s.song_cat_id, s.song_view_count, s.song_lock, s.song_approval, u.user_id, u.username, r.rate_song_id, AVG(r.rate_point) AS rating, COUNT(DISTINCT c.comment_id) AS comments, MAX(c.comment_id) as new_comment FROM ". MUSIC_TABLE ." AS s LEFT JOIN ". USERS_TABLE ." AS u ON s.song_user_id = u.user_id LEFT JOIN ". MUSIC_RATE_TABLE ." AS r ON s.song_id = r.rate_song_id LEFT JOIN ". MUSIC_COMMENT_TABLE ." AS c ON s.song_id = c.comment_song_id WHERE s.song_cat_id = '$cat_id' $song_approval_sql GROUP BY s.song_id ORDER BY $sort_method $sort_order LIMIT $limit_sql"; if( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Could not query songs information', '', __LINE__, __FILE__, $sql); } // // Update the music view counter // $sql = "UPDATE " . MUSIC_CAT_TABLE . " SET cat_views = cat_views + 1 WHERE cat_id = $cat_id"; if ( !$db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, "Could not update music views.", '', __LINE__, __FILE__, $sql); } $songrow = array(); while( $row = $db->sql_fetchrow($result) ) { $songrow[] = $row; } for ($i = 0; $i < count($songrow); $i += $music_config['cols_per_page']) { $template->assign_block_vars('songrow', array()); for ($j = $i; $j < ($i + $music_config['cols_per_page']); $j++) { if( $j >= count($songrow) ) { break; } if(!$songrow[$j]['rating']) { $songrow[$j]['rating'] = $lang['Not_rated']; } else { $songrow[$j]['rating'] = round($songrow[$j]['rating'], 2); } $approval_link = ''; if ($thiscat['cat_approval'] != MUSIC_USER) { if( ($userdata['user_level'] == ADMIN) or (($auth_data['moderator'] == 1) and ($thiscat['cat_approval'] == MUSIC_MOD)) ) { $approval_mode = ($songrow[$j]['song_approval'] == 0) ? 'approval' : 'unapproval'; $approval_link .= '<a href="'. append_sid(this_mo_mxurl("music_mode=music_modcp&mode=$approval_mode&song_id=". $songrow[$j]['song_id'])) .'">'; $approval_link .= ($songrow[$j]['song_approval'] == 0) ? '<b>'. $lang['Approve'] .'</b>' : $lang['Unapprove']; $approval_link .= '</a>'; } } $template->assign_block_vars('songrow.songcol', array( 'U_SONG' => append_sid(this_mo_mxurl("music_mode=music_page&song_id=". $songrow[$j]['song_id'])), 'DESC' => $songrow[$j]['song_desc'], 'APPROVAL' => $approval_link, ) ); if( ($songrow[$j]['user_id'] == MUSIC_GUEST) or ($songrow[$j]['username'] == '') ) { $song_poster = ($songrow[$j]['song_username'] == '') ? $lang['Guest'] : $songrow[$j]['song_username']; } else { $song_poster = '<a href="'. append_sid($phpbb_root_path . "profile.$phpEx?mode=viewprofile&". POST_USERS_URL .'='. $songrow[$j]['user_id']) .'">'. $songrow[$j]['username'] .'</a>'; } $template->assign_block_vars('songrow.song_detail', array( 'TITLE' => '<a href="'. append_sid(this_mo_mxurl("music_mode=music_page&song_id=". $songrow[$j]['song_id'])) . '">' . $songrow[$j]['song_title'] . '</a>', 'SINGER' => $songrow[$j]['song_singer'], 'POSTER' => $song_poster, 'TIME' => create_date($board_config['default_dateformat'], $songrow[$j]['song_time'], $board_config['board_timezone']), 'VIEW' => $songrow[$j]['song_view_count'], 'RATING' => ($music_config['rate'] == 1) ? ( '<a href="'. append_sid(this_mo_mxurl("music_mode=music_rate&song_id=". $songrow[$j]['song_id']) . '">' . $songrow[$j]['rating'] . '</a>')) : '', 'COMMENTS' => ($music_config['comment'] == 1) ? ( '<a href="'. append_sid(this_mo_mxurl("music_mode=music_comment&song_id=". $songrow[$j]['song_id'])) . '">' . $songrow[$j]['comments'] . '</a>' ) : '', 'EDIT' => ( ( $auth_data['edit'] and ($songrow[$j]['song_user_id'] == $userdata['user_id']) ) or ($auth_data['moderator'] and ($thiscat['cat_edit_level'] != MUSIC_ADMIN) ) or ($userdata['user_level'] == ADMIN) ) ? '<a href="'. append_sid(this_mo_mxurl("music_mode=music_edit&song_id=". $songrow[$j]['song_id'])) . '">' . $lang['Edit_song'] . '</a>' : '', 'DELETE' => ( ( $auth_data['delete'] and ($songrow[$j]['song_user_id'] == $userdata['user_id']) ) or ($auth_data['moderator'] and ($thiscat['cat_delete_level'] != MUSIC_ADMIN) ) or ($userdata['user_level'] == ADMIN) ) ? '<a href="'. append_sid(this_mo_mxurl("music_mode=music_delete&song_id=". $songrow[$j]['song_id'])) . '">' . $lang['Delete_song'] . '</a>' : '', 'MOVE' => ($auth_data['moderator']) ? '<a href="'. append_sid(this_mo_mxurl("music_mode=music_modcp&mode=move&song_id=". $songrow[$j]['song_id'])) .'">'. $lang['Move'] .'</a>' : '', 'LOCK' => ($auth_data['moderator']) ? '<a href="'. append_sid(this_mo_mxurl("music_mode=music_modcp&mode=". (($songrow[$j]['song_lock'] == 0) ? 'lock' : 'unlock') ."&song_id=". $songrow[$j]['song_id'])) .'">'. (($songrow[$j]['song_lock'] == 0) ? $lang['Lock'] : $lang['Unlock']) .'</a>' : '', 'IP' => ($userdata['user_level'] == ADMIN) ? $lang['IP_Address'] . ': <a href="http://www.nic.com/cgi-bin/whois.cgi?query=' . decode_ip($songrow[$j]['song_user_ip']) . '" target="_blank">' . decode_ip($songrow[$j]['song_user_ip']) .'</a><br />' : '' ) ); } } $template->assign_vars(array( 'PAGINATION' => generate_pagination(append_sid(this_mo_mxurl("music_mode=music_cat&cat_id=$cat_id&sort_method=$sort_method&sort_order=$sort_order")), $total_songs, $songs_per_page, $start), 'PAGE_NUMBER' => sprintf($lang['Page_of'], ( floor( $start / $songs_per_page ) + 1 ), ceil( $total_songs / $songs_per_page )) ) ); } else { $template->assign_block_vars('no_songs', array()); } // // END thumbnails table // // ------------------------------------ // Build Jumpbox - based on $catrows which was created at the top of this file // ------------------------------------ $music_jumpbox = '<form name="jumpbox" action="'. append_sid(this_mo_mxurl("music_mode=music_cat")) .'" method="get">'; $music_jumpbox .= $lang['Jump_to'] . ': <select name="cat_id" onChange="forms[\'jumpbox\'].submit()">'; for ($i = 0; $i < count($catrows); $i++) { $music_jumpbox .= '<option value="'. $catrows[$i]['cat_id'] .'"'; $music_jumpbox .= ($catrows[$i]['cat_id'] == $cat_id) ? 'selected="selected"' : ''; $music_jumpbox .= '>' . $catrows[$i]['cat_title'] .'</option>'; } $music_jumpbox .= '</select>'; $music_jumpbox .= ' <input type="submit" class="liteoption" value="'. $lang['Go'] .'" />'; $music_jumpbox .= '<input type="hidden" name="sid" value="'. $userdata['session_id'] .'" />'; $music_jumpbox .= '</form>'; // // END build jumpbox // // ------------------------------------ // additional sorting options // ------------------------------------ $sort_rating_option = ''; $sort_comments_option = ''; if( $music_config['rate'] == 1 ) { $sort_rating_option = '<option value="rating" '; $sort_rating_option .= ($sort_method == 'rating') ? 'selected="selected"' : ''; $sort_rating_option .= '>' . $lang['Rating'] .'</option>'; } if( $music_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 of page // $page_title = $lang['Music']; if ( !$is_block ) { include($mx_root_path . 'includes/page_header.'.$phpEx); } $template->set_filenames(array( 'body' => 'music_cat_body.tpl') ); $template->assign_vars(array( 'U_VIEW_CAT' => append_sid(this_mo_mxurl("music_mode=music_cat&cat_id=$cat_id")), 'CAT_TITLE' => $thiscat['cat_title'], 'L_MODERATORS' => $lang['Moderators'], 'MODERATORS' => $moderators_list, 'U_UPLOAD_SONG' => append_sid(this_mo_mxurl("music_mode=music_upload&cat_id=$cat_id")), 'UPLOAD_SONG_IMG' => $mx_images['upload_song'], 'L_UPLOAD_SONG' => $lang['Upload_Song'], 'L_CATEGORY' => $lang['Category'], 'L_NO_SONGS' => $lang['No_Songs'], 'S_COLS' => $music_config['cols_per_page'], 'S_COL_WIDTH' => (100/$music_config['cols_per_page']) . '%', 'L_VIEW' => $lang['View'], 'L_POSTER' => $lang['Poster'], 'L_POSTED' => $lang['Posted'], 'L_RATING' => $lang['Rating'], 'L_COMMENTS' => $lang['Comments'], 'MUSIC_JUMPBOX' => $music_jumpbox, 'S_MUSIC_ACTION' => append_sid(this_mo_mxurl("music_mode=music_cat&cat_id=$cat_id")), 'L_SELECT_SORT_METHOD' => $lang['Select_sort_method'], 'L_ORDER' => $lang['Order'], 'L_SORT' => $lang['Sort'], 'L_TIME' => $lang['Time'], 'L_SONG_TITLE' => $lang['Song_Title'], 'L_SINGER' => $lang['Singer'], 'L_USERNAME' => $lang['Sort_Username'], 'SORT_TIME' => ($sort_method == 'song_time') ? 'selected="selected"' : '', 'SORT_SONG_TITLE' => ($sort_method == 'song_title') ? 'selected="selected"' : '', 'SORT_SINGER' => ($sort_method == 'song_singer') ? 'selected="selected"' : '', 'SORT_USERNAME' => ($sort_method == 'song_user_id') ? 'selected="selected"' : '', 'SORT_VIEW' => ($sort_method == 'song_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_ASC' => $lang['Sort_Ascending'], 'L_DESC' => $lang['Sort_Descending'], 'SORT_ASC' => ($sort_order == 'ASC') ? 'selected="selected"' : '', 'SORT_DESC' => ($sort_order == 'DESC') ? 'selected="selected"' : '', 'NAV_SEP' => $lang['Nav_Separator'], 'NAV_DOT' => '•', 'MUSIC_VERSION' => '2' . $music_config['music_version'], 'L_INDEX' => '<<', 'U_INDEX' => append_sid($mx_root_path . "index.".$phpEx), 'L_MUSIC_INDEX' => $lang['Music'], 'L_MUSIC' => $lang['Music'], 'U_MUSIC' => append_sid(this_mo_mxurl()), 'U_MX_MUSIC' => append_sid(this_mo_portalurl()), 'S_AUTH_LIST' => $auth_list) ); // // Generate the page // $template->pparse('body'); if ( !$is_block ) { include($mx_root_path . 'includes/page_tail.'.$phpEx); } // +------------------------------------------------------+ // | Powered by Music Online 2.0 (c) 2003 Cf Manager | // +------------------------------------------------------+ ?> --- NEW FILE: music_modcp.php --- <?php /** * * @package mxBB Portal Module - mx_music * @version $Id: music_modcp.php,v 1.1 2007/06/06 20:32:46 orynider Exp $ * @copyright (c) 2003 [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... // [...1048 lines suppressed...] } $message = $lang['Songs_deleted_successfully'] .'<br /><br />'. sprintf($lang['Click_return_category'], "<a href=\"" . append_sid(this_mo_mxurl("music_mode=music_cat&cat_id=$cat_id")) . "\">", "</a>") .'<br /><br />'. sprintf($lang['Click_return_modcp'], "<a href=\"" . append_sid(this_mo_mxurl("music_mode=music_modcp&cat_id=$cat_id")) . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_music_index'], "<a href=\"" . append_sid(this_mo_mxurl()) . "\">", "</a>"); mx_message_die(GENERAL_MESSAGE, $message); } } else { mx_message_die(GENERAL_ERROR, 'Invalid_mode'); } } // +------------------------------------------------------+ // | Powered by Music Online 2.0 (c) 2003 Cf Manager | // +------------------------------------------------------+ ?> --- NEW FILE: music_comment_delete.php --- <?php /** * * @package mxBB Portal Module - mx_music * @version $Id: music_comment_delete.php,v 1.1 2007/06/06 20:32:36 orynider Exp $ * @copyright (c) 2003 [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 // } $music_root_path = $module_root_path . 'music_box/'; // // Get general music information // if ( !$is_block ) { include($music_root_path . 'music_common.'.$phpEx); } else { include_once($music_root_path . 'music_common.'.$phpEx); } // ------------------------------------ // Check feature enabled // ------------------------------------ if( $music_config['comment'] == 0 ) { mx_message_die(GENERAL_MESSAGE, $lang['Not_Authorised']); } // ------------------------------------ // Check the request // ------------------------------------ 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, 'No comment_id specified'); } // ------------------------------------ // Get the comment info // ------------------------------------ $sql = "SELECT * FROM ". MUSIC_COMMENT_TABLE ." WHERE comment_id = '$comment_id'"; if( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Could not query this comment information', '', __LINE__, __FILE__, $sql); } $thiscomment = $db->sql_fetchrow($result); if( empty($thiscomment) ) { mx_message_die(GENERAL_ERROR, 'This comment does not exist'); } // ------------------------------------ // Get $song_id from $comment_id // ------------------------------------ $sql = "SELECT comment_id, comment_song_id FROM ". MUSIC_COMMENT_TABLE ." WHERE comment_id = '$comment_id'"; if( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Could not query comment and song information', '', __LINE__, __FILE__, $sql); } $row = $db->sql_fetchrow($result); if( empty($row) ) { mx_message_die(GENERAL_ERROR, 'This comment does not exist'); } $song_id = $row['comment_song_id']; // ------------------------------------ // Get this song info // ------------------------------------ $sql = "SELECT s.*, u.user_id, u.username, COUNT(c.comment_id) as comments_count FROM ". MUSIC_TABLE ." AS s LEFT JOIN ". USERS_TABLE ." AS u ON s.song_user_id = u.user_id LEFT JOIN ". MUSIC_COMMENT_TABLE ." AS c ON s.song_id = c.comment_song_id WHERE song_id = '$song_id' GROUP BY s.song_id LIMIT 1"; if( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Could not query song information', '', __LINE__, __FILE__, $sql); } $thissong = $db->sql_fetchrow($result); $cat_id = $thissong['song_cat_id']; $user_id = $thissong['song_user_id']; $total_comments = $thissong['comments_count']; $comments_per_page = $board_config['posts_per_page']; $song_filename = $thissong['song_filename']; if( empty($thissong) ) { mx_message_die(GENERAL_ERROR, $lang['Song_not_exist']); } // ------------------------------------ // Get the current Category Info // ------------------------------------ $sql = "SELECT * FROM ". MUSIC_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 // ------------------------------------ $music_user_access = music_user_access($thissong['song_cat_id'], $thiscat, 0, 0, 0, 1, 0, 1); if( ($music_user_access['comment'] == 0) or ($music_user_access['delete'] == 0) ) { if (!$userdata['session_logged_in']) { mx_redirect(append_sid($mx_root_path . "login.php?redirect=" . this_mo_loginurl("music_mode=music_comment_delete&comment_id=$comment_id"), true)); } else { mx_message_die(GENERAL_ERROR, $lang['Not_Authorised']); } } else { if( (!$music_user_access['moderator']) or ($userdata['user_level'] != ADMIN) ) { if ($thiscomment['comment_user_id'] != $userdata['user_id']) { mx_message_die(GENERAL_ERROR, $lang['Not_Authorised']); } } } /* +---------------------------------------------------------- | Main work here... +---------------------------------------------------------- */ if( !isset($HTTP_POST_VARS['confirm']) ) { /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Confirm Screen ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ // -------------------------------- // If user give up deleting... // -------------------------------- if( isset($HTTP_POST_VARS['cancel']) ) { mx_redirect(append_sid(this_mo_mxurl("music_mode=music_comment&comment_id=$comment_id"))); exit; } // // Start output of page // $page_title = $lang['Music']; if ( !$is_block ) { include($mx_root_path . 'includes/page_header.'.$phpEx); } $template->set_filenames(array( 'body' => 'confirm_body.tpl') ); $template->assign_vars(array( 'MESSAGE_TITLE' => $lang['Confirm'], 'MESSAGE_TEXT' => $lang['Comment_delete_confirm'], 'L_NO' => $lang['No'], 'L_YES' => $lang['Yes'], 'S_CONFIRM_ACTION' => append_sid(this_mo_mxurl("music_mode=music_comment_delete&comment_id=$comment_id")), ) ); // // Generate the page // $template->pparse('body'); if ( !$is_block ) { include($mx_root_path . 'includes/page_tail.'.$phpEx); } } else { /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Do the deleting ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ $sql = "DELETE FROM ". MUSIC_COMMENT_TABLE ." WHERE comment_id = '$comment_id'"; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, 'Could not delete this comment', '', __LINE__, __FILE__, $sql); } // -------------------------------- // Complete... now send a message to user // -------------------------------- $message = $lang['Deleted']; $template->assign_vars(array( 'META' => '<meta http-equiv="refresh" content="3;url=' . append_sid(this_mo_mxurl("music_mode=music_cat&cat_id=$cat_id")) . '">') ); $message .= "<br /><br />" . sprintf($lang['Click_return_category'], "<a href=\"" . append_sid(this_mo_mxurl("music_mode=music_cat&cat_id=$cat_id")) . "\">", "</a>"); $message .= "<br /><br />" . sprintf($lang['Click_return_music_index'], "<a href=\"" . append_sid(this_mo_mxurl()) . "\">", "</a>"); mx_message_die(GENERAL_MESSAGE, $message); } // +------------------------------------------------------+ // | Powered by Music Online 2.0 (c) 2003 Cf Manager | // +------------------------------------------------------+ ?> --- NEW FILE: music_edit.php --- <?php /** * * @package mxBB Portal Module - mx_music * @version $Id: music_edit.php,v 1.1 2007/06/06 20:32: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 * */ // MX if ( !defined('IN_PORTAL') ) { die("Hacking attempt"); } // // Let's i... [truncated message content] |