|
From: Jon O. <jon...@us...> - 2007-04-28 20:04:39
|
Update of /cvsroot/mxbb/mx_bugsbt/bugsbt/modules
In directory sc8-pr-cvs16:/tmp/cvs-serv28146/modules
Modified Files:
bugsbt_index.php bugsbt_post.php bugsbt_product.php
bugsbt_view.php
Log Message:
fixes
Index: bugsbt_index.php
===================================================================
RCS file: /cvsroot/mxbb/mx_bugsbt/bugsbt/modules/bugsbt_index.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** bugsbt_index.php 15 Feb 2007 12:43:50 -0000 1.1
--- bugsbt_index.php 28 Apr 2007 20:04:35 -0000 1.2
***************
*** 94,97 ****
--- 94,99 ----
'L_FOLDER' => $lang['sd_Folder'],
+ 'L_QUICK_LINKS' => $lang['bugsbt_quick_links'],
+
'VIEW_DOC' => ' - <a href="'.$this->this_mxurl('mode=view').'" >[' . $lang['sd_Doc_view'] . ']</a>',
));
Index: bugsbt_product.php
===================================================================
RCS file: /cvsroot/mxbb/mx_bugsbt/bugsbt/modules/bugsbt_product.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** bugsbt_product.php 15 Feb 2007 12:43:50 -0000 1.1
--- bugsbt_product.php 28 Apr 2007 20:04:35 -0000 1.2
***************
*** 35,42 ****
$start = $mx_request_vars->get('start', MX_TYPE_INT, 0);
$category_id = $mx_request_vars->request('cat', MX_TYPE_INT, '');
if ( empty( $category_id ) )
{
! mx_message_die( GENERAL_MESSAGE, $lang['Product_not_exsist'] );
}
--- 35,43 ----
$start = $mx_request_vars->get('start', MX_TYPE_INT, 0);
$category_id = $mx_request_vars->request('cat', MX_TYPE_INT, '');
+ $limit = $mx_request_vars->request('limit', MX_TYPE_INT, '');
if ( empty( $category_id ) )
{
! //mx_message_die( GENERAL_MESSAGE, $lang['Product_not_exsist'] );
}
***************
*** 49,90 ****
{
case 'Id':
! $this->sort_method = 't.article_id';
! $this->sort_method_extra = 't.article_type' . " DESC, " ;
break;
case 'Latest':
! $this->sort_method = 't.article_date';
! $this->sort_method_extra = 't.article_type' . " DESC, " ;
break;
! case 'Toprated':
! $this->sort_method = 'rating';
! $this->sort_method_extra = 't.article_type' . " DESC, " ;
break;
case 'Most_popular':
$this->sort_method = 't.views';
! $this->sort_method_extra = 't.article_type' . " DESC, " ;
! break;
! case 'Userrank':
! $this->sort_method = 'u.user_rank';
! $this->sort_method_extra = 't.article_type' . " DESC, " ;
break;
case 'Alphabetic':
! $this->sort_method = 't.article_title';
! $this->sort_method_extra = 't.article_type' . " DESC, " ;
break;
}
}
! if ( isset( $_REQUEST['sort_order'] ) )
! {
! switch ( $_REQUEST['sort_order'] )
! {
! case 'ASC':
! $this->sort_order = 'ASC';
! break;
! case 'DESC':
! $this->sort_order = 'DESC';
! break;
! }
! }
// =======================================================
--- 50,76 ----
{
case 'Id':
! $this->sort_method = 't.bug_id';
! $this->sort_method_extra = '';
break;
case 'Latest':
! $this->sort_method = 't.bug_date';
! $this->sort_method_extra = '';
break;
! case 'Last_updated':
! $this->sort_method = 't.bug_update_date';
! $this->sort_method_extra = '';
break;
case 'Most_popular':
$this->sort_method = 't.views';
! $this->sort_method_extra = '';
break;
case 'Alphabetic':
! $this->sort_method = 't.bug_title';
! $this->sort_method_extra = '';
break;
}
}
! $this->sort_order = 'DESC';
// =======================================================
***************
*** 105,109 ****
}
! if ( ( !$this->auth_user[$category_id]['auth_view'] ) && ( !$show_category ) )
{
if ( !$userdata['session_logged_in'] )
--- 91,95 ----
}
! if ( ( $category_id && !$this->auth_user[$category_id]['auth_view'] ) && ( !$show_category ) )
{
if ( !$userdata['session_logged_in'] )
***************
*** 119,123 ****
{
$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 ----
{
$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 );
}
***************
*** 131,135 ****
//
$message = $lang['No_cat_comments_forum_id'];
! mx_message_die(GENERAL_MESSAGE, $message);
}
--- 117,121 ----
//
$message = $lang['No_cat_comments_forum_id'];
! //mx_message_die(GENERAL_MESSAGE, $message);
}
***************
*** 150,153 ****
--- 136,140 ----
'L_STATUS' => $lang['bugsbt_Bug_status'],
'L_REPORTED' => $lang['bugsbt_Bug_reported'],
+ 'L_UPDATED' => $lang['Date_updated'],
'U_CAT' => append_sid( $this->this_mxurl( 'mode=cat&cat=' . $category_id ) ) )
***************
*** 157,166 ****
// assign var for top navigation
// ===================================================
! $this->generate_navigation( $category_id );
//
// User authorisation levels output
//
! $this->auth_can($category_id);
//
--- 144,153 ----
// assign var for top navigation
// ===================================================
! //$this->generate_navigation( $category_id );
//
// User authorisation levels output
//
! //$this->auth_can($category_id);
//
***************
*** 175,179 ****
// Get articles
//
! $this->list_items( $category_id );
//
--- 162,166 ----
// Get articles
//
! $this->list_items( $category_id, '', '' ,'', $limit );
//
***************
*** 181,185 ****
//
//$this->generate_jumpbox( 'auth_view', $category_id, $category_id, true );
! $this->generate_jumpbox( 0, 0, array( $category_id => 1 ));
}
}
--- 168,172 ----
//
//$this->generate_jumpbox( 'auth_view', $category_id, $category_id, true );
! //$this->generate_jumpbox( 0, 0, array( $category_id => 1 ));
}
}
Index: bugsbt_view.php
===================================================================
RCS file: /cvsroot/mxbb/mx_bugsbt/bugsbt/modules/bugsbt_view.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** bugsbt_view.php 15 Feb 2007 12:43:51 -0000 1.1
--- bugsbt_view.php 28 Apr 2007 20:04:35 -0000 1.2
***************
*** 105,108 ****
--- 105,109 ----
$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'];
***************
*** 253,256 ****
--- 254,258 ----
'L_BUG_DESCRIPTION' => $lang['Bug_description'],
'L_BUG_DATE' => $lang['Date'],
+ 'L_BUG_UPDATED_DATE' => $lang['Date_updated'],
'L_BUG_TYPE' => $lang['Bug_type'],
'L_BUG_PRODUCT' => $lang['Product'],
***************
*** 271,274 ****
--- 273,277 ----
'BUG_DESCRIPTION' => $bug_description,
'BUG_DATE' => $date,
+ 'BUG_UPDATED_DATE' => $date_updated,
'BUG_TYPE' => $bug_type,
Index: bugsbt_post.php
===================================================================
RCS file: /cvsroot/mxbb/mx_bugsbt/bugsbt/modules/bugsbt_post.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** bugsbt_post.php 15 Feb 2007 12:43:50 -0000 1.1
--- bugsbt_post.php 28 Apr 2007 20:04:35 -0000 1.2
***************
*** 258,263 ****
$approve = $this->auth_user[$cat_id]['auth_approval'] || $this->auth_user[$cat_id]['auth_mod'] ? 1 : 0; // approved
! $sql = "INSERT INTO " . BUGSBT_BUGS_TABLE . " ( bug_category_id, bug_title, bug_description, bug_date, bug_author_id, username, bbcode_uid, bug_body, bug_type, bug_closed, approved, views )
! VALUES ( '$cat_id', '" . str_replace( "\'", "''", $article_title ) . "', '" . str_replace( "\'", "''", $article_description ) . "', '$date', '$author_id', '" . str_replace( "\'", "''", $username ) . "', '$bbcode_uid', '" . str_replace( "\'", "''", $article_text ) . "', '$type_id', '$closed' , '$approve', '0')";
if ( !( $results = $db->sql_query( $sql ) ) )
--- 258,263 ----
$approve = $this->auth_user[$cat_id]['auth_approval'] || $this->auth_user[$cat_id]['auth_mod'] ? 1 : 0; // approved
! $sql = "INSERT INTO " . BUGSBT_BUGS_TABLE . " ( bug_category_id, bug_title, bug_description, bug_date, bug_update_date, bug_author_id, username, bbcode_uid, bug_body, bug_type, bug_closed, approved, views )
! VALUES ( '$cat_id', '" . str_replace( "\'", "''", $article_title ) . "', '" . str_replace( "\'", "''", $article_description ) . "', '$date', '$date', '$author_id', '" . str_replace( "\'", "''", $username ) . "', '$bbcode_uid', '" . str_replace( "\'", "''", $article_text ) . "', '$type_id', '$closed' , '$approve', '0')";
if ( !( $results = $db->sql_query( $sql ) ) )
***************
*** 304,307 ****
--- 304,308 ----
bug_description = '" . str_replace( "\'", "''", $article_description ) . "',
bug_body = '" . str_replace( "\'", "''", $article_text ) . "',
+ bug_update_date = '" . $date . "',
bug_type = '" . $type_id . "',
bug_closed = '" . $closed . "',
|