|
From: Jon O. <jon...@us...> - 2007-09-09 19:35:48
|
Update of /cvsroot/mxbb/mx_bugsbt/bugsbt/modules In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv2027/bugsbt/modules Modified Files: bugsbt_post.php bugsbt_post_comment.php bugsbt_product.php bugsbt_update_tree.php bugsbt_view.php Log Message: for 2.9.x Index: bugsbt_update_tree.php =================================================================== RCS file: /cvsroot/mxbb/mx_bugsbt/bugsbt/modules/bugsbt_update_tree.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** bugsbt_update_tree.php 5 May 2007 20:18:04 -0000 1.2 --- bugsbt_update_tree.php 9 Sep 2007 19:35:11 -0000 1.3 *************** *** 62,66 **** if ( !$userdata['session_logged_in'] ) { ! // mx_redirect(append_sid($mx_root_path . "login.$phpEx?redirect=". $this->this_mxurl("mode=cat&cat=" . $cat_id, true), true)); } --- 62,66 ---- if ( !$userdata['session_logged_in'] ) { ! // mx_redirect(mx_append_sid($mx_root_path . "login.$phpEx?redirect=". $this->this_mxurl("mode=cat&cat=" . $cat_id, true), true)); } *************** *** 71,75 **** if ( !isset( $this->cat_rowset[$category_id] ) ) { ! $message = $lang['Category_not_exsist'] . '<br /><br />' . sprintf( $lang['Click_return_bugsbt'], '<a href="' . append_sid( $this->this_mxurl() ) . '">', '</a>' ) . '<br /><br />' . sprintf( $lang['Click_return_index'], '<a href="' . append_sid( $mx_root_path . "index.$phpEx" ) . '">', '</a>' ); mx_message_die( GENERAL_MESSAGE, $message ); } --- 71,75 ---- if ( !isset( $this->cat_rowset[$category_id] ) ) { ! $message = $lang['Category_not_exsist'] . '<br /><br />' . sprintf( $lang['Click_return_bugsbt'], '<a href="' . mx_append_sid( $this->this_mxurl() ) . '">', '</a>' ) . '<br /><br />' . sprintf( $lang['Click_return_index'], '<a href="' . mx_append_sid($mx_root_path . "index.$phpEx" ) . '">', '</a>' ); mx_message_die( GENERAL_MESSAGE, $message ); } Index: bugsbt_product.php =================================================================== RCS file: /cvsroot/mxbb/mx_bugsbt/bugsbt/modules/bugsbt_product.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** bugsbt_product.php 5 May 2007 20:18:04 -0000 1.3 --- bugsbt_product.php 9 Sep 2007 19:35:11 -0000 1.4 *************** *** 96,100 **** if ( !$userdata['session_logged_in'] ) { ! // mx_redirect(append_sid($mx_root_path . "login.$phpEx?redirect=". $this->this_mxurl("mode=cat&cat=" . $cat_id, true), true)); } --- 96,100 ---- if ( !$userdata['session_logged_in'] ) { ! // mx_redirect(mx_append_sid($mx_root_path . "login.$phpEx?redirect=". $this->this_mxurl("mode=cat&cat=" . $cat_id, true), true)); } *************** *** 105,109 **** if ( !isset( $this->cat_rowset[$category_id] ) ) { ! $message = $lang['Category_not_exsist'] . '<br /><br />' . sprintf( $lang['Click_return_bugsbt'], '<a href="' . append_sid( $this->this_mxurl() ) . '">', '</a>' ) . '<br /><br />' . sprintf( $lang['Click_return_index'], '<a href="' . append_sid( $mx_root_path . "index.$phpEx" ) . '">', '</a>' ); //mx_message_die( GENERAL_MESSAGE, $message ); } --- 105,109 ---- if ( !isset( $this->cat_rowset[$category_id] ) ) { ! $message = $lang['Category_not_exsist'] . '<br /><br />' . sprintf( $lang['Click_return_bugsbt'], '<a href="' . mx_append_sid( $this->this_mxurl() ) . '">', '</a>' ) . '<br /><br />' . sprintf( $lang['Click_return_index'], '<a href="' . mx_append_sid( $mx_root_path . "index.$phpEx" ) . '">', '</a>' ); //mx_message_die( GENERAL_MESSAGE, $message ); } *************** *** 139,143 **** 'L_UPDATED' => $lang['Date_updated'], ! 'U_CAT' => append_sid( $this->this_mxurl( 'mode=cat&cat=' . $category_id ) ) ) ); --- 139,143 ---- 'L_UPDATED' => $lang['Date_updated'], ! 'U_CAT' => mx_append_sid( $this->this_mxurl( 'mode=cat&cat=' . $category_id ) ) ) ); Index: bugsbt_view.php =================================================================== RCS file: /cvsroot/mxbb/mx_bugsbt/bugsbt/modules/bugsbt_view.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** bugsbt_view.php 12 Jul 2007 22:43:56 -0000 1.4 --- bugsbt_view.php 9 Sep 2007 19:35:11 -0000 1.5 *************** *** 87,91 **** if ( ( !$this->auth_user[$bugsbt_row['bug_category_id']]['auth_view'] ) ) { ! $message = $lang['Bug_not_exsist'] . '<br /><br />' . sprintf( $lang['Click_return_bugsbt'], '<a href="' . append_sid( $this->this_mxurl() ) . '">', '</a>' ) . '<br /><br />' . sprintf( $lang['Click_return_index'], '<a href="' . append_sid( $phpbb_root_path . "index.$phpEx" ) . '">', '</a>' ); mx_message_die( GENERAL_MESSAGE, $message ); } --- 87,91 ---- if ( ( !$this->auth_user[$bugsbt_row['bug_category_id']]['auth_view'] ) ) { ! $message = $lang['Bug_not_exsist'] . '<br /><br />' . sprintf( $lang['Click_return_bugsbt'], '<a href="' . mx_append_sid( $this->this_mxurl() ) . '">', '</a>' ) . '<br /><br />' . sprintf( $lang['Click_return_index'], '<a href="' . mx_append_sid( $phpbb_root_path . "index.$phpEx" ) . '">', '</a>' ); mx_message_die( GENERAL_MESSAGE, $message ); } *************** *** 105,110 **** $author_id = $bugsbt_row['bug_author_id']; $approved = $bugsbt_row['approved']; ! $date = create_date( $board_config['default_dateformat'], $bugsbt_row['bug_date'], $board_config['board_timezone'] ); ! $date_updated = create_date( $board_config['default_dateformat'], $bugsbt_row['bug_update_date'], $board_config['board_timezone'] ); $bug_type = isset($lang['bugsbt_type_' . $bugsbt_row['type']]) ? $lang['bugsbt_type_' . $bugsbt_row['type']] : $bugsbt_row['type']; --- 105,110 ---- $author_id = $bugsbt_row['bug_author_id']; $approved = $bugsbt_row['approved']; ! $date = phpBB2::create_date( $board_config['default_dateformat'], $bugsbt_row['bug_date'], $board_config['board_timezone'] ); ! $date_updated = phpBB2::create_date( $board_config['default_dateformat'], $bugsbt_row['bug_update_date'], $board_config['board_timezone'] ); $bug_type = isset($lang['bugsbt_type_' . $bugsbt_row['type']]) ? $lang['bugsbt_type_' . $bugsbt_row['type']] : $bugsbt_row['type']; *************** *** 178,182 **** // Format text and data // ! //$temp_url = append_sid( $this->this_mxurl( "mode=cat&cat=$bug_category_id" ) ); //$build_name = '<a href="' . $temp_url . '" class="gensmall">' . $build_name . '</a>'; --- 178,182 ---- // Format text and data // ! //$temp_url = mx_append_sid( $this->this_mxurl( "mode=cat&cat=$bug_category_id" ) ); //$build_name = '<a href="' . $temp_url . '" class="gensmall">' . $build_name . '</a>'; *************** *** 188,192 **** { $author_name = $bugsbt_row['username']; ! $temp_url = append_sid( $phpbb_root_path . "profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$author_id" ); $author_bugsbt_art = '<a href="' . $temp_url . '" class="gensmall">' . $author_name . '</a>'; } --- 188,192 ---- { $author_name = $bugsbt_row['username']; ! $temp_url = mx_append_sid( $phpbb_root_path . "profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$author_id" ); $author_bugsbt_art = '<a href="' . $temp_url . '" class="gensmall">' . $author_name . '</a>'; } *************** *** 208,212 **** if ( ( $userdata['user_id'] == $author_id && $this->auth_user[$bug_category_id]['auth_edit'] ) || $this->auth_user[$bug_category_id]['auth_mod'] ) { ! $temp_url = append_sid( $this->this_mxurl( "mode=edit&k=" . $bug_id ) ); $edit_img = '<a href="' . $temp_url . '"><img src="' . $images['bugsbt_icon_edit'] . '" alt="' . $lang['Edit_delete_post'] . '" title="' . $lang['Edit_delete_post'] . '" border="0" /></a>'; $edit = '<a href="javascript:editBug(\''.$bug_id.'\');">' . $lang['Edit_delete_post'] . '</a>'; --- 208,212 ---- if ( ( $userdata['user_id'] == $author_id && $this->auth_user[$bug_category_id]['auth_edit'] ) || $this->auth_user[$bug_category_id]['auth_mod'] ) { ! $temp_url = mx_append_sid( $this->this_mxurl( "mode=edit&k=" . $bug_id ) ); $edit_img = '<a href="' . $temp_url . '"><img src="' . $images['bugsbt_icon_edit'] . '" alt="' . $lang['Edit_delete_post'] . '" title="' . $lang['Edit_delete_post'] . '" border="0" /></a>'; $edit = '<a href="javascript:editBug(\''.$bug_id.'\');">' . $lang['Edit_delete_post'] . '</a>'; *************** *** 223,227 **** if ( ( $userdata['user_id'] == $author_id && $this->auth_user[$bug_category_id]['auth_delete'] ) || $this->auth_user[$bug_category_id]['auth_mod'] ) { ! $temp_url = append_sid( $this->this_mxurl( "mode=edit&do=delete&k=" . $bug_id ) ); $delete_img = '<a href="javascript:delete_item(\'' . $temp_url . '\')"><img src="' . $images['bugsbt_icon_delpost'] . '" alt="' . $lang['Edit_delete_post'] . '" title="' . $lang['Edit_delete_post'] . '" border="0" /></a>'; $delete = '<a href="javascript:deleteBug(\''.$bug_id.'\');">' . $lang['Edit_delete_post'] . '</a>'; --- 223,227 ---- if ( ( $userdata['user_id'] == $author_id && $this->auth_user[$bug_category_id]['auth_delete'] ) || $this->auth_user[$bug_category_id]['auth_mod'] ) { ! $temp_url = mx_append_sid( $this->this_mxurl( "mode=edit&do=delete&k=" . $bug_id ) ); $delete_img = '<a href="javascript:delete_item(\'' . $temp_url . '\')"><img src="' . $images['bugsbt_icon_delpost'] . '" alt="' . $lang['Edit_delete_post'] . '" title="' . $lang['Edit_delete_post'] . '" border="0" /></a>'; $delete = '<a href="javascript:deleteBug(\''.$bug_id.'\');">' . $lang['Edit_delete_post'] . '</a>'; *************** *** 238,242 **** if ( !$this->auth_user[$bug_category_id]['auth_view'] || !$bug_title || ( !$approved && !$this->auth_user[$bug_category_id]['auth_mod'] ) ) { ! $message = $lang['Bug_not_exsist'] . '<br /><br />' . sprintf( $lang['Click_return_bugsbt'], '<a href="' . append_sid( $this->this_mxurl() ) . '">', '</a>' ) . '<br /><br />' . sprintf( $lang['Click_return_index'], '<a href="' . append_sid( $phpbb_root_path . "index.$phpEx" ) . '">', '</a>' ); mx_message_die( GENERAL_MESSAGE, $message ); } --- 238,242 ---- if ( !$this->auth_user[$bug_category_id]['auth_view'] || !$bug_title || ( !$approved && !$this->auth_user[$bug_category_id]['auth_mod'] ) ) { ! $message = $lang['Bug_not_exsist'] . '<br /><br />' . sprintf( $lang['Click_return_bugsbt'], '<a href="' . mx_append_sid( $this->this_mxurl() ) . '">', '</a>' ) . '<br /><br />' . sprintf( $lang['Click_return_index'], '<a href="' . mx_append_sid( $phpbb_root_path . "index.$phpEx" ) . '">', '</a>' ); mx_message_die( GENERAL_MESSAGE, $message ); } Index: bugsbt_post.php =================================================================== RCS file: /cvsroot/mxbb/mx_bugsbt/bugsbt/modules/bugsbt_post.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** bugsbt_post.php 5 Aug 2007 22:07:55 -0000 1.5 --- bugsbt_post.php 9 Sep 2007 19:35:11 -0000 1.6 *************** *** 145,149 **** $this->delete_items( $article_id ); $this->_bugsbt(); ! $message = $lang['Bug_Deleted'] . '<br /><br />' . sprintf( $lang['Click_return'], '<a href="' . append_sid( $this->this_mxurl( "mode=cat&cat=" . $cat_id ) ) . '">', '</a>' ); $this->mx_message_die( GENERAL_MESSAGE, $message ); } --- 145,149 ---- $this->delete_items( $article_id ); $this->_bugsbt(); ! $message = $lang['Bug_Deleted'] . '<br /><br />' . sprintf( $lang['Click_return'], '<a href="' . mx_append_sid( $this->this_mxurl( "mode=cat&cat=" . $cat_id ) ) . '">', '</a>' ); $this->mx_message_die( GENERAL_MESSAGE, $message ); } *************** *** 234,238 **** if ( !$mx_request_vars->is_request('article_name') || !$mx_request_vars->is_request('article_desc') || !$mx_request_vars->is_request('message') ) { ! $message = $lang['Empty_fields'] . '<br /><br />' . sprintf( $lang['Empty_fields_return'], '<a href="' . append_sid( $this->this_mxurl( 'mode=add' ) ) . '">', '</a>' ); $this->mx_message_die( GENERAL_ERROR, $message ); } --- 234,238 ---- if ( !$mx_request_vars->is_request('article_name') || !$mx_request_vars->is_request('article_desc') || !$mx_request_vars->is_request('message') ) { ! $message = $lang['Empty_fields'] . '<br /><br />' . sprintf( $lang['Empty_fields_return'], '<a href="' . mx_append_sid( $this->this_mxurl( 'mode=add' ) ) . '">', '</a>' ); $this->mx_message_die( GENERAL_ERROR, $message ); } *************** *** 356,364 **** if ( $approve == 1 ) { ! $message = $lang['Bug_submitted'] . '<br /><br />' . sprintf( $lang['Click_return_bugsbt'], '<a href="' . append_sid( $this->this_mxurl() ) . '">', '</a>' ) . '<br /><br />' . sprintf($lang['Click_return_bug'], '<a href="' . append_sid($this->this_mxurl("mode=article&k=" . $article_id)). '">', '</a>') . '<br /><br />' . sprintf( $lang['Click_return_index'], '<a href="' . append_sid( $mx_root_path . "index.$phpEx" ) . '">', '</a>' ); } else { ! $message = $lang['Bug_submitted_Approve'] . '<br /><br />' . sprintf( $lang['Click_return_bugsbt'], '<a href="' . append_sid( $this->this_mxurl() ) . '">', '</a>' ) . '<br /><br />' . sprintf( $lang['Click_return_index'], '<a href="' . append_sid( $mx_root_path . "index.$phpEx" ) . '">', '</a>' ); } --- 356,364 ---- if ( $approve == 1 ) { ! $message = $lang['Bug_submitted'] . '<br /><br />' . sprintf( $lang['Click_return_bugsbt'], '<a href="' . mx_append_sid( $this->this_mxurl() ) . '">', '</a>' ) . '<br /><br />' . sprintf($lang['Click_return_bug'], '<a href="' . mx_append_sid($this->this_mxurl("mode=article&k=" . $article_id)). '">', '</a>') . '<br /><br />' . sprintf( $lang['Click_return_index'], '<a href="' . mx_append_sid( $mx_root_path . "index.$phpEx" ) . '">', '</a>' ); } else { ! $message = $lang['Bug_submitted_Approve'] . '<br /><br />' . sprintf( $lang['Click_return_bugsbt'], '<a href="' . mx_append_sid( $this->this_mxurl() ) . '">', '</a>' ) . '<br /><br />' . sprintf( $lang['Click_return_index'], '<a href="' . mx_append_sid( $mx_root_path . "index.$phpEx" ) . '">', '</a>' ); } *************** *** 531,535 **** 'HTML_STATUS' => $html_status, ! 'BBCODE_STATUS' => sprintf($bbcode_status, '<a href="' . PHPBB_URL . append_sid("faq.$phpEx?mode=bbcode") . '" target="_phpbbcode">', '</a>'), 'SMILIES_STATUS' => $smilies_status, 'LINKS_STATUS' => $links_status, --- 531,535 ---- 'HTML_STATUS' => $html_status, ! 'BBCODE_STATUS' => sprintf($bbcode_status, '<a href="' . PHPBB_URL . mx_append_sid("faq.$phpEx?mode=bbcode") . '" target="_phpbbcode">', '</a>'), 'SMILIES_STATUS' => $smilies_status, 'LINKS_STATUS' => $links_status, Index: bugsbt_post_comment.php =================================================================== RCS file: /cvsroot/mxbb/mx_bugsbt/bugsbt/modules/bugsbt_post_comment.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** bugsbt_post_comment.php 12 Jul 2007 22:49:28 -0000 1.1 --- bugsbt_post_comment.php 9 Sep 2007 19:35:11 -0000 1.2 *************** *** 71,75 **** if ( !$userdata['session_logged_in'] ) { ! // mx_redirect(append_sid($mx_root_path . "login.$phpEx?redirect=".$this->this_mxurl("action=post_comment&item_id=" . $item_id), true)); } --- 71,75 ---- if ( !$userdata['session_logged_in'] ) { ! // mx_redirect(mx_append_sid($mx_root_path . "login.$phpEx?redirect=".$this->this_mxurl("action=post_comment&item_id=" . $item_id), true)); } *************** *** 182,186 **** $this->_bugsbt(); ! $message = $lang['Comment_deleted'] . '<br /><br />' . sprintf( $lang['Click_return_bug'], '<a href="' . append_sid( $this->this_mxurl( "mode=bug&k=$item_id" ) ) . '">', '</a>' ); mx_message_die( GENERAL_MESSAGE, $message ); } --- 182,186 ---- $this->_bugsbt(); ! $message = $lang['Comment_deleted'] . '<br /><br />' . sprintf( $lang['Click_return_bug'], '<a href="' . mx_append_sid( $this->this_mxurl( "mode=bug&k=$item_id" ) ) . '">', '</a>' ); mx_message_die( GENERAL_MESSAGE, $message ); } *************** *** 199,203 **** $this->update_add_comment($bug_data, $item_id, $cid, '', '', $html_on, $bbcode_on, $smilies_on); ! $message = $lang['Comment_posted'] . '<br /><br />' . sprintf( $lang['Click_return_bug'], '<a href="' . append_sid( $this->this_mxurl( 'mode=bug&k=' . $item_id ) ) . '">', '</a>' ); mx_message_die( GENERAL_MESSAGE, $message ); } --- 199,203 ---- $this->update_add_comment($bug_data, $item_id, $cid, '', '', $html_on, $bbcode_on, $smilies_on); ! $message = $lang['Comment_posted'] . '<br /><br />' . sprintf( $lang['Click_return_bug'], '<a href="' . mx_append_sid( $this->this_mxurl( 'mode=bug&k=' . $item_id ) ) . '">', '</a>' ); mx_message_die( GENERAL_MESSAGE, $message ); } *************** *** 291,295 **** $template->assign_vars( array( 'HTML_STATUS' => $html_status, ! 'BBCODE_STATUS' => sprintf($bbcode_status, '<a href="' . PHPBB_URL . append_sid("faq.$phpEx?mode=bbcode") . '" target="_phpbbcode">', '</a>'), 'SMILIES_STATUS' => $smilies_status, 'LINKS_STATUS' => $links_status, --- 291,295 ---- $template->assign_vars( array( 'HTML_STATUS' => $html_status, ! 'BBCODE_STATUS' => sprintf($bbcode_status, '<a href="' . PHPBB_URL . mx_append_sid("faq.$phpEx?mode=bbcode") . '" target="_phpbbcode">', '</a>'), 'SMILIES_STATUS' => $smilies_status, 'LINKS_STATUS' => $links_status, *************** *** 360,366 **** 'L_STYLES_TIP' => $lang['Styles_tip'], ! 'U_INDEX' => append_sid( $mx_root_path . 'index.' . $phpEx ), ! 'U_DOWNLOAD_HOME' => append_sid( $this->this_mxurl() ), ! 'U_FILE_NAME' => append_sid( $this->this_mxurl( 'mode=bug&item_id=' . $item_id ) ), 'S_POST_ACTION' => $bugsbt_action_url, 'CID' => $mx_request_vars->request('cid', MX_TYPE_INT, ''), --- 360,366 ---- 'L_STYLES_TIP' => $lang['Styles_tip'], ! 'U_INDEX' => mx_append_sid( $mx_root_path . 'index.' . $phpEx ), ! 'U_DOWNLOAD_HOME' => mx_append_sid( $this->this_mxurl() ), ! 'U_FILE_NAME' => mx_append_sid( $this->this_mxurl( 'mode=bug&item_id=' . $item_id ) ), 'S_POST_ACTION' => $bugsbt_action_url, 'CID' => $mx_request_vars->request('cid', MX_TYPE_INT, ''), |