Update of /cvsroot/mantisbt/mantisbt
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv4903
Modified Files:
bug_report_advanced_page.php bug_report_page.php
bug_update_advanced_page.php bug_update_page.php
bug_view_advanced_page.php bug_view_page.php
config_defaults_inc.php my_view_page.php print_bug_page.php
view_all_bug_page.php
Log Message:
Fixed #4460: Show last visited N issues.
Index: bug_view_advanced_page.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/bug_view_advanced_page.php,v
retrieving revision 1.78
retrieving revision 1.79
diff -u -d -r1.78 -r1.79
--- bug_view_advanced_page.php 9 Aug 2006 07:55:01 -0000 1.78
+++ bug_view_advanced_page.php 12 Aug 2006 08:04:13 -0000 1.79
@@ -1,7 +1,7 @@
<?php
# Mantis - a php based bugtracking system
# Copyright (C) 2000 - 2002 Kenzaburo Ito -
kenito-J7RQz27tXwtAfugRpC6u6w@xxxxxxxxxxxxxxxx
- # Copyright (C) 2002 - 2004 Mantis Team -
mantisbt-dev-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx
+ # Copyright (C) 2002 - 2006 Mantis Team -
mantisbt-dev-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx
# This program is distributed under the terms and conditions of the GPL
# See the README and LICENSE files for details
@@ -19,6 +19,7 @@
require_once( $t_core_path.'compress_api.php' );
require_once( $t_core_path.'date_api.php' );
require_once( $t_core_path.'relationship_api.php' );
+ require_once( $t_core_path.'last_visited_api.php' );
$f_bug_id = gpc_get_int( 'bug_id' );
$f_history = gpc_get_bool( 'history', config_get(
'history_default_visible' ) );
@@ -44,6 +45,8 @@
html_page_top1( bug_format_summary( $f_bug_id, SUMMARY_CAPTION ) );
html_page_top2();
+ print_recently_visited();
+
$t_access_level_needed = config_get( 'view_history_threshold' );
$t_can_view_history = access_has_bug_level( $t_access_level_needed,
$f_bug_id );
@@ -536,4 +539,6 @@
}
html_page_bottom1( __FILE__ );
+
+ last_visited_issue( $f_bug_id );
?>
Index: config_defaults_inc.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/config_defaults_inc.php,v
retrieving revision 1.306
retrieving revision 1.307
diff -u -d -r1.306 -r1.307
--- config_defaults_inc.php 9 Aug 2006 07:55:01 -0000 1.306
+++ config_defaults_inc.php 12 Aug 2006 08:04:13 -0000 1.307
@@ -1,7 +1,7 @@
<?php
# Mantis - a php based bugtracking system
# Copyright (C) 2000 - 2002 Kenzaburo Ito -
kenito-J7RQz27tXwtAfugRpC6u6w@xxxxxxxxxxxxxxxx
- # Copyright (C) 2002 - 2004 Mantis Team -
mantisbt-dev-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx
+ # Copyright (C) 2002 - 2006 Mantis Team -
mantisbt-dev-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx
# This program is distributed under the terms and conditions of the GPL
# See the README and LICENSE files for details
@@ -1749,4 +1749,14 @@
# URL under which the wiki engine is hosted. Must be on the same
server.
$g_wiki_engine_url = $t_protocol . '://' . $t_host . '/%wiki_engine%/';
+
+ #####################
+ # Recently Visited
+ #####################
+
+ # Whether to show the most recently visited issues or not. At the
moment we always track them even if this flag is off.
+ $g_recently_visited = ON;
+
+ # The maximum number of issues to keep in the recently visited list.
+ $g_recently_visited_count = 5;
?>
\ No newline at end of file
Index: print_bug_page.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/print_bug_page.php,v
retrieving revision 1.57
retrieving revision 1.58
diff -u -d -r1.57 -r1.58
--- print_bug_page.php 1 Jan 2006 02:56:39 -0000 1.57
+++ print_bug_page.php 12 Aug 2006 08:04:13 -0000 1.58
@@ -1,7 +1,7 @@
<?php
# Mantis - a php based bugtracking system
# Copyright (C) 2000 - 2002 Kenzaburo Ito -
kenito-J7RQz27tXwtAfugRpC6u6w@xxxxxxxxxxxxxxxx
- # Copyright (C) 2002 - 2004 Mantis Team -
mantisbt-dev-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx
+ # Copyright (C) 2002 - 2006 Mantis Team -
mantisbt-dev-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx
# This program is distributed under the terms and conditions of the GPL
# See the README and LICENSE files for details
@@ -18,6 +18,7 @@
require_once( $t_core_path.'custom_field_api.php' );
require_once( $t_core_path.'date_api.php' );
require_once( $t_core_path.'string_api.php' );
+ require_once( $t_core_path.'last_visited_api.php' );
?>
<?php
$f_bug_id = gpc_get_int( 'bug_id' );
@@ -339,4 +340,8 @@
</tr>
</table>
-<?php include( dirname( __FILE__ ) . DIRECTORY_SEPARATOR .
'print_bugnote_inc.php' ) ?>
+<?php
+ include( dirname( __FILE__ ) . DIRECTORY_SEPARATOR .
'print_bugnote_inc.php' ) ;
+
+ last_visited_issue( $f_bug_id );
+?>
Index: bug_report_page.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/bug_report_page.php,v
retrieving revision 1.58
retrieving revision 1.59
diff -u -d -r1.58 -r1.59
--- bug_report_page.php 18 May 2006 13:00:28 -0000 1.58
+++ bug_report_page.php 12 Aug 2006 08:04:13 -0000 1.59
@@ -1,7 +1,7 @@
<?php
# Mantis - a php based bugtracking system
# Copyright (C) 2000 - 2002 Kenzaburo Ito -
kenito-J7RQz27tXwtAfugRpC6u6w@xxxxxxxxxxxxxxxx
- # Copyright (C) 2002 - 2004 Mantis Team -
mantisbt-dev-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx
+ # Copyright (C) 2002 - 2006 Mantis Team -
mantisbt-dev-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx
# This program is distributed under the terms and conditions of the GPL
# See the README and LICENSE files for details
@@ -18,6 +18,7 @@
require_once( $t_core_path.'file_api.php' );
require_once( $t_core_path.'custom_field_api.php' );
+ require_once( $t_core_path.'last_visited_api.php' );
$f_master_bug_id = gpc_get_int( 'm_id', 0 );
@@ -92,6 +93,8 @@
html_page_top1( lang_get( 'report_bug_link' ) );
html_page_top2();
+
+ print_recently_visited();
?>
<br />
Index: bug_report_advanced_page.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/bug_report_advanced_page.php,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -d -r1.56 -r1.57
--- bug_report_advanced_page.php 18 May 2006 13:00:27 -0000 1.56
+++ bug_report_advanced_page.php 12 Aug 2006 08:04:13 -0000 1.57
@@ -1,7 +1,7 @@
<?php
# Mantis - a php based bugtracking system
# Copyright (C) 2000 - 2002 Kenzaburo Ito -
kenito-J7RQz27tXwtAfugRpC6u6w@xxxxxxxxxxxxxxxx
- # Copyright (C) 2002 - 2004 Mantis Team -
mantisbt-dev-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx
+ # Copyright (C) 2002 - 2006 Mantis Team -
mantisbt-dev-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx
# This program is distributed under the terms and conditions of the GPL
# See the README and LICENSE files for details
@@ -18,6 +18,7 @@
require_once( $t_core_path.'file_api.php' );
require_once( $t_core_path.'custom_field_api.php' );
+ require_once( $t_core_path.'last_visited_api.php' );
$f_master_bug_id = gpc_get_int( 'm_id', 0 );
@@ -108,6 +109,8 @@
html_page_top1( lang_get( 'report_bug_link' ) );
html_page_top2();
+
+ print_recently_visited();
?>
<br />
Index: bug_update_advanced_page.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/bug_update_advanced_page.php,v
retrieving revision 1.88
retrieving revision 1.89
diff -u -d -r1.88 -r1.89
--- bug_update_advanced_page.php 18 May 2006 13:00:28 -0000 1.88
+++ bug_update_advanced_page.php 12 Aug 2006 08:04:13 -0000 1.89
@@ -1,18 +1,14 @@
<?php
# Mantis - a php based bugtracking system
# Copyright (C) 2000 - 2002 Kenzaburo Ito -
kenito-J7RQz27tXwtAfugRpC6u6w@xxxxxxxxxxxxxxxx
- # Copyright (C) 2002 - 2004 Mantis Team -
mantisbt-dev-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx
+ # Copyright (C) 2002 - 2006 Mantis Team -
mantisbt-dev-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx
# This program is distributed under the terms and conditions of the GPL
# See the README and LICENSE files for details
# --------------------------------------------------------
# $Id$
# --------------------------------------------------------
-?>
-<?php
- # Show the advanced update bug options
-?>
-<?php
+
require_once( 'core.php' );
$t_core_path = config_get( 'core_path' );
@@ -21,6 +17,7 @@
require_once( $t_core_path.'bug_api.php' );
require_once( $t_core_path.'custom_field_api.php' );
require_once( $t_core_path.'date_api.php' );
+ require_once( $t_core_path.'last_visited_api.php' );
?>
<?php
$f_bug_id = gpc_get_int( 'bug_id' );
@@ -47,9 +44,11 @@
access_ensure_bug_level( config_get( 'update_bug_threshold' ),
$f_bug_id );
+ html_page_top1( bug_format_summary( $f_bug_id, SUMMARY_CAPTION ) );
+ html_page_top2();
+
+ print_recently_visited();
?>
-<?php html_page_top1( bug_format_summary( $f_bug_id, SUMMARY_CAPTION ) ) ?>
-<?php html_page_top2() ?>
<br />
<form method="post" action="bug_update.php">
@@ -527,6 +526,9 @@
</table>
</form>
-<?php include( dirname( __FILE__ ) . DIRECTORY_SEPARATOR .
'bugnote_view_inc.php' ); ?>
+<?php
+ include( dirname( __FILE__ ) . DIRECTORY_SEPARATOR .
'bugnote_view_inc.php' );
+ html_page_bottom1( __FILE__ );
-<?php html_page_bottom1( __FILE__ ) ?>
+ last_visited_issue( $f_bug_id );
+?>
Index: my_view_page.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/my_view_page.php,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- my_view_page.php 24 Jan 2006 03:50:05 -0000 1.13
+++ my_view_page.php 12 Aug 2006 08:04:13 -0000 1.14
@@ -16,6 +16,7 @@
require_once( $t_core_path . 'compress_api.php' );
require_once( $t_core_path . 'filter_api.php' );
+ require_once( $t_core_path . 'last_visited_api.php' );
auth_ensure_user_authenticated();
@@ -30,6 +31,8 @@
}
html_page_top2();
+
+ print_recently_visited();
$f_page_number = gpc_get_int( 'page_number', 1 );
Index: bug_view_page.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/bug_view_page.php,v
retrieving revision 1.79
retrieving revision 1.80
diff -u -d -r1.79 -r1.80
--- bug_view_page.php 9 Aug 2006 07:55:01 -0000 1.79
+++ bug_view_page.php 12 Aug 2006 08:04:13 -0000 1.80
@@ -1,7 +1,7 @@
<?php
# Mantis - a php based bugtracking system
# Copyright (C) 2000 - 2002 Kenzaburo Ito -
kenito-J7RQz27tXwtAfugRpC6u6w@xxxxxxxxxxxxxxxx
- # Copyright (C) 2002 - 2004 Mantis Team -
mantisbt-dev-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx
+ # Copyright (C) 2002 - 2006 Mantis Team -
mantisbt-dev-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx
# This program is distributed under the terms and conditions of the GPL
# See the README and LICENSE files for details
@@ -21,6 +21,7 @@
require_once( $t_core_path.'file_api.php' );
require_once( $t_core_path.'date_api.php' );
require_once( $t_core_path.'relationship_api.php' );
+ require_once( $t_core_path.'last_visited_api.php' );
?>
<?php
$f_bug_id = gpc_get_int( 'bug_id' );
@@ -48,9 +49,12 @@
compress_enable();
$t_bugslist = gpc_get_cookie( config_get( 'bug_list_cookie' ), false );
+
+ html_page_top1( bug_format_summary( $f_bug_id, SUMMARY_CAPTION ) );
+ html_page_top2();
+
+ print_recently_visited();
?>
-<?php html_page_top1( bug_format_summary( $f_bug_id, SUMMARY_CAPTION ) ) ?>
-<?php html_page_top2() ?>
<br />
<table class="width100" cellspacing="1">
@@ -442,4 +446,6 @@
}
html_page_bottom1( __FILE__ );
-?>
+
+ last_visited_issue( $f_bug_id );
+?>
\ No newline at end of file
Index: bug_update_page.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/bug_update_page.php,v
retrieving revision 1.91
retrieving revision 1.92
diff -u -d -r1.91 -r1.92
--- bug_update_page.php 18 May 2006 13:00:28 -0000 1.91
+++ bug_update_page.php 12 Aug 2006 08:04:13 -0000 1.92
@@ -1,18 +1,14 @@
<?php
# Mantis - a php based bugtracking system
# Copyright (C) 2000 - 2002 Kenzaburo Ito -
kenito-J7RQz27tXwtAfugRpC6u6w@xxxxxxxxxxxxxxxx
- # Copyright (C) 2002 - 2004 Mantis Team -
mantisbt-dev-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx
+ # Copyright (C) 2002 - 2006 Mantis Team -
mantisbt-dev-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx
# This program is distributed under the terms and conditions of the GPL
# See the README and LICENSE files for details
# --------------------------------------------------------
# $Id$
# --------------------------------------------------------
-?>
-<?php
- # Show the simple update bug options
-?>
-<?php
+
require_once( 'core.php' );
$t_core_path = config_get( 'core_path' );
@@ -21,8 +17,8 @@
require_once( $t_core_path.'bug_api.php' );
require_once( $t_core_path.'custom_field_api.php' );
require_once( $t_core_path.'date_api.php' );
-?>
-<?php
+ require_once( $t_core_path.'last_visited_api.php' );
+
$f_bug_id = gpc_get_int( 'bug_id' );
$t_bug = bug_prepare_edit( bug_get( $f_bug_id, true ) );
@@ -48,9 +44,12 @@
access_ensure_bug_level( config_get( 'update_bug_threshold' ),
$f_bug_id );
$t_bug = bug_prepare_edit( bug_get( $f_bug_id, true ) );
+
+ html_page_top1( bug_format_summary( $f_bug_id, SUMMARY_CAPTION ) );
+ html_page_top2();
+
+ print_recently_visited();
?>
-<?php html_page_top1( bug_format_summary( $f_bug_id, SUMMARY_CAPTION ) ) ?>
-<?php html_page_top2() ?>
<br />
<form method="post" action="bug_update.php">
@@ -423,6 +422,9 @@
</table>
</form>
-<?php include( dirname( __FILE__ ) . DIRECTORY_SEPARATOR .
'bugnote_view_inc.php' ); ?>
+<?php
+ include( dirname( __FILE__ ) . DIRECTORY_SEPARATOR .
'bugnote_view_inc.php' );
+ html_page_bottom1( __FILE__ );
-<?php html_page_bottom1( __FILE__ ) ?>
+ last_visited_issue( $f_bug_id );
+?>
Index: view_all_bug_page.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/view_all_bug_page.php,v
retrieving revision 1.60
retrieving revision 1.61
diff -u -d -r1.60 -r1.61
--- view_all_bug_page.php 29 Jan 2005 02:26:48 -0000 1.60
+++ view_all_bug_page.php 12 Aug 2006 08:04:13 -0000 1.61
@@ -20,6 +20,7 @@
require_once( $t_core_path.'compress_api.php' );
require_once( $t_core_path.'filter_api.php' );
+ require_once( $t_core_path.'last_visited_api.php' );
?>
<?php auth_ensure_user_authenticated() ?>
<?php
@@ -51,6 +52,8 @@
html_page_top2();
+ print_recently_visited();
+
include( dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'view_all_inc.php'
);
html_page_bottom1( __FILE__ );
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
|