|
From: Jon O. <jon...@us...> - 2007-09-09 19:24:52
|
Update of /cvsroot/mxbb/mx_kb In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv29002 Modified Files: kb_last_article.php Log Message: test Index: kb_last_article.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/kb_last_article.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** kb_last_article.php 30 May 2007 21:32:24 -0000 1.4 --- kb_last_article.php 9 Sep 2007 19:24:48 -0000 1.5 *************** *** 65,69 **** // Authorization SQL // ! $auth_data_sql_msg = get_auth_forum('kb'); if ( empty($forum_lst_msg) ) --- 65,69 ---- // Authorization SQL // ! $auth_data_sql_msg = $phpbb_auth->get_auth_forum('kb'); if ( empty($forum_lst_msg) ) *************** *** 180,184 **** 'U_ALIGN' => $align, 'BLOCK_SIZE' => ( !empty($block_size) ? $block_size : '100%' ), ! 'U_URL' => append_sid(PORTAL_URL . 'index.php' . '?block_id=' . $block_id), 'U_URL_NEXT' => $url_next, 'U_URL_PREV' => $url_prev, --- 180,184 ---- 'U_ALIGN' => $align, 'BLOCK_SIZE' => ( !empty($block_size) ? $block_size : '100%' ), ! 'U_URL' => mx_append_sid(PORTAL_URL . 'index.php' . '?block_id=' . $block_id), 'U_URL_NEXT' => $url_next, 'U_URL_PREV' => $url_prev, *************** *** 205,209 **** $message = $postrow[$row_count]['article_title']; ! $url = append_sid($mx_root_path . $module_root_path . $kb_block_target . $phpEx . "?mode=article&k=" . $postrow[$row_count]['article_id']); $folder = $images['kb_last_article_folder']; --- 205,209 ---- $message = $postrow[$row_count]['article_title']; ! $url = mx_append_sid($mx_root_path . $module_root_path . $kb_block_target . $phpEx . "?mode=article&k=" . $postrow[$row_count]['article_id']); $folder = $images['kb_last_article_folder']; *************** *** 212,216 **** if ( $display_author == "TRUE" ) { ! $topic_author = ( $postrow[$row_count]['user_id'] != ANONYMOUS ) ? '<a href="' . append_sid(PHPBB_URL . "profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $postrow[$row_count]['user_id']) . '" class="gensmall">' : ''; $topic_author .= ( $postrow[$row_count]['user_id'] != ANONYMOUS ) ? $postrow[$row_count]['username'] : ( ( $postrow[$row_count]['post_username'] != '' ) ? $postrow[$row_count]['post_username'] : $lang['Guest'] ); $topic_author .= ( $postrow[$row_count]['user_id'] != ANONYMOUS ) ? '</a>' : ''; --- 212,216 ---- if ( $display_author == "TRUE" ) { ! $topic_author = ( $postrow[$row_count]['user_id'] != ANONYMOUS ) ? '<a href="' . mx_append_sid(PHPBB_URL . "profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $postrow[$row_count]['user_id']) . '" class="gensmall">' : ''; $topic_author .= ( $postrow[$row_count]['user_id'] != ANONYMOUS ) ? $postrow[$row_count]['username'] : ( ( $postrow[$row_count]['post_username'] != '' ) ? $postrow[$row_count]['post_username'] : $lang['Guest'] ); $topic_author .= ( $postrow[$row_count]['user_id'] != ANONYMOUS ) ? '</a>' : ''; *************** *** 223,227 **** if ( $display_last_author == "TRUE" ) { ! $last_post_author = ( $postrow[$row_count]['id2'] == ANONYMOUS ) ? ( ( $postrow[$row_count]['post_username'] != '' ) ? $postrow[$row_count]['post_username'] . ' ' : $lang['Guest'] . ' ' ) : '<a href="' . append_sid(PHPBB_URL . "profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $postrow[$row_count]['id2']) . '" class="gensmall">' . $postrow[$row_count]['user2'] . '</a>'; } else --- 223,227 ---- if ( $display_last_author == "TRUE" ) { ! $last_post_author = ( $postrow[$row_count]['id2'] == ANONYMOUS ) ? ( ( $postrow[$row_count]['post_username'] != '' ) ? $postrow[$row_count]['post_username'] . ' ' : $lang['Guest'] . ' ' ) : '<a href="' . mx_append_sid(PHPBB_URL . "profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $postrow[$row_count]['id2']) . '" class="gensmall">' . $postrow[$row_count]['user2'] . '</a>'; } else *************** *** 243,247 **** if ( $display_date == "TRUE" ) { ! $message_date = create_date($board_config['default_dateformat'], $postrow[$row_count]['article_date'], $board_config['board_timezone']); } else --- 243,247 ---- if ( $display_date == "TRUE" ) { ! $message_date = phpBB2::create_date($board_config['default_dateformat'], $postrow[$row_count]['article_date'], $board_config['board_timezone']); } else *************** *** 265,269 **** } ! $forum_name = $kb_article_mode != 'KB_Reader' ? '<a href="' . append_sid($mx_root_path . $module_root_path . $kb_block_target . $phpEx . "?mode=cat&cat=" . $postrow[$row_count]['article_category_id']) . '" target="'.$target.'" class="gensmall">'.$forum_name.'</a>' : $forum_name; } --- 265,269 ---- } ! $forum_name = $kb_article_mode != 'KB_Reader' ? '<a href="' . mx_append_sid($mx_root_path . $module_root_path . $kb_block_target . $phpEx . "?mode=cat&cat=" . $postrow[$row_count]['article_category_id']) . '" target="'.$target.'" class="gensmall">'.$forum_name.'</a>' : $forum_name; } *************** *** 275,279 **** if ( $display_icon_view == "TRUE" ) { ! $last_post_url = '<a href="' . append_sid($mx_root_path . $module_root_path . $kb_block_target . $phpEx . "?mode=article&k=" . $postrow[$row_count]['article_id']) . '"><img src="' . $images['kb_icon_latest_reply'] . '" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" border="0" /></a>'; } else --- 275,279 ---- if ( $display_icon_view == "TRUE" ) { ! $last_post_url = '<a href="' . mx_append_sid($mx_root_path . $module_root_path . $kb_block_target . $phpEx . "?mode=article&k=" . $postrow[$row_count]['article_id']) . '"><img src="' . $images['kb_icon_latest_reply'] . '" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" border="0" /></a>'; } else |