|
From: Jon O. <jon...@us...> - 2007-09-09 20:09:39
|
Update of /cvsroot/mxbb/mx_linkdb/linkdb/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv19690/includes Modified Files: functions.php functions_admin.php functions_comment.php functions_linkdb.php functions_mx.php Log Message: for 2.9.x Index: functions.php =================================================================== RCS file: /cvsroot/mxbb/mx_linkdb/linkdb/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:48 -0000 1.20 --- functions.php 9 Sep 2007 20:09:01 -0000 1.21 *************** *** 91,95 **** 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; --- 91,95 ---- global $db, $board_config, $template, $lang, $images, $theme, $phpEx, $phpbb_root_path; global $user_ip, $session_length, $starttime; ! global $userdata, $mx_user; global $mx_root_path, $module_root_path, $is_block, $phpEx; *************** *** 100,105 **** --- 100,108 ---- if ( $mode == 'window' ) { + /* $userdata = session_pagestart( $user_ip, $page_id ); init_userprefs( $userdata ); + */ + $mx_user->init($user_ip, PAGE_INDEX); $gen_simple_header = true; *************** *** 174,178 **** $template->assign_vars( array( 'L_MORE_SMILIES' => $lang['More_emoticons'], ! 'U_MORE_SMILIES' => append_sid( $phpbb_root_path . "posting.$phpEx?mode=smilies" ) ) ); } --- 177,181 ---- $template->assign_vars( array( 'L_MORE_SMILIES' => $lang['More_emoticons'], ! 'U_MORE_SMILIES' => mx_append_sid( $phpbb_root_path . "posting.$phpEx?mode=smilies" ) ) ); } *************** *** 243,247 **** if ( $linkdb->modules[$linkdb->module_name]->auth_user[$_REQUEST['cat_id']]['auth_post'] || $linkdb->modules[$linkdb->module_name]->auth_user[$_REQUEST['cat_id']]['auth_mod'] ) { ! $upload_url = append_sid( $linkdb->this_mxurl( "action=user_upload&cat_id={$_REQUEST['cat_id']}" ) ); if ( !$linkdb_config['lock_submit_site'] ) { --- 246,250 ---- if ( $linkdb->modules[$linkdb->module_name]->auth_user[$_REQUEST['cat_id']]['auth_post'] || $linkdb->modules[$linkdb->module_name]->auth_user[$_REQUEST['cat_id']]['auth_mod'] ) { ! $upload_url = mx_append_sid( $linkdb->this_mxurl( "action=user_upload&cat_id={$_REQUEST['cat_id']}" ) ); if ( !$linkdb_config['lock_submit_site'] ) { *************** *** 249,253 **** } } ! $mcp_url = append_sid( $linkdb->this_mxurl( "action=mcp&cat_id={$_REQUEST['cat_id']}" ) ); if ( $linkdb->modules[$linkdb->module_name]->auth_user[$_REQUEST['cat_id']]['auth_mod'] ) { --- 252,256 ---- } } ! $mcp_url = mx_append_sid( $linkdb->this_mxurl( "action=mcp&cat_id={$_REQUEST['cat_id']}" ) ); if ( $linkdb->modules[$linkdb->module_name]->auth_user[$_REQUEST['cat_id']]['auth_mod'] ) { *************** *** 257,261 **** else { ! $upload_url = append_sid( $linkdb->this_mxurl( "action=user_upload" ) ); } --- 260,264 ---- else { ! $upload_url = mx_append_sid( $linkdb->this_mxurl( "action=user_upload" ) ); } *************** *** 266,270 **** // BEGIN linkdb 'LINKS' => $lang['Links_Title'], ! 'U_LINK' => append_sid( $linkdb->this_mxurl() ), // END linkdb 'L_SEARCH' => $lang['Link_Search'], --- 269,273 ---- // BEGIN linkdb 'LINKS' => $lang['Links_Title'], ! 'U_LINK' => mx_append_sid( $linkdb->this_mxurl() ), // END linkdb 'L_SEARCH' => $lang['Link_Search'], *************** *** 279,289 **** 'L_STATS_TOPRATED' => $lang['Link_toprated'], ! 'U_PASEARCH' => append_sid( $linkdb->this_mxurl( "action=search" ) ), 'U_UPLOAD' => $upload_url, 'U_MCP' => $mcp_url, ! 'U_VIEW_ALL' => append_sid( $linkdb->this_mxurl( "action=viewall" ) ), ! 'U_DESCEND_BY_HITS' => append_sid( $linkdb->this_mxurl( "action=viewall&&sort_method=link_hits&sort_order=DESC" ) ), ! 'U_DESCEND_BY_JOIN' => append_sid( $linkdb->this_mxurl( "action=viewall&sort_method=link_time&sort_order=DESC" ) ), ! 'U_DESCEND_BY_RATINGS' => append_sid( $linkdb->this_mxurl( "action=viewall&sort_method=rating&sort_order=DESC" ) ), 'U_PORTAL_PAGE' => $page_id --- 282,292 ---- 'L_STATS_TOPRATED' => $lang['Link_toprated'], ! 'U_PASEARCH' => mx_append_sid( $linkdb->this_mxurl( "action=search" ) ), 'U_UPLOAD' => $upload_url, 'U_MCP' => $mcp_url, ! 'U_VIEW_ALL' => mx_append_sid( $linkdb->this_mxurl( "action=viewall" ) ), ! 'U_DESCEND_BY_HITS' => mx_append_sid( $linkdb->this_mxurl( "action=viewall&&sort_method=link_hits&sort_order=DESC" ) ), ! 'U_DESCEND_BY_JOIN' => mx_append_sid( $linkdb->this_mxurl( "action=viewall&sort_method=link_time&sort_order=DESC" ) ), ! 'U_DESCEND_BY_RATINGS' => mx_append_sid( $linkdb->this_mxurl( "action=viewall&sort_method=rating&sort_order=DESC" ) ), 'U_PORTAL_PAGE' => $page_id *************** *** 326,330 **** 'L_JUMP' => $lang['Jump'], 'JUMPMENU' => $linkdb->modules[$linkdb->module_name]->generate_jumpbox( 0, 0, array( $_GET['cat_id'] => 1, true, true, 'auth_view' ) ), ! 'S_JUMPBOX_ACTION' => append_sid( $linkdb->this_mxurl() ), 'MX_PAGE' => $page_id, --- 329,333 ---- 'L_JUMP' => $lang['Jump'], 'JUMPMENU' => $linkdb->modules[$linkdb->module_name]->generate_jumpbox( 0, 0, array( $_GET['cat_id'] => 1, true, true, 'auth_view' ) ), ! 'S_JUMPBOX_ACTION' => mx_append_sid( $linkdb->this_mxurl() ), 'MX_PAGE' => $page_id, Index: functions_mx.php =================================================================== RCS file: /cvsroot/mxbb/mx_linkdb/linkdb/includes/functions_mx.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** functions_mx.php 1 Jul 2006 21:32:19 -0000 1.1 --- functions_mx.php 9 Sep 2007 20:09:02 -0000 1.2 *************** *** 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_comment.php =================================================================== RCS file: /cvsroot/mxbb/mx_linkdb/linkdb/includes/functions_comment.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** functions_comment.php 12 Jul 2007 22:50:56 -0000 1.5 --- functions_comment.php 9 Sep 2007 20:09:02 -0000 1.6 *************** *** 18,55 **** * */ ! class linkdb_comments { - // - // Comments - // - var $cid = ''; // comment id - var $comments_type = ''; // internal or phpbb - [...1309 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 --- 147,150 ---- Index: functions_linkdb.php =================================================================== RCS file: /cvsroot/mxbb/mx_linkdb/linkdb/includes/functions_linkdb.php,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -d -r1.26 -r1.27 *** functions_linkdb.php 10 Aug 2007 18:35:32 -0000 1.26 --- functions_linkdb.php 9 Sep 2007 20:09:02 -0000 1.27 *************** *** 399,403 **** break; } ! $cat_sub .= (!empty($cat_sub) ? '<span class=' . $class . '>, </span>' : '') . '<a href="' . append_sid( $this->this_mxurl( 'action=category&cat_id=' . $cat_row['cat_id'] ) ) . '" class=' . $class . '>' . $cat_row['cat_name'] . '</a>'; } /* --- 399,403 ---- break; } ! $cat_sub .= (!empty($cat_sub) ? '<span class=' . $class . '>, </span>' : '') . '<a href="' . mx_append_sid( $this->this_mxurl( 'action=category&cat_id=' . $cat_row['cat_id'] ) ) . '" class=' . $class . '>' . $cat_row['cat_name'] . '</a>'; } /* *************** *** 416,420 **** 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> '; } } --- 416,420 ---- 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> '; } } *************** *** 466,470 **** $template->assign_block_vars( 'navlinks', array( 'CAT_NAME' => $parent_name, ! 'U_VIEW_CAT' => append_sid( $this->this_mxurl( 'action=category&cat_id=' . $parent_cat_id ) ) ) ); } --- 466,470 ---- $template->assign_block_vars( 'navlinks', array( 'CAT_NAME' => $parent_name, ! 'U_VIEW_CAT' => mx_append_sid( $this->this_mxurl( 'action=category&cat_id=' . $parent_cat_id ) ) ) ); } *************** *** 473,477 **** $template->assign_block_vars( 'navlinks', array( 'CAT_NAME' => $this->cat_rowset[$cat_id]['cat_name'], ! 'U_VIEW_CAT' => append_sid( $this->this_mxurl( 'action=category&cat_id=' . $this->cat_rowset[$cat_id]['cat_id'] ) ) ) ); --- 473,477 ---- $template->assign_block_vars( 'navlinks', array( 'CAT_NAME' => $this->cat_rowset[$cat_id]['cat_name'], ! 'U_VIEW_CAT' => mx_append_sid( $this->this_mxurl( 'action=category&cat_id=' . $this->cat_rowset[$cat_id]['cat_id'] ) ) ) ); *************** *** 595,599 **** { $redirect = ( $cat_id != LINKDB_ROOT_CAT ) ? $this->this_mxurl( "action=category&cat_id=$cat_id" ) : $this->this_mxurl(); ! redirect( append_sid( "login.$phpEx?redirect=$redirect", true ) ); } mx_message_die( GENERAL_ERROR, 'Either you are not allowed to view any category, or there is no category in the database' ); --- 595,599 ---- { $redirect = ( $cat_id != LINKDB_ROOT_CAT ) ? $this->this_mxurl( "action=category&cat_id=$cat_id" ) : $this->this_mxurl(); ! mx_redirect( mx_append_sid( "login.$phpEx?redirect=$redirect", true ) ); } mx_message_die( GENERAL_ERROR, 'Either you are not allowed to view any category, or there is no category in the database' ); *************** *** 652,656 **** $category_name = $subcat_row['cat_name']; ! $category_url = append_sid( $this->this_mxurl( 'action=category&cat_id=' . $subcat_id ) ); $num_of_cats++; --- 652,656 ---- $category_name = $subcat_row['cat_name']; ! $category_url = mx_append_sid( $this->this_mxurl( 'action=category&cat_id=' . $subcat_id ) ); $num_of_cats++; *************** *** 661,669 **** if ( !empty( $last_file_info['link_id'] ) && $this->auth_user[$subcat_id]['auth_view'] ) { ! $last_file_time = create_date( $board_config['default_dateformat'], $last_file_info['link_time'], $board_config['board_timezone'] ); $last_file = $last_file_time . '<br />'; $last_file_name = ( strlen( stripslashes( $last_file_info['link_name'] ) ) > 20 ) ? substr( stripslashes( $last_file_info['link_name'] ), 0, 20 ) . '...' : stripslashes( $last_file_info['link_name'] ); ! $last_file .= '<a href="' . append_sid( $this->this_mxurl( 'action=link&link_id=' . $last_file_info['link_id'] ) ) . '" alt="' . stripslashes( $last_file_info['link_name'] ) . '" title="' . stripslashes( $last_file_info['link_name'] ) . '">' . $last_file_name . '</a> '; ! $last_file .= '<a href="' . append_sid( $this->this_mxurl( 'action=link&link_id=' . $last_file_info['link_id'] ) ) . '"><img src="' . $images['linkdb_icon_latest_reply'] . '" border="0" alt="' . $lang['View_latest_file'] . '" title="' . $lang['View_latest_file'] . '" /></a>'; } else --- 661,669 ---- if ( !empty( $last_file_info['link_id'] ) && $this->auth_user[$subcat_id]['auth_view'] ) { ! $last_file_time = phpBB2::create_date( $board_config['default_dateformat'], $last_file_info['link_time'], $board_config['board_timezone'] ); $last_file = $last_file_time . '<br />'; $last_file_name = ( strlen( stripslashes( $last_file_info['link_name'] ) ) > 20 ) ? substr( stripslashes( $last_file_info['link_name'] ), 0, 20 ) . '...' : stripslashes( $last_file_info['link_name'] ); ! $last_file .= '<a href="' . mx_append_sid( $this->this_mxurl( 'action=link&link_id=' . $last_file_info['link_id'] ) ) . '" alt="' . stripslashes( $last_file_info['link_name'] ) . '" title="' . stripslashes( $last_file_info['link_name'] ) . '">' . $last_file_name . '</a> '; ! $last_file .= '<a href="' . mx_append_sid( $this->this_mxurl( 'action=link&link_id=' . $last_file_info['link_id'] ) ) . '"><img src="' . $images['linkdb_icon_latest_reply'] . '" border="0" alt="' . $lang['View_latest_file'] . '" title="' . $lang['View_latest_file'] . '" /></a>'; } else *************** *** 838,843 **** // Format the date for the given file // ! $date = create_date( $board_config['default_dateformat'], $file_rowset[$i]['link_time'], $board_config['board_timezone'] ); ! //$date_updated = create_date( $board_config['default_dateformat'], $file_rowset[$i]['link_update_time'], $board_config['board_timezone'] ); // =================================================== // Get rating for the file and format it --- 838,843 ---- // Format the date for the given file // ! $date = phpBB2::create_date( $board_config['default_dateformat'], $file_rowset[$i]['link_time'], $board_config['board_timezone'] ); ! //$date_updated = phpBB2::create_date( $board_config['default_dateformat'], $file_rowset[$i]['link_update_time'], $board_config['board_timezone'] ); // =================================================== // Get rating for the file and format it *************** *** 857,870 **** $link_title = $file_rowset[$i]['link_name']; ! $link_url = append_sid( $this->this_mxurl( 'action=link&link_id=' . $file_rowset[$i]['link_id'] ) ); ! $link_url_jump = append_sid( $this->this_mxurl( 'action=jump&link_id=' . $file_rowset[$i]['link_id'] ) ); $cat_name = ( empty( $cat_id ) ) ? $this->cat_rowset[$file_rowset[$i]['link_catid']]['cat_name'] : ''; ! $cat_url = append_sid( $this->this_mxurl( 'action=category&cat_id=' . $file_rowset[$i]['link_catid'] ) ); // // Poster // ! $file_poster = ( $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>' : ''; $file_poster .= ( $file_rowset[$i]['user_id'] != ANONYMOUS ) ? $file_rowset[$i]['username'] : $file_rowset[$i]['post_username'] . '(' . $lang['Guest'] . ')'; $file_poster .= ( $file_rowset[$i]['user_id'] != ANONYMOUS ) ? '</a>' : ''; --- 857,870 ---- $link_title = $file_rowset[$i]['link_name']; ! $link_url = mx_append_sid( $this->this_mxurl( 'action=link&link_id=' . $file_rowset[$i]['link_id'] ) ); ! $link_url_jump = mx_append_sid( $this->this_mxurl( 'action=jump&link_id=' . $file_rowset[$i]['link_id'] ) ); $cat_name = ( empty( $cat_id ) ) ? $this->cat_rowset[$file_rowset[$i]['link_catid']]['cat_name'] : ''; ! $cat_url = mx_append_sid( $this->this_mxurl( 'action=category&cat_id=' . $file_rowset[$i]['link_catid'] ) ); // // Poster // ! $file_poster = ( $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>' : ''; $file_poster .= ( $file_rowset[$i]['user_id'] != ANONYMOUS ) ? $file_rowset[$i]['username'] : $file_rowset[$i]['post_username'] . '(' . $lang['Guest'] . ')'; $file_poster .= ( $file_rowset[$i]['user_id'] != ANONYMOUS ) ? '</a>' : ''; *************** *** 883,887 **** 'FILE_VOTES' => $file_rowset[$i]['total_votes'], 'L_RATING' => $lang['LinkRating'], ! 'DO_RATE' => $this->auth_user[$cat_id]['auth_rate'] ? '<a href="' . append_sid( $this->this_mxurl( 'action=rate&link_id=' . $file_rowset[$i]['link_id'] ) ) . '">' . $lang['Do_rate'] . '</a>' : '', 'RATING' => $file_rating, --- 883,887 ---- 'FILE_VOTES' => $file_rowset[$i]['total_votes'], 'L_RATING' => $lang['LinkRating'], ! 'DO_RATE' => $this->auth_user[$cat_id]['auth_rate'] ? '<a href="' . mx_append_sid( $this->this_mxurl( 'action=rate&link_id=' . $file_rowset[$i]['link_id'] ) ) . '">' . $lang['Do_rate'] . '</a>' : '', 'RATING' => $file_rating, *************** *** 968,977 **** 'SORT_ASC' => ( $sort_order == 'ASC' ) ? 'selected="selected"' : '', 'SORT_DESC' => ( $sort_order == 'DESC' ) ? 'selected="selected"' : '', ! 'PAGINATION' => generate_pagination( append_sid( $this->this_mxurl( "action=$action&sort_method=$sort_method&sort_order=$sort_order" ) ), $total_file, $linkdb_config['pagination'], $start ), 'PAGE_NUMBER' => sprintf( $lang['Page_of'], ( floor( $start / $linkdb_config['pagination'] ) + 1 ), ceil( $total_file / $linkdb_config['pagination'] ) ), 'ID' => $cat_id, 'START' => $start, ! 'S_ACTION_SORT' => append_sid( $this->this_mxurl( "action=$action" ) ) ) ); } --- 968,977 ---- 'SORT_ASC' => ( $sort_order == 'ASC' ) ? 'selected="selected"' : '', 'SORT_DESC' => ( $sort_order == 'DESC' ) ? 'selected="selected"' : '', ! 'PAGINATION' => phpBB2::generate_pagination( mx_append_sid( $this->this_mxurl( "action=$action&sort_method=$sort_method&sort_order=$sort_order" ) ), $total_file, $linkdb_config['pagination'], $start ), 'PAGE_NUMBER' => sprintf( $lang['Page_of'], ( floor( $start / $linkdb_config['pagination'] ) + 1 ), ceil( $total_file / $linkdb_config['pagination'] ) ), 'ID' => $cat_id, 'START' => $start, ! 'S_ACTION_SORT' => mx_append_sid( $this->this_mxurl( "action=$action" ) ) ) ); } *************** *** 1005,1009 **** if ( $linkdb_config['display_links_logo'] ) { ! $banner = "<a href=" . append_sid( $this->this_mxurl( "action=jump&link_id=" . $link_rowset['link_id'] ) ) . " alt='" . $row['link_desc'] . "' target='_blank'><img src='"; if ( $link_rowset['link_logo_src'] && $link_rowset['link_logo_src'] != 'http://' ) { --- 1005,1009 ---- if ( $linkdb_config['display_links_logo'] ) { ! $banner = "<a href=" . mx_append_sid( $this->this_mxurl( "action=jump&link_id=" . $link_rowset['link_id'] ) ) . " alt='" . $row['link_desc'] . "' target='_blank'><img src='"; if ( $link_rowset['link_logo_src'] && $link_rowset['link_logo_src'] != 'http://' ) { *************** *** 1154,1158 **** else { ! $message = $lang['Rerror'] . "<br /><br />" . sprintf( $lang['Click_return'], "<a href=\"" . ( !empty($cat_id) ? append_sid( $this->this_mxurl( "action=category&cat_id=$cat_id" ) ) : append_sid( $this->this_mxurl( "action=link&link_id=$link_id" ) ) ) . "\">", "</a>" ); mx_message_die( GENERAL_MESSAGE, $message ); } --- 1154,1158 ---- else { ! $message = $lang['Rerror'] . "<br /><br />" . sprintf( $lang['Click_return'], "<a href=\"" . ( !empty($cat_id) ? mx_append_sid( $this->this_mxurl( "action=category&cat_id=$cat_id" ) ) : mx_append_sid( $this->this_mxurl( "action=link&link_id=$link_id" ) ) ) . "\">", "</a>" ); mx_message_die( GENERAL_MESSAGE, $message ); } Index: functions_admin.php =================================================================== RCS file: /cvsroot/mxbb/mx_linkdb/linkdb/includes/functions_admin.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** functions_admin.php 31 May 2007 19:53:27 -0000 1.4 --- functions_admin.php 9 Sep 2007 20:09:01 -0000 1.5 *************** *** 71,80 **** $template->assign_block_vars( 'cat_row', array( 'COLOR' => $str, ! 'U_CAT' => append_sid( "admin_linkdb.$phpEx?action=cat_manage&cat_id" . $subcat_id ), ! 'U_CAT_EDIT' => append_sid( "admin_linkdb.$phpEx?action=cat_manage&mode=edit&cat_id=$subcat_id" ), ! 'U_CAT_DELETE' => append_sid( "admin_linkdb.$phpEx?action=cat_manage&mode=delete&cat_id=$subcat_id" ), ! 'U_CAT_MOVE_UP' => append_sid( "admin_linkdb.$phpEx?action=cat_manage&mode=cat_order&move=-15&cat_id_other=$subcat_id" ), ! 'U_CAT_MOVE_DOWN' => append_sid( "admin_linkdb.$phpEx?action=cat_manage&mode=cat_order&move=15&cat_id_other=$subcat_id" ), ! 'U_CAT_RESYNC' => append_sid( "admin_linkdb.$phpEx?action=cat_manage&mode=sync&cat_id_other=$subcat_id" ), 'CAT_NAME' => $cat_data['cat_name'], 'PRE' => $pre ) --- 71,80 ---- $template->assign_block_vars( 'cat_row', array( 'COLOR' => $str, ! 'U_CAT' => mx_append_sid( "admin_linkdb.$phpEx?action=cat_manage&cat_id" . $subcat_id ), ! 'U_CAT_EDIT' => mx_append_sid( "admin_linkdb.$phpEx?action=cat_manage&mode=edit&cat_id=$subcat_id" ), ! 'U_CAT_DELETE' => mx_append_sid( "admin_linkdb.$phpEx?action=cat_manage&mode=delete&cat_id=$subcat_id" ), ! 'U_CAT_MOVE_UP' => mx_append_sid( "admin_linkdb.$phpEx?action=cat_manage&mode=cat_order&move=-15&cat_id_other=$subcat_id" ), ! 'U_CAT_MOVE_DOWN' => mx_append_sid( "admin_linkdb.$phpEx?action=cat_manage&mode=cat_order&move=15&cat_id_other=$subcat_id" ), ! 'U_CAT_RESYNC' => mx_append_sid( "admin_linkdb.$phpEx?action=cat_manage&mode=sync&cat_id_other=$subcat_id" ), 'CAT_NAME' => $cat_data['cat_name'], 'PRE' => $pre ) |