[ Index ]

PHP Cross Reference of MantisBT

title

Body

[close]

/plugins/MantisCoreFormatting/pages/ -> config_edit.php (source)

   1  <?php
   2  # MantisBT - A PHP based bugtracking system
   3  # Copyright (C) 2002 - 2011  MantisBT Team - mantisbt-dev@lists.sourceforge.net
   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  form_security_validate( 'plugin_format_config_edit' );
  18  
  19  auth_reauthenticate( );
  20  access_ensure_global_level( config_get( 'manage_plugin_threshold' ) );
  21  
  22  $f_process_text = gpc_get_int( 'process_text', ON );
  23  $f_process_urls = gpc_get_int( 'process_urls', ON );
  24  $f_process_buglinks = gpc_get_int( 'process_buglinks', ON );
  25  
  26  if( plugin_config_get( 'process_text' ) != $f_process_text ) {
  27      plugin_config_set( 'process_text', $f_process_text );
  28  }
  29  
  30  if( plugin_config_get( 'process_urls' ) != $f_process_urls ) {
  31      plugin_config_set( 'process_urls', $f_process_urls );
  32  }
  33  
  34  if( plugin_config_get( 'process_buglinks' ) != $f_process_buglinks ) {
  35      plugin_config_set( 'process_buglinks', $f_process_buglinks );
  36  }
  37  
  38  form_security_purge( 'plugin_format_config_edit' );
  39  
  40  print_successful_redirect( plugin_page( 'config', true ) );


Generated: Thu Jul 28 15:48:31 2011 Cross-referenced by PHPXref 0.7