[ Index ]

PHP Cross Reference of MantisBT

title

Body

[close]

/ -> bug_actiongroup_ext_page.php (source)

   1  <?php
   2  # MantisBT - A PHP based bugtracking system
   3  
   4  # MantisBT is free software: you can redistribute it and/or modify
   5  # it under the terms of the GNU General Public License as published by
   6  # the Free Software Foundation, either version 2 of the License, or
   7  # (at your option) any later version.
   8  #
   9  # MantisBT is distributed in the hope that it will be useful,
  10  # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12  # GNU General Public License for more details.
  13  #
  14  # You should have received a copy of the GNU General Public License
  15  # along with MantisBT.  If not, see <http://www.gnu.org/licenses/>.
  16  
  17  /**
  18   * @package MantisBT
  19   * @copyright Copyright (C) 2000 - 2002  Kenzaburo Ito - kenito@300baud.org
  20   * @copyright Copyright (C) 2002 - 2010  MantisBT Team - mantisbt-dev@lists.sourceforge.net
  21   * @link http://www.mantisbt.org
  22   *
  23   * @uses core.php
  24   * @uses authentication_api.php
  25   * @uses bug_group_action_api.php
  26   * @uses form_api.php
  27   * @uses gpc_api.php
  28   * @uses print_api.php
  29   * @uses string_api.php
  30   * @uses utility_api.php
  31   */
  32  
  33  require_once ( 'core.php' );
  34  require_api( 'authentication_api.php' );
  35  require_api( 'bug_group_action_api.php' );
  36  require_api( 'form_api.php' );
  37  require_api( 'gpc_api.php' );
  38  require_api( 'print_api.php' );
  39  require_api( 'string_api.php' );
  40  require_api( 'utility_api.php' );
  41  
  42  auth_ensure_user_authenticated();
  43  
  44  $f_action = gpc_get_string( 'action' );
  45  $f_bug_arr = gpc_get_int_array( 'bug_arr', array() );
  46  
  47  # redirect to view issues if nothing is selected
  48  if ( is_blank( $f_action ) || ( 0 == count( $f_bug_arr ) ) ) {
  49      print_header_redirect( 'view_all_bug_page.php' );
  50  }
  51  
  52  # redirect to view issues page if action doesn't have ext_* prefix.
  53  # This should only occur if this page is called directly.
  54  $t_external_action_prefix = 'EXT_';
  55  if ( strpos( $f_action, $t_external_action_prefix ) !== 0 ) {
  56      print_header_redirect( 'view_all_bug_page.php' );
  57  }
  58  
  59  $t_external_action = utf8_strtolower( utf8_substr( $f_action, utf8_strlen( $t_external_action_prefix ) ) );
  60  $t_form_fields_page = 'bug_actiongroup_' . $t_external_action . '_inc.php';
  61  $t_form_name = 'bug_actiongroup_' . $t_external_action;
  62  
  63  bug_group_action_print_top();
  64  ?>
  65  
  66      <br />
  67  
  68      <div align="center">
  69      <form method="post" action="bug_actiongroup_ext.php">
  70  <?php echo form_security_field( $t_form_name ); ?>
  71          <input type="hidden" name="action" value="<?php echo string_attribute( $t_external_action ) ?>" />
  72  <table class="width75" cellspacing="1">
  73      <?php
  74      bug_group_action_print_title( $t_external_action );
  75      bug_group_action_print_hidden_fields( $f_bug_arr );
  76      bug_group_action_print_action_fields( $t_external_action );
  77      ?>
  78  </table>
  79      </form>
  80      </div>
  81  
  82      <br />
  83  
  84  <?php
  85  bug_group_action_print_bug_list( $f_bug_arr );
  86  bug_group_action_print_bottom();


Generated: Sat Mar 6 17:17:35 2010 Cross-referenced by PHPXref 0.7