|
From: Jon O. <jon...@us...> - 2007-09-09 20:06:37
|
Update of /cvsroot/mxbb/mx_kb/kb/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv18006/kb/includes Modified Files: functions.php functions_admin.php functions_comment.php functions_kb.php functions_mx.php Log Message: for 2.9.x Index: functions.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/kb/includes/functions.php,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** functions.php 6 Aug 2007 21:13:10 -0000 1.20 --- functions.php 9 Sep 2007 20:06:01 -0000 1.21 *************** *** 98,102 **** global $db, $board_config, $template, $lang, $images, $theme, $phpEx, $phpbb_root_path; global $user_ip, $session_length, $starttime; ! global $userdata, $mx_kb; global $mx_root_path, $module_root_path, $is_block, $phpEx; --- 98,102 ---- global $db, $board_config, $template, $lang, $images, $theme, $phpEx, $phpbb_root_path; global $user_ip, $session_length, $starttime; ! global $userdata, $mx_user, $mx_kb; global $mx_root_path, $module_root_path, $is_block, $phpEx; *************** *** 109,114 **** --- 109,117 ---- if ( $mode == 'window' ) { + /* $userdata = session_pagestart( $user_ip, $page_id ); init_userprefs( $userdata ); + */ + $mx_user->init($user_ip, PAGE_INDEX); $gen_simple_header = true; *************** *** 183,187 **** $template->assign_vars( array( 'L_MORE_SMILIES' => $lang['More_emoticons'], ! 'U_MORE_SMILIES' => append_sid( $phpbb_root_path . "posting.$phpEx?mode=smilies" ) ) ); } --- 186,190 ---- $template->assign_vars( array( 'L_MORE_SMILIES' => $lang['More_emoticons'], ! 'U_MORE_SMILIES' => mx_append_sid( $phpbb_root_path . "posting.$phpEx?mode=smilies" ) ) ); } *************** *** 265,272 **** if ( $mx_kb->modules[$mx_kb->module_name]->auth_user[$_REQUEST['cat']]['auth_post'] || $mx_kb->modules[$mx_kb->module_name]->auth_user[$_REQUEST['cat']]['auth_mod'] ) { ! $add_article_url = append_sid( $mx_kb->this_mxurl( "mode=add&cat=" . $_REQUEST['cat'] ) ); $template->assign_block_vars( 'switch_add_article', array() ); } ! $mcp_url = append_sid( $mx_kb->this_mxurl( "mode=mcp&cat_id={$_REQUEST['cat']}" ) ); if ( $mx_kb->modules[$mx_kb->module_name]->auth_user[$_REQUEST['cat']]['auth_mod'] ) { --- 268,275 ---- if ( $mx_kb->modules[$mx_kb->module_name]->auth_user[$_REQUEST['cat']]['auth_post'] || $mx_kb->modules[$mx_kb->module_name]->auth_user[$_REQUEST['cat']]['auth_mod'] ) { ! $add_article_url = mx_append_sid( $mx_kb->this_mxurl( "mode=add&cat=" . $_REQUEST['cat'] ) ); $template->assign_block_vars( 'switch_add_article', array() ); } ! $mcp_url = mx_append_sid( $mx_kb->this_mxurl( "mode=mcp&cat_id={$_REQUEST['cat']}" ) ); if ( $mx_kb->modules[$mx_kb->module_name]->auth_user[$_REQUEST['cat']]['auth_mod'] ) { *************** *** 275,283 **** } ! $search_url = append_sid( $mx_kb->this_mxurl( "mode=search" ) ); if ( $kb_config['header_banner'] == 1 ) { ! $temp_url = append_sid( $mx_kb->this_mxurl() ); $block_title = '<td align="center" class="row1"><a href="' . $temp_url . '"><img src="' . $images['kb_title'] . '" width="285" height="45" border="0" alt="' . $title . '"></a></td>'; } --- 278,286 ---- } ! $search_url = mx_append_sid( $mx_kb->this_mxurl( "mode=search" ) ); if ( $kb_config['header_banner'] == 1 ) { ! $temp_url = mx_append_sid( $mx_kb->this_mxurl() ); $block_title = '<td align="center" class="row1"><a href="' . $temp_url . '"><img src="' . $images['kb_title'] . '" width="285" height="45" border="0" alt="' . $title . '"></a></td>'; } *************** *** 297,305 **** 'U_MCP' => $mcp_url, 'U_SEARCH' => $search_url, ! 'U_TOPRATED' => append_sid( $mx_kb->this_mxurl( "mode=stats&sort_method=Toprated&sort_order=DESC" ) ), 'L_TOPRATED' => $lang['Top_toprated'], ! 'U_MOST_POPULAR' => append_sid( $mx_kb->this_mxurl( "mode=stats&sort_method=Most_popular&sort_order=DESC" ) ), 'L_MOST_POPULAR' => $lang['Top_most_popular'], ! 'U_LATEST' => append_sid( $mx_kb->this_mxurl( "mode=stats&sort_method=Latest&sort_order=DESC" ) ), 'L_LATEST' => $lang['Top_latest'] )); --- 300,308 ---- 'U_MCP' => $mcp_url, 'U_SEARCH' => $search_url, ! 'U_TOPRATED' => mx_append_sid( $mx_kb->this_mxurl( "mode=stats&sort_method=Toprated&sort_order=DESC" ) ), 'L_TOPRATED' => $lang['Top_toprated'], ! 'U_MOST_POPULAR' => mx_append_sid( $mx_kb->this_mxurl( "mode=stats&sort_method=Most_popular&sort_order=DESC" ) ), 'L_MOST_POPULAR' => $lang['Top_most_popular'], ! 'U_LATEST' => mx_append_sid( $mx_kb->this_mxurl( "mode=stats&sort_method=Latest&sort_order=DESC" ) ), 'L_LATEST' => $lang['Top_latest'] )); Index: functions_mx.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/kb/includes/functions_mx.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** functions_mx.php 7 Jun 2006 20:28:54 -0000 1.5 --- functions_mx.php 9 Sep 2007 20:06:01 -0000 1.6 *************** *** 49,53 **** $board_config['smilies_path'] = $smilies_path; $template->assign_vars(array( ! 'U_MORE_SMILIES' => append_sid(PHPBB_URL . "posting.$phpEx?mode=smilies")) ); } --- 49,53 ---- $board_config['smilies_path'] = $smilies_path; $template->assign_vars(array( ! 'U_MORE_SMILIES' => mx_append_sid(PHPBB_URL . "posting.$phpEx?mode=smilies")) ); } Index: functions_admin.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/kb/includes/functions_admin.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** functions_admin.php 1 Aug 2006 21:00:37 -0000 1.8 --- functions_admin.php 9 Sep 2007 20:06:01 -0000 1.9 *************** *** 62,78 **** $category_id = $category['category_id']; $category_name = $category['category_name']; ! $temp_url = append_sid( $module_root_path . "kb.$phpEx?mode=cat&cat=$category_id" ); $category_link = '<a href="' . $temp_url . '" class="nav" target="_blank">' . $category_name . '</a>'; ! $temp_url = append_sid( $module_root_path . "admin/admin_kb.$phpEx?action=cat_manage&mode=edit&cat=$category_id" ); $edit = '<a href="' . $temp_url . '">'.$lang['Edit'].'</a>'; ! $temp_url = append_sid( $module_root_path . "admin/admin_kb.$phpEx?action=cat_manage&mode=delete&cat=$category_id" ); $delete = '<a href="' . $temp_url . '" class="gen">'.$lang['Delete'].'</a>'; ! $temp_url = append_sid( $module_root_path . "admin/admin_kb.$phpEx?action=cat_manage&mode=up&cat=$category_id" ); $up = '<a href="' . $temp_url . '" class="gen">' . $lang['Move_up'] . '</a>'; ! $temp_url = append_sid( $module_root_path . "admin/admin_kb.$phpEx?action=cat_manage&mode=down&cat=$category_id" ); $down = '<a href="' . $temp_url . '" class="gen">' . $lang['Move_down'] . '</a>'; --- 62,78 ---- $category_id = $category['category_id']; $category_name = $category['category_name']; ! $temp_url = mx_append_sid( $module_root_path . "kb.$phpEx?mode=cat&cat=$category_id" ); $category_link = '<a href="' . $temp_url . '" class="nav" target="_blank">' . $category_name . '</a>'; ! $temp_url = mx_append_sid( $module_root_path . "admin/admin_kb.$phpEx?action=cat_manage&mode=edit&cat=$category_id" ); $edit = '<a href="' . $temp_url . '">'.$lang['Edit'].'</a>'; ! $temp_url = mx_append_sid( $module_root_path . "admin/admin_kb.$phpEx?action=cat_manage&mode=delete&cat=$category_id" ); $delete = '<a href="' . $temp_url . '" class="gen">'.$lang['Delete'].'</a>'; ! $temp_url = mx_append_sid( $module_root_path . "admin/admin_kb.$phpEx?action=cat_manage&mode=up&cat=$category_id" ); $up = '<a href="' . $temp_url . '" class="gen">' . $lang['Move_up'] . '</a>'; ! $temp_url = mx_append_sid( $module_root_path . "admin/admin_kb.$phpEx?action=cat_manage&mode=down&cat=$category_id" ); $down = '<a href="' . $temp_url . '" class="gen">' . $lang['Move_down'] . '</a>'; Index: functions_comment.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/kb/includes/functions_comment.php,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** functions_comment.php 12 Jul 2007 22:50:27 -0000 1.11 --- functions_comment.php 9 Sep 2007 20:06:01 -0000 1.12 *************** *** 18,55 **** * */ ! class mx_kb_comments { - // - // Comments - // - var $cid = ''; // comment id - var $comments_type = ''; // internal or phpbb - [...1300 lines suppressed...] - break; - - case 'insert': - $return_data = $this->insert_phpbb_post( $title, $comments_text, $this->forum_id, $user_id, $username, $user_attach_sig, $this->topic_id, '', $title_first, $comments_text_first, $comment_bbcode_uid ); - break; - - case 'update': - $return_data = $this->insert_phpbb_post( $title, $comments_text, $this->forum_id, $user_id, $username, $user_attach_sig, $this->topic_id, $cid, $title_first, $comments_text_first, $comment_bbcode_uid ); - break; - - default: - mx_message_die(GENERAL_ERROR, 'bad post mode'); - } - - return $return_data; - } } ?> \ No newline at end of file --- 146,149 ---- Index: functions_kb.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/kb/includes/functions_kb.php,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** functions_kb.php 10 Aug 2007 18:35:10 -0000 1.21 --- functions_kb.php 9 Sep 2007 20:06:01 -0000 1.22 *************** *** 597,601 **** // Format the date for the given file // =================================================== ! //$article_date = create_date( $board_config['default_dateformat'], $file_rowset[$i]['article_date'], $board_config['board_timezone'] ); // --- 597,601 ---- // Format the date for the given file // =================================================== ! //$article_date = phpBB2::create_date( $board_config['default_dateformat'], $file_rowset[$i]['article_date'], $board_config['board_timezone'] ); // *************** *** 609,613 **** //$cat_name = ( empty( $cat_id ) ) ? $this->cat_rowset[$file_rowset[$i]['file_catid']]['category_name'] : ''; ! //$cat_url = append_sid( $this->this_mxurl( 'action=category&cat_id=' . $file_rowset[$i]['article_category_id'] ) ); $article_description = $file_rowset[$i]['article_description'] ; --- 609,613 ---- //$cat_name = ( empty( $cat_id ) ) ? $this->cat_rowset[$file_rowset[$i]['file_catid']]['category_name'] : ''; ! //$cat_url = mx_append_sid( $this->this_mxurl( 'action=category&cat_id=' . $file_rowset[$i]['article_category_id'] ) ); $article_description = $file_rowset[$i]['article_description'] ; *************** *** 623,627 **** // author information // ! $author = ( $file_rowset[$i]['user_id'] != ANONYMOUS ) ? '<a href="' . append_sid( $phpbb_root_path . 'profile.' . $phpEx . '?mode=viewprofile&' . POST_USERS_URL . '=' . $file_rowset[$i]['user_id'] ) . '" target=_blank>' : ''; $author .= ( $file_rowset[$i]['user_id'] != ANONYMOUS ) ? $file_rowset[$i]['username'] : $file_rowset[$i]['post_username'] . '(' . $lang['Guest'] . ')'; $author .= ( $file_rowset[$i]['user_id'] != ANONYMOUS ) ? '</a>' : ''; --- 623,627 ---- // author information // ! $author = ( $file_rowset[$i]['user_id'] != ANONYMOUS ) ? '<a href="' . mx_append_sid( $phpbb_root_path . 'profile.' . $phpEx . '?mode=viewprofile&' . POST_USERS_URL . '=' . $file_rowset[$i]['user_id'] ) . '" target=_blank>' : ''; $author .= ( $file_rowset[$i]['user_id'] != ANONYMOUS ) ? $file_rowset[$i]['username'] : $file_rowset[$i]['post_username'] . '(' . $lang['Guest'] . ')'; $author .= ( $file_rowset[$i]['user_id'] != ANONYMOUS ) ? '</a>' : ''; *************** *** 631,635 **** $article_title = $file_rowset[$i]['article_title']; ! $article_url = append_sid( $this->this_mxurl( "mode=article&k=$article_id" ) ); if ( $is_new ) --- 631,635 ---- $article_title = $file_rowset[$i]['article_title']; ! $article_url = mx_append_sid( $this->this_mxurl( "mode=article&k=$article_id" ) ); if ( $is_new ) *************** *** 695,699 **** break; } ! $cat_sub .= (!empty($cat_sub) ? '<span class=' . $class . '>, </span>' : '') . '<a href="' . append_sid( $this->this_mxurl( 'mode=cat&cat=' . $cat_row['category_id'] ) ) . '" class=' . $class . '>' . $cat_row['category_name'] . '</a>'; } /* --- 695,699 ---- break; } ! $cat_sub .= (!empty($cat_sub) ? '<span class=' . $class . '>, </span>' : '') . '<a href="' . mx_append_sid( $this->this_mxurl( 'mode=cat&cat=' . $cat_row['category_id'] ) ) . '" class=' . $class . '>' . $cat_row['category_name'] . '</a>'; } /* *************** *** 712,716 **** break; } ! $cat_sub .= (!empty($cat_sub) ? '<span class=' . $class . '>, </span>' : '') . '<a href="' . append_sid( $this->this_mxurl( 'action=category&cat_id=' . $sub_cat_row['cat_id'] ) ) . '" class=' . $class . '>' . $sub_cat_row['cat_name'] . '</a> '; } } --- 712,716 ---- break; } ! $cat_sub .= (!empty($cat_sub) ? '<span class=' . $class . '>, </span>' : '') . '<a href="' . mx_append_sid( $this->this_mxurl( 'action=category&cat_id=' . $sub_cat_row['cat_id'] ) ) . '" class=' . $class . '>' . $sub_cat_row['cat_name'] . '</a> '; } } *************** *** 762,766 **** $template->assign_block_vars( 'navlinks', array( 'CAT_NAME' => $parent_name, ! 'U_VIEW_CAT' => append_sid( $this->this_mxurl( 'mode=cat&cat=' . $parent_cat_id ) ) ) ); } --- 762,766 ---- $template->assign_block_vars( 'navlinks', array( 'CAT_NAME' => $parent_name, ! 'U_VIEW_CAT' => mx_append_sid( $this->this_mxurl( 'mode=cat&cat=' . $parent_cat_id ) ) ) ); } *************** *** 769,773 **** $template->assign_block_vars( 'navlinks', array( 'CAT_NAME' => $this->cat_rowset[$cat_id]['category_name'], ! 'U_VIEW_CAT' => append_sid( $this->this_mxurl( 'mode=cat&cat=' . $this->cat_rowset[$cat_id]['category_id'] ) ) ) ); } --- 769,773 ---- $template->assign_block_vars( 'navlinks', array( 'CAT_NAME' => $this->cat_rowset[$cat_id]['category_name'], ! 'U_VIEW_CAT' => mx_append_sid( $this->this_mxurl( 'mode=cat&cat=' . $this->cat_rowset[$cat_id]['category_id'] ) ) ) ); } *************** *** 945,949 **** $category_name = $category['category_name']; ! $category_url = append_sid( $this->this_mxurl( "mode=cat&cat=$category_id" ) ); $num_of_cats++; --- 945,949 ---- $category_name = $category['category_name']; ! $category_url = mx_append_sid( $this->this_mxurl( "mode=cat&cat=$category_id" ) ); $num_of_cats++; *************** *** 954,962 **** if ( !empty( $last_file_info['article_id'] ) && $this->auth_user[$category_id]['auth_view'] ) { ! $last_file_time = create_date( $board_config['default_dateformat'], $last_file_info['article_date'], $board_config['board_timezone'] ); $last_file = $last_file_time . '<br />'; $last_file_name = ( strlen( stripslashes( $last_file_info['article_title'] ) ) > 20 ) ? substr( stripslashes( $last_file_info['article_title'] ), 0, 20 ) . '...' : stripslashes( $last_file_info['article_title'] ); ! $last_file .= '<a href="' . append_sid( $this->this_mxurl( 'mode=article&k=' . $last_file_info['article_id'] ) ) . '" alt="' . stripslashes( $last_file_info['article_title'] ) . '" title="' . stripslashes( $last_file_info['article_title'] ) . '">' . $last_file_name . '</a> '; ! $last_file .= '<a href="' . append_sid( $this->this_mxurl( 'mode=article&k=' . $last_file_info['article_id'] ) ) . '"><img src="' . $images['kb_icon_latest_reply'] . '" border="0" alt="' . $lang['View_latest_file'] . '" title="' . $lang['View_latest_file'] . '" /></a>'; } else --- 954,962 ---- if ( !empty( $last_file_info['article_id'] ) && $this->auth_user[$category_id]['auth_view'] ) { ! $last_file_time = phpBB2::create_date( $board_config['default_dateformat'], $last_file_info['article_date'], $board_config['board_timezone'] ); $last_file = $last_file_time . '<br />'; $last_file_name = ( strlen( stripslashes( $last_file_info['article_title'] ) ) > 20 ) ? substr( stripslashes( $last_file_info['article_title'] ), 0, 20 ) . '...' : stripslashes( $last_file_info['article_title'] ); ! $last_file .= '<a href="' . mx_append_sid( $this->this_mxurl( 'mode=article&k=' . $last_file_info['article_id'] ) ) . '" alt="' . stripslashes( $last_file_info['article_title'] ) . '" title="' . stripslashes( $last_file_info['article_title'] ) . '">' . $last_file_name . '</a> '; ! $last_file .= '<a href="' . mx_append_sid( $this->this_mxurl( 'mode=article&k=' . $last_file_info['article_id'] ) ) . '"><img src="' . $images['kb_icon_latest_reply'] . '" border="0" alt="' . $lang['View_latest_file'] . '" title="' . $lang['View_latest_file'] . '" /></a>'; } else *************** *** 1128,1132 **** // Format the date for the given file // =================================================== ! $article_date = create_date( $board_config['default_dateformat'], $file_rowset[$i]['article_date'], $board_config['board_timezone'] ); // =================================================== // Get rating for the file and format it --- 1128,1132 ---- // Format the date for the given file // =================================================== ! $article_date = phpBB2::create_date( $board_config['default_dateformat'], $file_rowset[$i]['article_date'], $board_config['board_timezone'] ); // =================================================== // Get rating for the file and format it *************** *** 1143,1147 **** $cat_name = ( empty( $cat_id ) ) ? $this->cat_rowset[$file_rowset[$i]['file_catid']]['category_name'] : ''; ! $cat_url = append_sid( $this->this_mxurl( 'action=category&cat_id=' . $file_rowset[$i]['article_category_id'] ) ); $article_description = $file_rowset[$i]['article_description'] ; --- 1143,1147 ---- $cat_name = ( empty( $cat_id ) ) ? $this->cat_rowset[$file_rowset[$i]['file_catid']]['category_name'] : ''; ! $cat_url = mx_append_sid( $this->this_mxurl( 'action=category&cat_id=' . $file_rowset[$i]['article_category_id'] ) ); $article_description = $file_rowset[$i]['article_description'] ; *************** *** 1157,1161 **** // author information // ! $author = ( $file_rowset[$i]['user_id'] != ANONYMOUS ) ? '<a href="' . append_sid( $phpbb_root_path . 'profile.' . $phpEx . '?mode=viewprofile&' . POST_USERS_URL . '=' . $file_rowset[$i]['user_id'] ) . '" target=_blank>' : ''; $author .= ( $file_rowset[$i]['user_id'] != ANONYMOUS ) ? $file_rowset[$i]['username'] : $file_rowset[$i]['post_username'] . '(' . $lang['Guest'] . ')'; $author .= ( $file_rowset[$i]['user_id'] != ANONYMOUS ) ? '</a>' : ''; --- 1157,1161 ---- // author information // ! $author = ( $file_rowset[$i]['user_id'] != ANONYMOUS ) ? '<a href="' . mx_append_sid( $phpbb_root_path . 'profile.' . $phpEx . '?mode=viewprofile&' . POST_USERS_URL . '=' . $file_rowset[$i]['user_id'] ) . '" target=_blank>' : ''; $author .= ( $file_rowset[$i]['user_id'] != ANONYMOUS ) ? $file_rowset[$i]['username'] : $file_rowset[$i]['post_username'] . '(' . $lang['Guest'] . ')'; $author .= ( $file_rowset[$i]['user_id'] != ANONYMOUS ) ? '</a>' : ''; *************** *** 1165,1169 **** $article_title = $file_rowset[$i]['article_title']; ! $article_url = append_sid( $this->this_mxurl( "mode=article&k=$article_id" ) ); // =================================================== --- 1165,1169 ---- $article_title = $file_rowset[$i]['article_title']; ! $article_url = mx_append_sid( $this->this_mxurl( "mode=article&k=$article_id" ) ); // =================================================== *************** *** 1182,1186 **** 'ARTICLE_VOTES' => $file_rowset[$i]['total_votes'], 'L_RATING' => $lang['Votes_label'], ! 'DO_RATE' => $this->auth_user[$cat_id]['auth_rate'] ? '<a href="' . append_sid( $this->this_mxurl( 'mode=rate&k=' . $file_rowset[$i]['article_id'] ) ) . '">' . $lang['ADD_RATING'] . '</a>' : '', 'RATING' => $rating, --- 1182,1186 ---- 'ARTICLE_VOTES' => $file_rowset[$i]['total_votes'], 'L_RATING' => $lang['Votes_label'], ! 'DO_RATE' => $this->auth_user[$cat_id]['auth_rate'] ? '<a href="' . mx_append_sid( $this->this_mxurl( 'mode=rate&k=' . $file_rowset[$i]['article_id'] ) ) . '">' . $lang['ADD_RATING'] . '</a>' : '', 'RATING' => $rating, *************** *** 1285,1294 **** 'SORT_DESC' => ( $sort_order == 'DESC' ) ? 'selected="selected"' : '', ! 'PAGINATION' => generate_pagination( append_sid( $this->this_mxurl( "mode=$action&sort_method=$sort_method&sort_order=$sort_order" ) ), $total_file, $kb_config['pagination'], $start ), 'PAGE_NUMBER' => sprintf( $lang['Page_of'], ( floor( $start / $kb_config['pagination'] ) + 1 ), ceil( $total_file / $kb_config['pagination'] ) ), 'ID' => $cat_id, 'START' => $start, ! 'S_ACTION_SORT' => append_sid( $this->this_mxurl( "mode=$action" ) ) ) ); } --- 1285,1294 ---- 'SORT_DESC' => ( $sort_order == 'DESC' ) ? 'selected="selected"' : '', ! 'PAGINATION' => phpBB2::generate_pagination( mx_append_sid( $this->this_mxurl( "mode=$action&sort_method=$sort_method&sort_order=$sort_order" ) ), $total_file, $kb_config['pagination'], $start ), 'PAGE_NUMBER' => sprintf( $lang['Page_of'], ( floor( $start / $kb_config['pagination'] ) + 1 ), ceil( $total_file / $kb_config['pagination'] ) ), 'ID' => $cat_id, 'START' => $start, ! 'S_ACTION_SORT' => mx_append_sid( $this->this_mxurl( "mode=$action" ) ) ) ); } *************** *** 1470,1474 **** else { ! $message = $lang['Rerror'] . "<br /><br />" . sprintf( $lang['Click_return'], "<a href=\"" . append_sid( $this->this_mxurl( "mode=article&k=$article_id" ) ) . "\">", "</a>" ); mx_message_die( GENERAL_MESSAGE, $message ); } --- 1470,1474 ---- else { ! $message = $lang['Rerror'] . "<br /><br />" . sprintf( $lang['Click_return'], "<a href=\"" . mx_append_sid( $this->this_mxurl( "mode=article&k=$article_id" ) ) . "\">", "</a>" ); mx_message_die( GENERAL_MESSAGE, $message ); } *************** *** 1926,1930 **** $row = $db->sql_fetchrow( $result ); ! $temp_url = append_sid( $this->this_mxurl( 'mode=cat&cat=' . $row['category_id'] ) ); $path_kb_array[] .= ' » <a href="' . $temp_url . '" class="nav">' . $row['category_name'] . '</a> '; --- 1926,1930 ---- $row = $db->sql_fetchrow( $result ); ! $temp_url = mx_append_sid( $this->this_mxurl( 'mode=cat&cat=' . $row['category_id'] ) ); $path_kb_array[] .= ' » <a href="' . $temp_url . '" class="nav">' . $row['category_name'] . '</a> '; |