|
From: Florin C B. <ory...@us...> - 2013-04-08 13:07:18
|
Update of /cvsroot/mxbb/mx_music/music_box In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv23268 Modified Files: music_common.php Log Message: Index: music_common.php =================================================================== RCS file: /cvsroot/mxbb/mx_music/music_box/music_common.php,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** music_common.php 26 Sep 2008 12:29:07 -0000 1.11 --- music_common.php 8 Apr 2013 13:07:15 -0000 1.12 *************** *** 184,189 **** } ! include_once($music_root_path . 'includes/' . 'music_functions.' . $phpEx); ! include_once($music_root_path . 'includes/' . 'music_integration.' . $phpEx); if (defined( 'IN_ADMIN' )) --- 184,189 ---- } ! include_once($music_root_path . 'includes/music_functions.' . $phpEx); ! include_once($music_root_path . 'includes/music_integration.' . $phpEx); if (defined( 'IN_ADMIN' )) *************** *** 196,210 **** // 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) ) { --- 196,206 ---- // Set Music Version // /* ! $module_name = 'Music Center'; ! $sql = "SELECT * FROM " . MODULE_TABLE . " WHERE module_path = '$module_root_path'"; 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) ) { *************** *** 214,224 **** } */ ! ! 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://mxbb.net" target="_blank">OryNider</a>, mxBB <i> - ' . $music_module_name . '</i> ' . $music_module_version . ' © 2007 is modified by <a href="http://www.mx-publisher.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>'; } --- 210,225 ---- } */ + // + // 0: module, 1: module_id, 2: module_name, 3: module_path, + // 4: module_desc, 5: module_include_admin + //mx_get_info($table, $idfield = '', $id = 0, $idfield2 = '', $id2 = 0) ... ( $idfield2 != '' && $id2 != '' ) ? " AND $idfield2 = '$id2'" : ''; + // + $module = mx_get_info(MODULE_TABLE, 'module_path', $module_root_path); ! if(!empty($module['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://mxpcms.sourceforge.net" target="_blank">OryNider</a>, MX-Publisher <i> - ' . $module['module_name'] . '</i> ' . $music_module_version . ' © 2007-2013 is maintained by <a href="http://www.mx-publisher.com/">MXP-Project-Team</a><br />'; ! $music_module_copyright .= '[' . $module['module_copy'] . '- <i>Music Online</i> v2' . $music_config['music_version'] . ']'; $music_module_copyright .= '</div>'; } *************** *** 226,235 **** { $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://mxbb.net" target="_blank">OryNider</a>, mxBB <i> - Music Center</i> v2.1.x © 2007 is modified by <a href="http://www.mx-publisher.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'], --- 227,235 ---- { $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://mxbb.net" target="_blank">OryNider</a>, mxBB <i> - Music Center</i> v2.1.x © 2007 is modified by <a href="http://www.mx-publisher.com/">MX-Development-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'], |