# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with MantisBT.  If not, see <http://www.gnu.org/licenses/>.
/**
 * @package MantisBT
 * @copyright Copyright (C) 2000 - 2002  Kenzaburo Ito - kenito@300baud.org
 * @copyright Copyright (C) 2002 - 2012  MantisBT Team - mantisbt-dev@lists.sourceforge.net
 * @link http://www.mantisbt.org
 */
require_once 'core.php';
require_once 'bug_group_action_api.php';
$t_external_action = utf8_strtolower(utf8_substr($f_action, utf8_strlen($t_external_action_prefix)));
$t_form_name = 'bug_actiongroup_' . $t_external_action;
bug_group_action_init($t_external_action);
bug_group_action_print_top();
?>

	<br />

	<div align="center">
	<form method="post" action="bug_actiongroup_ext.php">
<?php 
echo form_security_field($t_form_name);
?>
		<input type="hidden" name="action" value="<?php 
echo string_attribute($t_external_action);
?>
" />
<table class="width75" cellspacing="1">
示例#2
0
require_api( 'lang_api.php' );
require_api( 'print_api.php' );
require_api( 'string_api.php' );

auth_ensure_user_authenticated();

helper_begin_long_process();

$f_action = gpc_get_string( 'action' );
$f_bug_arr	= gpc_get_int_array( 'bug_arr', array() );

$t_form_name = 'bug_actiongroup_' . $f_action;

form_security_validate( $t_form_name );

bug_group_action_init( $f_action );

# group bugs by project
$t_projects_bugs = array();
foreach( $f_bug_arr as $t_bug_id ) {
	bug_ensure_exists( $t_bug_id );
	$t_bug = bug_get( $t_bug_id, true );

	if ( isset( $t_projects_bugs[$t_bug->project_id] ) ) {
	  $t_projects_bugs[$t_bug->project_id][] = $t_bug_id;
	} else {
	  $t_projects_bugs[$t_bug->project_id] = array( $t_bug_id );
	}
}

$t_failed_ids = array();