[ Index ]
 

Code source de Mantis 1.1.0rc3

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/ -> query_delete.php (source)

   1  <?php
   2  # Mantis - a php based bugtracking system
   3  
   4  # Copyright (C) 2000 - 2002  Kenzaburo Ito - kenito@300baud.org
   5  # Copyright (C) 2002 - 2007  Mantis Team   - mantisbt-dev@lists.sourceforge.net
   6  
   7  # Mantis is free software: you can redistribute it and/or modify
   8  # it under the terms of the GNU General Public License as published by
   9  # the Free Software Foundation, either version 2 of the License, or
  10  # (at your option) any later version.
  11  #
  12  # Mantis is distributed in the hope that it will be useful,
  13  # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15  # GNU General Public License for more details.
  16  #
  17  # You should have received a copy of the GNU General Public License
  18  # along with Mantis.  If not, see <http://www.gnu.org/licenses/>.
  19  ?>
  20  <?php
  21      require_once ( 'core.php' );
  22      $t_core_path = config_get( 'core_path' );
  23  
  24      require_once( $t_core_path.'compress_api.php' );
  25      require_once( $t_core_path.'filter_api.php' );
  26      require_once( $t_core_path.'current_user_api.php' );
  27      require_once( $t_core_path.'bug_api.php' );
  28      require_once( $t_core_path.'string_api.php' );
  29      require_once( $t_core_path.'date_api.php' );
  30  
  31      auth_ensure_user_authenticated();
  32      compress_enable();
  33  
  34      $f_query_id = gpc_get_int( 'source_query_id' );
  35      $t_redirect_url = 'query_view_page.php';
  36  
  37      if ( ! filter_db_can_delete_filter( $f_query_id ) ) {
  38          print_header_redirect( $t_redirect_url );
  39      }
  40      else
  41      {
  42          html_page_top1();
  43          html_page_top2();
  44          filter_db_delete_filter( $f_query_id );
  45          ?>
  46          <br />
  47          <div align="center">
  48          <center><b><?php print filter_db_get_name( $f_query_id ) . ' ' . lang_get( 'query_deleted' ); ?></b></center>
  49          <form method="post" action="<?php print $t_redirect_url; ?>">
  50          <input type="submit" class="button" value="<?php print lang_get( 'go_back' ); ?>"/>
  51          </form>
  52  
  53          <?php
  54          echo '</div>';
  55          html_page_bottom1( __FILE__ );
  56      }
  57      ?>


Généré le : Thu Nov 29 09:42:17 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics