|
From: OryNider <ory...@us...> - 2007-06-12 11:19:57
|
Update of /cvsroot/mxbb/mx_glance In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv23214 Modified Files: db_install.php db_upgrade.php mx_glance.pak mx_glance.php mx_install_readme.htm Log Message: This upgrade will permit the selections of multiple news forums in blockCP. Thanks to the phpBB Romanian Comunity for help! Index: mx_install_readme.htm =================================================================== RCS file: /cvsroot/mxbb/mx_glance/mx_install_readme.htm,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** mx_install_readme.htm 6 Jun 2007 21:47:56 -0000 1.1 --- mx_install_readme.htm 12 Jun 2007 11:19:14 -0000 1.2 *************** *** 221,225 **** <td colspan="2"><p><b><font face="Tahoma">MX Module - mx_glance<br> ! v. </font></b><font face="Tahoma"><b>2.3.3</b></font></p> <p><font face="Tahoma"> <span style="line-height: normal; font-weight:bold">Module</span> --- 221,225 ---- <td colspan="2"><p><b><font face="Tahoma">MX Module - mx_glance<br> ! v. </font></b><font face="Tahoma"><b>2.3.4</b></font></p> <p><font face="Tahoma"> <span style="line-height: normal; font-weight:bold">Module</span> Index: db_upgrade.php =================================================================== RCS file: /cvsroot/mxbb/mx_glance/db_upgrade.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** db_upgrade.php 6 Jun 2007 21:47:49 -0000 1.1 --- db_upgrade.php 12 Jun 2007 11:19:13 -0000 1.2 *************** *** 31,35 **** } ! $mx_module_version = '2.3.3'; $mx_module_copy = 'mxBB <i> - At A Glace</i> module by blulegend, Jack Kan & <a href="http://www.mxbb.net" target="_blank">Mx Team</a>'; --- 31,35 ---- } ! $mx_module_version = '2.3.4'; $mx_module_copy = 'mxBB <i> - At A Glace</i> module by blulegend, Jack Kan & <a href="http://www.mxbb.net" target="_blank">Mx Team</a>'; Index: mx_glance.php =================================================================== RCS file: /cvsroot/mxbb/mx_glance/mx_glance.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** mx_glance.php 6 Jun 2007 21:47:54 -0000 1.1 --- mx_glance.php 12 Jun 2007 11:19:14 -0000 1.2 *************** *** 116,120 **** } - // // GET USER LAST VISIT --- 116,119 ---- *************** *** 210,214 **** { $unauthed_forums = array(); ! $sql = "SELECT forum_id, auth_view FROM " . FORUMS_TABLE . " WHERE forum_id <> " . $glance_news_forum_id; if( !($result = $db->sql_query($sql)) ) { --- 209,213 ---- { $unauthed_forums = array(); ! $sql = "SELECT forum_id, auth_view FROM " . FORUMS_TABLE . " WHERE forum_id NOT IN (" . $glance_news_forum_id . ")"; if( !($result = $db->sql_query($sql)) ) { *************** *** 230,241 **** { $unauthed = false; ! if ( !$auth_mod['auth_view'] && $auth_mod['forum_id'] != $glance_news_forum_id ) ! { ! $unauthed = true; ! } ! if ( !$glance_auth_read && !$auth_mod['auth_read'] && $auth_mod['forum_id'] != $glance_news_forum_id ) ! { ! $unauthed = true; ! } if ( $unauthed ) { --- 229,240 ---- { $unauthed = false; ! if ( !$auth_mod['auth_view'] && ( strstr($glance_news_forum_id,$auth_mod['forum_id']) === FALSE ) ) ! { ! $unauthed = true; ! } ! if ( !$glance_auth_read && !$auth_mod['auth_read'] && ( strstr($glance_news_forum_id,$auth_mod['forum_id']) === FALSE ) ) ! { ! $unauthed = true; ! } if ( $unauthed ) { *************** *** 393,397 **** if (($glance_news_offset > 0) or ($glance_news_offset+$glance_num_news < $overall_news_topics)) { ! $new_url = '<a href="' . $glance_forum_dir . 'index.' . $phpEx . '?glance_news_offset='; if ($glance_news_offset > 0) { --- 392,396 ---- if (($glance_news_offset > 0) or ($glance_news_offset+$glance_num_news < $overall_news_topics)) { ! $new_url = '<a href="' . $mx_root_path . 'index.' . $phpEx . '?page=' . $page_id . '&glance_news_offset='; if ($glance_news_offset > 0) { *************** *** 608,612 **** 'L_NO_NEW_POSTS_LOCKED' => $lang['No_new_posts_locked'], 'L_NEW_POSTS_LOCKED' => $lang['New_posts_locked'], ! 'BLOCK_SIZE' => ( !empty($block_size) ? $block_size : $glance_table_width ), 'L_BACK_TO_TOP' => ( !empty($lang['Back_to_top']) ? $lang['Back_to_top'] : 'Back to Top' ) )); --- 607,611 ---- 'L_NO_NEW_POSTS_LOCKED' => $lang['No_new_posts_locked'], 'L_NEW_POSTS_LOCKED' => $lang['New_posts_locked'], ! 'BLOCK_SIZE' => ( !empty($block_size) ? $glance_table_width : '100%' ), 'L_BACK_TO_TOP' => ( !empty($lang['Back_to_top']) ? $lang['Back_to_top'] : 'Back to Top' ) )); Index: db_install.php =================================================================== RCS file: /cvsroot/mxbb/mx_glance/db_install.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** db_install.php 6 Jun 2007 21:47:48 -0000 1.1 --- db_install.php 12 Jun 2007 11:19:12 -0000 1.2 *************** *** 31,35 **** } ! $mx_module_version = '2.3.3'; $mx_module_copy = 'mxBB <i> - At A Glance</i> module by blulegend, Jack Kan & <a href="http://www.mxbb.net" target="_blank">Mx Team</a>'; --- 31,35 ---- } ! $mx_module_version = '2.3.4'; $mx_module_copy = 'mxBB <i> - At A Glance</i> module by blulegend, Jack Kan & <a href="http://www.mxbb.net" target="_blank">Mx Team</a>'; Index: mx_glance.pak =================================================================== RCS file: /cvsroot/mxbb/mx_glance/mx_glance.pak,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** mx_glance.pak 6 Jun 2007 21:47:52 -0000 1.1 --- mx_glance.pak 12 Jun 2007 11:19:14 -0000 1.2 *************** *** 2,6 **** New_function=+:---------------------------=+:0=+:0=+:0=+:0=+:0 function=+:62=+:73=+:Last News and Topics=+:Last News and Topics=+:mx_glance.php=+: ! parameter=+:73=+:137=+:Glance_news_forum_id=+:Number=+:1=+:=+:0 parameter=+:73=+:138=+:Glance_num_news=+:Number=+:1=+:=+:0 parameter=+:73=+:139=+:Glance_num_recent=+:Number=+:5=+:=+:0 --- 2,6 ---- New_function=+:---------------------------=+:0=+:0=+:0=+:0=+:0 function=+:62=+:73=+:Last News and Topics=+:Last News and Topics=+:mx_glance.php=+: ! parameter=+:73=+:137=+:Glance_news_forum_id=+:Function=+:=+:get_list_multiple("{parameter_id}[]", FORUMS_TABLE, 'forum_id', 'forum_name', "{parameter_value}", TRUE)=+:0=+:0 parameter=+:73=+:138=+:Glance_num_news=+:Number=+:1=+:=+:0 parameter=+:73=+:139=+:Glance_num_recent=+:Number=+:5=+:=+:0 |