~ubuntu-branches/ubuntu/natty/mantis/natty-updates

« back to all changes in this revision

Viewing changes to bug_actiongroup_ext_page.php

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2011-09-15 08:13:36 UTC
  • Revision ID: package-import@ubuntu.com-20110915081336-vyi8dvujbfimq0jh
Tags: 1.1.8+dfsg-10squeeze1build0.11.04.1
fake sync from Debian

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
 
26
26
        require_once( $t_core_path.'bug_group_action_api.php' );
27
27
 
28
 
        auth_ensure_user_authenticated();
29
 
 
30
 
        $f_action = gpc_get_string( 'action' );
31
 
        $f_bug_arr = gpc_get_int_array( 'bug_arr', array() );
32
 
 
33
 
        # redirect to view issues if nothing is selected
34
 
        if ( is_blank( $f_action ) || ( 0 == sizeof( $f_bug_arr ) ) ) {
35
 
                print_header_redirect( 'view_all_bug_page.php' );
36
 
        }
37
 
 
38
 
  # redirect to view issues page if action doesn't have ext_* prefix.
39
 
  # This should only occur if this page is called directly.
40
 
        $t_external_action_prefix = 'EXT_';
41
 
        if ( strpos( $f_action, $t_external_action_prefix ) !== 0 ) {
42
 
                print_header_redirect( 'view_all_bug_page.php' );
43
 
  }
44
28
 
45
29
        $t_external_action = strtolower( substr( $f_action, strlen( $t_external_action_prefix ) ) );
46
 
        $t_form_fields_page = 'bug_actiongroup_' . $t_external_action . '_inc.php';
 
30
        $t_form_name = 'bug_actiongroup_' . $t_external_action;
 
31
 
 
32
        bug_group_action_init( $t_external_action );
47
33
 
48
34
        bug_group_action_print_top();
49
35
?>
53
39
        <div align="center">
54
40
        <form method="post" action="bug_actiongroup_ext.php">
55
41
                <input type="hidden" name="action" value="<?php echo string_attribute( $t_external_action ) ?>" />
56
 
                <input type="hidden" name="action" value="<?php echo string_attribute( $t_external_action ) ?>" />
57
42
<table class="width75" cellspacing="1">
58
43
        <?php
59
44
                bug_group_action_print_title( $t_external_action );