[ Index ]
 

Code source de Mantis 1.1.0rc3

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/ -> config_defaults_inc.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      # --------------------------------------------------------
  21      # $Id: config_defaults_inc.php,v 1.364.2.6 2007-10-28 15:39:30 nuclear_eclipse Exp $
  22      # --------------------------------------------------------
  23  
  24  
  25      ###########################################################################
  26      # CONFIGURATION VARIABLES
  27      ###########################################################################
  28  
  29      # config_defaults_inc.php
  30  
  31      # This file should not be changed. If you want to override any of the values
  32      # defined here, define them in a file called config_inc.php, which will
  33      # be loaded after this file.
  34  
  35      # In general a value of OFF means the feature is disabled and ON means the
  36      # feature is enabled.  Any other cases will have an explanation.
  37  
  38      # For more details see http://manual.mantisbt.org/
  39  
  40      ################################
  41      # Mantis Database Settings
  42      ################################
  43  
  44      # --- database variables ---------
  45  
  46      # set these values to match your setup
  47  
  48      # hostname should be either a hostname or connection string to supply to adodb.
  49      # For example, if you would like to connect to a mysql server on the local machine,
  50      # set hostname to 'localhost', and db_type to 'mysql'.
  51      # If you need to supply a port to connect to, set hostname as 'localhost:3306'.
  52      $g_hostname                = 'localhost';
  53      $g_db_username            = 'root';
  54      $g_db_password            = '';
  55      $g_database_name        = 'bugtracker';
  56      $g_db_schema            = ''; // used in the case of db2
  57  
  58      # Supported types: 'mysql' or 'mysqli' for MySQL, 'pgsql' for PostgreSQL,
  59      # 'mssql' for MS SQL Server, 'oci8' for Oracle, and 'db2' for DB2.
  60      $g_db_type                = 'mysql';
  61  
  62      ############################
  63      # Mantis Path Settings
  64      ############################
  65  
  66      # --- path variables --------------
  67  
  68      # path to your installation as seen from the web browser
  69      # requires trailing /
  70      if ( isset ( $_SERVER['PHP_SELF'] ) ) {
  71          $t_protocol = 'http';
  72          if ( isset( $_SERVER['HTTPS'] ) && ( strtolower( $_SERVER['HTTPS'] ) != 'off' ) ) {
  73              $t_protocol = 'https';
  74          }
  75  
  76          # $_SERVER['SERVER_PORT'] is not defined in case of php-cgi.exe
  77          if ( isset( $_SERVER['SERVER_PORT'] ) ) {
  78              $t_port = ':' . $_SERVER['SERVER_PORT'];
  79              if ( ( ':80' == $t_port && 'http' == $t_protocol )
  80                || ( ':443' == $t_port && 'https' == $t_protocol )) {
  81                  $t_port = '';
  82              }
  83          } else {
  84              $t_port = '';
  85          }
  86  
  87          if ( isset( $_SERVER['HTTP_X_FORWARDED_HOST'] ) ) { // Support ProxyPass
  88              $t_host = $_SERVER['HTTP_X_FORWARDED_HOST'];
  89          } else if ( isset( $_SERVER['HTTP_HOST'] ) ) {
  90              $t_host = $_SERVER['HTTP_HOST'];
  91          } else if ( isset( $_SERVER['SERVER_NAME'] ) ) {
  92              $t_host = $_SERVER['SERVER_NAME'] . $t_port;
  93          } else if ( isset( $_SERVER['SERVER_ADDR'] ) ) {
  94              $t_host = $_SERVER['SERVER_ADDR'] . $t_port;
  95          } else {
  96              $t_host = 'www.example.com';
  97          }
  98  
  99          $t_path = dirname( strip_tags( $_SERVER['PHP_SELF'] ) );
 100          if ( '/' == $t_path || '\\' == $t_path ) {
 101              $t_path = '';
 102          }
 103  
 104          $g_path    = $t_protocol . '://' . $t_host . $t_path.'/';
 105      } else {
 106          $g_path    = 'http://www.example.com/mantis/';
 107      }
 108  
 109      # path to your images directory (for icons)
 110      # requires trailing /
 111      $g_icon_path            = '%path%images/';
 112  
 113      # absolute path to your installation.  Requires trailing / or \
 114      # Symbolic links are allowed since release 0.17.3
 115      $g_absolute_path        = dirname( __FILE__ ) . DIRECTORY_SEPARATOR;
 116  
 117      # absolute patch to your core files. The default is usually OK,
 118      # unless you moved the 'core' directory out of your webroot (recommended).
 119      $g_core_path            = $g_absolute_path . 'core' . DIRECTORY_SEPARATOR;
 120  
 121      # Used to link to manual for User Documentation.
 122      $g_manual_url = 'http://manual.mantisbt.org/';
 123  
 124      #############################
 125      # Web Server
 126      #############################
 127  
 128      # Using Microsoft Internet Information Server (IIS)
 129      if ( isset( $_SERVER['SERVER_SOFTWARE'] ) ) { # SERVER_SOFTWARE not defined in case of php-cgi.exe
 130          $g_use_iis = ( strstr( $_SERVER['SERVER_SOFTWARE'], 'IIS' ) !== false ) ? ON : OFF;
 131      } else {
 132          $g_use_iis = OFF;
 133      }
 134  
 135  
 136      #############################
 137      # Configuration Settings
 138      #############################
 139  
 140      # The following list of variables should never be in the database.
 141      # These patterns will be concatenated and used as a regular expression
 142      # to bypass the database lookup and look here for appropriate global settings.
 143      $g_global_settings = array(
 144          '_table$', 'cookie', '^db_', 'hostname', 'database_name',
 145          '_path$', 'use_iis', 'language', 'use_javascript', 'display_errors', 'stop_on_errors', 'login_method', '_file$',
 146          'anonymous', 'content_expire', 'html_valid_tags', 'custom_headers', 'rss_key_seed'
 147      );
 148  
 149      #############################
 150      # Signup and Lost Password
 151      #############################
 152  
 153      # --- signup ----------------------
 154  
 155      # allow users to signup for their own accounts.
 156      # Mail settings must be correctly configured in order for this to work
 157      $g_allow_signup            = ON;
 158  
 159      # Max. attempts to login using a wrong password before lock the account.
 160      # When locked, it's required to reset the password (lost password)
 161      # Value resets to zero at each successfully login
 162      # Set to OFF to disable this control
 163      $g_max_failed_login_count = OFF;
 164  
 165      # access level required to be notified when a new user has been created using the "signup form"
 166      $g_notify_new_user_created_threshold_min = ADMINISTRATOR;
 167  
 168      # if ON users will be sent their password when reset.
 169      # if OFF the password will be set to blank. If set to ON, mail settings must be
 170      # correctly configured.
 171      $g_send_reset_password    = ON;
 172  
 173      # String used to generate the confirm_hash for the 'lost password' feature and captcha code for 'signup'
 174      # ATTENTION: CHANGE IT TO WHATEVER VALUE YOU PREFER
 175      $g_password_confirm_hash_magic_string = 'blowfish';
 176  
 177      # --- captcha image ---------------
 178  
 179      # use captcha image to validate subscription it requires GD library installed
 180      $g_signup_use_captcha    = ON;
 181  
 182      # absolute path (with trailing slash!) to folder which contains your TrueType-Font files
 183      # used to create the captcha image and since 0.19.3 for the Relationship Graphs
 184      $g_system_font_folder    = 'c:/winnt/fonts/';
 185  
 186      # font name used to create the captcha image. i.e. arial.ttf
 187      # (the font file has to exist in the system_font_folder)
 188      $g_font_per_captcha    = 'arial.ttf';
 189  
 190      # --- lost password -------------
 191  
 192      #  Setting to disable the 'lost your password' feature.
 193      $g_lost_password_feature = ON;
 194  
 195      # Max. simultaneous requests of 'lost password'
 196      # When this value is reached, it's no longer possible to request new password reset
 197      # Value resets to zero at each successfully login
 198      $g_max_lost_password_in_progress_count = 3;
 199  
 200      #############################
 201      # Mantis Email Settings
 202      #############################
 203  
 204      # --- email variables -------------
 205      $g_administrator_email    = 'administrator@example.com';
 206      $g_webmaster_email        = 'webmaster@example.com';
 207  
 208      # the sender email, part of 'From: ' header in emails
 209       $g_from_email            = 'noreply@example.com';
 210      
 211      # the sender name, part of 'From: ' header in emails
 212      $g_from_name            = 'Mantis Bug Tracker';
 213  
 214      # the return address for bounced mail
 215      $g_return_path_email    = 'admin@example.com';
 216  
 217      # allow email notification
 218      #  note that if this is disabled, sign-up and password reset messages will
 219      #  not be sent.
 220      $g_enable_email_notification    = ON;
 221  
 222      # The following two config options allow you to control who should get email
 223      # notifications on different actions/statuses.  The first option (default_notify_flags)
 224      # sets the default values for different user categories.  The user categories
 225      # are:
 226      #
 227      #      'reporter': the reporter of the bug
 228      #       'handler': the handler of the bug
 229      #       'monitor': users who are monitoring a bug
 230      #      'bugnotes': users who have added a bugnote to the bug
 231      # 'threshold_max': all users with access <= max
 232      # 'threshold_min': ..and with access >= min
 233      #
 234      # The second config option (notify_flags) sets overrides for specific actions/statuses.
 235      # If a user category is not listed for an action, the default from the config
 236      # option above is used.  The possible actions are:
 237      #
 238      #             'new': a new bug has been added
 239       #           'owner': a bug has been assigned to a new owner
 240      #        'reopened': a bug has been reopened
 241       #         'deleted': a bug has been deleted
 242      #         'updated': a bug has been updated
 243      #         'bugnote': a bugnote has been added to a bug
 244      #         'sponsor': sponsorship has changed on this bug
 245      #        'relation': a relationship has changed on this bug
 246      #        '<status>': eg: 'resolved', 'closed', 'feedback', 'acknowledged', ...etc.
 247      #                     this list corresponds to $g_status_enum_string
 248  
 249      #
 250      # If you wanted to have all developers get notified of new bugs you might add
 251      # the following lines to your config file:
 252      #
 253      # $g_notify_flags['new']['threshold_min'] = DEVELOPER;
 254      # $g_notify_flags['new']['threshold_max'] = DEVELOPER;
 255      #
 256      # You might want to do something similar so all managers are notified when a
 257      # bug is closed.  If you didn't want reporters to be notified when a bug is
 258      # closed (only when it is resolved) you would use:
 259      #
 260      # $g_notify_flags['closed']['reporter'] = OFF;
 261  
 262      $g_default_notify_flags    = array('reporter'    => ON,
 263                                      'handler'    => ON,
 264                                      'monitor'    => ON,
 265                                      'bugnotes'    => ON,
 266                                      'threshold_min'    => NOBODY,
 267                                      'threshold_max' => NOBODY);
 268  
 269      # We don't need to send these notifications on new bugs
 270      # (see above for info on this config option)
 271      #@@@ (though I'm not sure they need to be turned off anymore
 272      #      - there just won't be anyone in those categories)
 273      #      I guess it serves as an example and a placeholder for this
 274      #      config option
 275      $g_notify_flags['new']    = array('bugnotes'    => OFF,
 276                                      'monitor'    => OFF);
 277  
 278      # Whether user's should receive emails for their own actions
 279      $g_email_receive_own    = OFF;
 280  
 281      # set to OFF to disable email check
 282      $g_validate_email        = ( substr( php_uname(), 0, 7 ) == 'Windows' ) ? OFF : ON;
 283      $g_check_mx_record        = OFF;    # Not supported under Windows.
 284  
 285      # if ON, allow the user to omit an email field
 286      # note if you allow users to create their own accounts, they
 287      #  must specify an email at that point, no matter what the value
 288      #  of this option is.  Otherwise they wouldn't get their passwords.
 289      $g_allow_blank_email    = OFF;
 290  
 291      # Only allow and send email to addresses in the given domain
 292      # For example:
 293      # $g_limit_email_domain        = 'users.sourceforge.net';
 294      $g_limit_email_domain    = OFF;
 295  
 296      # This specifies the access level that is needed to get the mailto: links.
 297      $g_show_user_email_threshold = NOBODY;
 298  
 299      # If use_x_priority is set to ON, what should the value be?
 300      # Urgent = 1, Not Urgent = 5, Disable = 0
 301      # Note: some MTAs interpret X-Priority = 0 to mean 'Very Urgent'
 302      $g_mail_priority        = 3;
 303  
 304      # select the method to mail by:
 305      # 0 - mail()
 306      # 1 - sendmail
 307      # 2 - SMTP
 308      $g_phpMailer_method        = 0;
 309  
 310      # This option allows you to use a remote SMTP host.  Must use the phpMailer script
 311      # One or more hosts, separated by a semicolon, can be listed. 
 312      # You can also specify a different port for each host by using this 
 313      # format: [hostname:port] (e.g. "smtp1.example.com:25;smtp2.example.com").
 314      # Hosts will be tried in order.
 315      $g_smtp_host            = 'localhost';
 316  
 317      # These options allow you to use SMTP Authentication when you use a remote
 318      # SMTP host with phpMailer.  If smtp_username is not '' then the username
 319      # and password will be used when logging in to the SMTP server.
 320      $g_smtp_username = '';
 321      $g_smtp_password = '';
 322  
 323      # It is recommended to use a cronjob or a scheduler task to send emails.  
 324      # The cronjob should typically run every 5 minutes.  If no cronjob is used,
 325      # then user will have to wait for emails to be sent after performing an action
 326      # which triggers notifications.  This slows user performance.
 327      $g_email_send_using_cronjob = OFF;
 328  
 329      # Specify whether e-mails should be sent with the category set or not.  This is tested
 330      # with Microsoft Outlook.  More testing for this feature + other formats will be added
 331      # in the future.
 332      # OFF, EMAIL_CATEGORY_PROJECT_CATEGORY (format: [Project] Category)
 333      $g_email_set_category        = OFF;
 334  
 335      # --- email separator and padding ------------
 336      $g_email_separator1        = str_pad('', 70, '=');
 337      $g_email_separator2        = str_pad('', 70, '-');
 338      $g_email_padding_length    = 28;
 339  
 340      #############################
 341      # Mantis Version String
 342      #############################
 343  
 344      # --- version variables -----------
 345      $g_show_version            = ON;
 346  
 347      ################################
 348      # Mantis Language Settings
 349      ################################
 350  
 351      # --- language settings -----------
 352  
 353      # If the language is set to 'auto', the actual
 354      # language is determined by the user agent (web browser)
 355      # language preference.
 356      $g_default_language        = 'english';
 357  
 358      # list the choices that the users are allowed to choose
 359      $g_language_choices_arr    = array(
 360          'auto',
 361          'bulgarian',
 362          'catalan',
 363          'chinese_simplified',
 364          'chinese_traditional',
 365          'croatian',
 366          'czech',
 367          'danish',
 368          'dutch',
 369          'english',
 370          'estonian',
 371          'finnish',
 372          'french',
 373          'german',
 374          'german_eintrag',
 375          'greek',
 376          'hebrew',
 377          'hungarian',
 378          'icelandic',
 379          'italian',
 380          'japanese',
 381          'korean',
 382          'latvian',
 383          'lithuanian',
 384          'norwegian',
 385          'polish',
 386          'portuguese_brazil',
 387          'portuguese_standard',
 388          'romanian',
 389          'russian',
 390          'serbian',
 391          'slovak',
 392          'slovene',
 393          'spanish',
 394          'swedish',
 395          'turkish',
 396          'ukrainian',
 397          'urdu',
 398      );
 399  
 400      # Browser language mapping for 'auto' language selection
 401      $g_language_auto_map = array(
 402          'bg' => 'bulgarian',
 403          'ca' => 'catalan',
 404          'zh-cn, zh-sg, zh' => 'chinese_simplified',
 405          'zh-hk, zh-tw' => 'chinese_traditional',
 406          'cs' => 'czech',
 407          'da' => 'danish',
 408          'nl-be, nl' => 'dutch',
 409          'en-us, en-gb, en-au, en' => 'english',
 410          'et' => 'estonian',
 411          'fi' => 'finnish',
 412          'fr-ca, fr-be, fr-ch, fr' => 'french',
 413          'de-de, de-at, de-ch, de' => 'german',
 414          'he' => 'hebrew',
 415          'hu' => 'hungarian',
 416          'hr' => 'croatian',
 417          'is' => 'icelandic',
 418          'it-ch, it' => 'italian',
 419          'ja' => 'japanese',
 420          'ko' => 'korean',
 421          'lt' => 'lithuanian',
 422          'lv' => 'latvian',
 423          'no' => 'norwegian',
 424          'pl' => 'polish',
 425          'pt-br' => 'portugese_brazil',
 426          'pt' => 'portugese_standard',
 427          'ro-mo, ro' => 'romanian',
 428          'ru-mo, ru-ru, ru-ua, ru' => 'russian',
 429          'sr' => 'serbian',
 430          'sk' => 'slovak',
 431          'sl' => 'slovene',
 432          'es-mx, es-co, es-ar, es-cl, es-pr, es' => 'spanish',
 433          'sv-fi, sv' => 'swedish',
 434          'tr' => 'turkish',
 435          'uk' => 'ukrainian'
 436      );
 437  
 438      # Fallback for automatic language selection
 439      $g_fallback_language    = 'english';
 440  
 441      ###############################
 442      # Mantis Display Settings
 443      ###############################
 444  
 445      # --- sitewide variables ----------
 446      $g_window_title            = 'Mantis';     # browser window title
 447      $g_page_title            = '';     # title at top of html page (empty by default, since there is a logo now)
 448  
 449      # --- advanced views --------------
 450      # BOTH, SIMPLE_ONLY, ADVANCED_ONLY
 451      $g_show_report            = BOTH;
 452      $g_show_update            = BOTH;
 453      $g_show_view            = BOTH;
 454  
 455      # --- top menu items --------------
 456      # Specifies whether to enable support for project documents or not.
 457      $g_enable_project_documentation    = ON;
 458  
 459      # --- footer menu -----------------
 460      # Display another instance of the menu at the bottom.  The top menu will still remain.
 461      $g_show_footer_menu        = OFF;
 462  
 463      # --- show extra menu bar with all available projects ---
 464      $g_show_project_menu_bar = OFF;
 465  
 466      # --- show extra dropdown for subprojects ---
 467      # Shows only top projects in the project dropdown and adds an extra dropdown for subprojects.
 468      $g_show_extended_project_browser = OFF;
 469  
 470      # --- show assigned to names ------
 471      # This is in the view all pages
 472      $g_show_assigned_names    = ON;
 473  
 474      # --- show priority as icon ---
 475      # OFF: Shows priority as icon in view all bugs page
 476      # ON:  Shows priority as text in view all bugs page
 477      $g_show_priority_text    = OFF;
 478  
 479      # A configuration option that identifies the columns to be shown on the View Issues page.
 480      # In Mantis 1.1, this option can be overriden using the Generic Configuration screen.
 481      # This configuration can be overriden dynamically by overriding the custom function "get_columns_to_view".
 482      # Some of the columns specified here can be removed automatically if they conflict with other configuration.
 483      # For example, sponsorship_total will be removed if sponsorships are disabled.
 484      # To include custom field 'xyz', include the column name as 'custom_xyz'.
 485      #
 486      # Standard Column Names (i.e. names to choose from):
 487      # selection, edit, id, project_id, reporter_id, handler_id, priority, reproducibility, projection, eta,
 488      # resolution, fixed_in_version, view_state, os, os_build, platform, version, date_submitted, attachment,
 489      # category, sponsorship_total, severity, status, last_updated, summary, bugnotes_count
 490      $g_view_issues_page_columns = array ( 'selection', 'edit', 'priority', 'id', 'sponsorship_total', 'bugnotes_count', 'attachment', 'category', 'severity', 'status', 'last_updated', 'summary' );
 491      
 492      # A configuration option that identifies the columns to be show on the print issues page.
 493      # In Mantis 1.1, this option can be overriden using the Generic Configuration screen.
 494      # This configuration can be overriden dynamically by overriding the custom function "get_columns_to_view".
 495      $g_print_issues_page_columns = array ( 'selection', 'priority', 'id', 'sponsorship_total', 'bugnotes_count', 'attachment', 'category', 'severity', 'status', 'last_updated', 'summary' );
 496  
 497      # A configuration option that identifies the columns to be include in the CSV export.
 498      # In Mantis 1.1, this option can be overriden using the Generic Configuration screen.
 499      # This configuration can be overriden dynamically by overriding the custom function "get_columns_to_view".
 500      $g_csv_columns = array ( 'id', 'project_id', 'reporter_id', 'handler_id', 'priority', 'severity', 'reproducibility', 'version', 'projection', 'category', 'date_submitted', 'eta', 'os', 'os_build', 'platform', 'view_state', 'last_updated', 'summary', 'status', 'resolution', 'fixed_in_version', 'duplicate_id' );
 501  
 502      # --- show projects when in All Projects mode ---
 503      $g_show_bug_project_links    = ON;
 504  
 505      # --- Position of the status colour legend, can be: STATUS_LEGEND_POSITION_*
 506      # --- see constant_inc.php. (*: TOP , BOTTOM , or BOTH)
 507      $g_status_legend_position    = STATUS_LEGEND_POSITION_BOTTOM;
 508  
 509      # --- Show a legend with percentage of bug status
 510      # --- x% of all bugs are new, y% of all bugs are assigned and so on.
 511      # --- If set to ON it will printed below the status colour legend.
 512      $g_status_percentage_legend = OFF;
 513  
 514      # --- Position of the filter box, can be: FILTER_POSITION_*
 515      # FILTER_POSITION_TOP, FILTER_POSITION_BOTTOM, or 0 for none.
 516      $g_filter_position    = FILTER_POSITION_TOP;
 517  
 518      # --- show product versions in create, view and update screens
 519      #  ON forces display even if none are defined
 520      #  OFF suppresses display
 521      #  AUTO suppresses the display if there are no versions defined for the project
 522      $g_show_product_version = AUTO;
 523  
 524      # -- show users with their real name or not
 525      $g_show_realname = OFF;
 526      $g_differentiate_duplicates = OFF;  # leave off for now
 527  
 528      # -- sorting for names in dropdown lists. If turned on, "Jane Doe" will be sorted with the "D"s
 529      $g_sort_by_last_name = OFF;
 530  
 531      # Show user avatar
 532      # the current implementation is based on http://www.gravatar.com
 533      # users will need to register there the same address used in 
 534      # this mantis installation to have their avatar shown
 535      # Please note: upon registration or avatar change, it takes some time for
 536      # the updated gravatar images to show on sites
 537      $g_show_avatar = OFF;
 538      
 539      # Only users above this threshold will have their avatar shown
 540      $g_show_avatar_threshold = DEVELOPER;
 541  
 542          # Default avatar for users without a gravatar account
 543          $g_default_avatar = "%path%images/no_avatar.png";
 544  
 545      ############################
 546      # Mantis JPGRAPH Addon
 547      ############################
 548  
 549      # --- jpgraph settings --- #
 550      # Initial Version from Duncan Lisset
 551      #
 552      # To use the Jpgraph addon you need the JPGRAPH package from
 553      # http://www.aditus.nu/jpgraph/index.php
 554      # You can place the package whereever you want, but you have
 555      # to set the var in jpgraph.php eg.
 556      # (DEFINE('DIR_BASE','/www/mantisbt/jpgraph/');)
 557  
 558      $g_use_jpgraph            = OFF;
 559      $g_jpgraph_path            = '.' . DIRECTORY_SEPARATOR . 'jpgraph' . DIRECTORY_SEPARATOR;   # dont forget the ending slash!
 560  
 561      # use antialiasing - Enabling anti-aliasing will greatly improve the visual apperance of certain graphs.
 562      # Note: Using anti-aliasing makes line drawing roughly 8 time slower than normal lines
 563      $g_jpgraph_antialias    = ON;
 564  
 565      # what truetype font will the graphs use. Allowed values are 'arial', 'verdana', 'courier', 'book', 'comic', 'times',
 566      #  'georgia', 'trebuche', 'vera', 'veramono', or 'veraserif'. Refer to the jpgraph manual for details.
 567      # NOTE: these fonts need to be installed in the TTF_DIR as specified to jpgraph
 568      $g_graph_font = '';
 569  
 570      # what width is used to scale the graphs.
 571      $g_graph_window_width = 800;
 572      # bar graph aspect ration (height / width)
 573      $g_graph_bar_aspect = 0.9;
 574  
 575      # how many graphs to put in each row in the advanced summary page
 576      $g_graph_summary_graphs_per_row = 2;
 577      
 578      # initial graph type selected on bug_graph_page (see that page for possible values)
 579      # 0 asks user to select
 580      $g_default_graph_type = 0;
 581      
 582      # graph colours, once the list is exhausted it will repeat
 583      $g_graph_colors = array('coral', 'red', 'blue', 'black', 'green', 'orange', 'pink', 'brown', 'gray',
 584              'blueviolet','chartreuse','fuschia','indigo');
 585  
 586      ############################
 587      # Mantis Time Settings
 588      ############################
 589  
 590      # time for 'permanent' cookie to live in seconds (1 year)
 591      $g_cookie_time_length    = 30000000;
 592  
 593      # minutes to wait before document is stale (in minutes)
 594      $g_content_expire        = 0;
 595  
 596      # The time (in seconds) to allow for page execution during long processes
 597      #  such as upgrading your database.
 598      # The default value of 0 indicates that the page should be allowed to
 599      #  execute until it is finished.
 600      $g_long_process_timeout    = 0;
 601  
 602      ############################
 603      # Mantis Date Settings
 604      ############################
 605  
 606      # --- date format settings --------
 607      # date format strings defaults to ISO 8601 formatting
 608      # go to http://www.php.net/manual/en/function.date.php
 609      # for detailed instructions on date formatting
 610      $g_short_date_format    = 'Y-m-d';
 611      $g_normal_date_format   = 'Y-m-d H:i';
 612      $g_complete_date_format = 'Y-m-d H:i T';
 613  
 614      ############################
 615      # Mantis News Settings
 616      ############################
 617  
 618      # --- Limit News Items ------------
 619      # limit by entry count or date
 620      # BY_LIMIT - entry limit
 621      # BY_DATE - by date
 622      $g_news_limit_method    = BY_LIMIT;
 623  
 624      # limit by last X entries
 625      $g_news_view_limit        = 7;
 626  
 627      # limit by days
 628      $g_news_view_limit_days    = 30;
 629  
 630      # threshold for viewing private news
 631      $g_private_news_threshold    = DEVELOPER;
 632  
 633      ##################################
 634      # Mantis Default Preferences
 635      ##################################
 636  
 637      # --- signup default ---------------
 638      # look in constant_inc.php for values
 639      $g_default_new_account_access_level    = REPORTER;
 640  
 641      # Default Bug View Status (VS_PUBLIC or VS_PRIVATE)
 642      $g_default_bug_view_status = VS_PUBLIC;
 643  
 644      # Default value for steps to reproduce field.
 645      $g_default_bug_steps_to_reproduce = '';
 646  
 647      # Default value for addition information field.
 648      $g_default_bug_additional_info = '';
 649  
 650      # Default Bugnote View Status (VS_PUBLIC or VS_PRIVATE)
 651      $g_default_bugnote_view_status = VS_PUBLIC;
 652  
 653      # Default bug severity when reporting a new bug
 654      $g_default_bug_severity = MINOR;
 655  
 656      # Default bug priority when reporting a new bug
 657      $g_default_bug_priority = NORMAL;
 658      
 659      # Default bug reproducibility when reporting a new bug
 660      $g_default_bug_reproducibility = REPRODUCIBILITY_HAVENOTTRIED;
 661  
 662      # Default bug category when reporting a new bug
 663      $g_default_bug_category = '';
 664  
 665      # --- viewing defaults ------------
 666      # site defaults for viewing preferences
 667      $g_default_limit_view    = 50;
 668      $g_default_show_changed    = 6;
 669      $g_hide_status_default     = CLOSED;
 670      $g_show_sticky_issues   = 'on';
 671  
 672      # make sure people aren't refreshing too often
 673      $g_min_refresh_delay    = 10;    # in minutes
 674  
 675      # --- account pref defaults -------
 676      $g_default_advanced_report        = OFF;
 677      $g_default_advanced_view        = OFF;
 678      $g_default_advanced_update        = OFF;
 679      $g_default_refresh_delay        = 30;    # in minutes
 680      $g_default_redirect_delay        = 2;     # in seconds
 681      $g_default_bugnote_order        = 'ASC';
 682      $g_default_email_on_new            = ON;
 683      $g_default_email_on_assigned    = ON;
 684      $g_default_email_on_feedback    = ON;
 685      $g_default_email_on_resolved    = ON;
 686      $g_default_email_on_closed        = ON;
 687      $g_default_email_on_reopened    = ON;
 688      $g_default_email_on_bugnote        = ON;
 689      $g_default_email_on_status        = 0; # @@@ Unused
 690      $g_default_email_on_priority    = 0; # @@@ Unused
 691      $g_default_email_on_new_minimum_severity        = OFF; # 'any'
 692      $g_default_email_on_assigned_minimum_severity    = OFF; # 'any'
 693      $g_default_email_on_feedback_minimum_severity    = OFF; # 'any'
 694      $g_default_email_on_resolved_minimum_severity    = OFF; # 'any'
 695      $g_default_email_on_closed_minimum_severity        = OFF; # 'any'
 696      $g_default_email_on_reopened_minimum_severity    = OFF; # 'any'
 697      $g_default_email_on_bugnote_minimum_severity    = OFF; # 'any'
 698      $g_default_email_on_status_minimum_severity        = OFF; # 'any'
 699      $g_default_email_on_priority_minimum_severity    = OFF; # @@@ Unused
 700      $g_default_email_bugnote_limit                    = 0;
 701      # default_language - is set to site language
 702  
 703      ###############################
 704      # Mantis Summary Settings
 705      ###############################
 706  
 707      # how many reporters to show
 708      # this is useful when there are hundreds of reporters
 709      $g_reporter_summary_limit    = 10;
 710  
 711      # --- summary date displays -------
 712      # date lengths to count bugs by (in days)
 713      $g_date_partitions            = array( 1, 2, 3, 7, 30, 60, 90, 180, 365);
 714  
 715      # shows project '[project] category' when 'All Projects' is selected
 716      # otherwise only 'category name'
 717      $g_summary_category_include_project    = OFF;
 718  
 719      # threshold for viewing summary
 720      $g_view_summary_threshold    = MANAGER;
 721  
 722      ###############################
 723      # Mantis Bugnote Settings
 724      ###############################
 725  
 726      # --- bugnote ordering ------------
 727      # change to ASC or DESC
 728      $g_bugnote_order        = 'DESC';
 729  
 730      ################################
 731      # Mantis Bug History Settings
 732      ################################
 733  
 734      # --- bug history visible by default when you view a bug ----
 735      # change to ON or OFF
 736      $g_history_default_visible    = ON;
 737  
 738      # --- bug history ordering ----
 739      # change to ASC or DESC
 740      $g_history_order        = 'ASC';
 741  
 742      ###############################
 743      # Mantis Reminder Settings
 744      ###############################
 745  
 746      # are reminders stored as bugnotes
 747      $g_store_reminders        = ON;
 748  
 749      # Automatically add recipients of reminders to monitor list, if they are not
 750      # the handler or the reporter (since they automatically get notified, if required)
 751      # If recipients of the reminders are below the monitor threshold, they will not be added.
 752      $g_reminder_recipents_monitor_bug = ON;
 753  
 754      # Default Reminder View Status (VS_PUBLIC or VS_PRIVATE)
 755      $g_default_reminder_view_status = VS_PUBLIC;
 756  
 757      ###################################
 758      # Mantis Sponsorship Settings
 759      ###################################
 760  
 761      # Whether to enable/disable the whole issue sponsorship feature
 762      $g_enable_sponsorship = OFF;
 763  
 764      # Currency used for all sponsorships.
 765      $g_sponsorship_currency = 'US$';
 766  
 767      # Access level threshold needed to view the total sponsorship for an issue by all users.
 768      $g_view_sponsorship_total_threshold = VIEWER;
 769  
 770      # Access level threshold needed to view the users sponsoring an issue and the sponsorship
 771      # amount for each.
 772      $g_view_sponsorship_details_threshold = VIEWER;
 773  
 774      # Access level threshold needed to allow user to sponsor issues.
 775      $g_sponsor_threshold = REPORTER;
 776  
 777      # Access level required to be able to handle sponsored issues.
 778      $g_handle_sponsored_bugs_threshold = DEVELOPER;
 779  
 780      # Access level required to be able to assign a sponsored issue to a user with access level
 781      # greater or equal to 'handle_sponsored_bugs_threshold'.
 782      $g_assign_sponsored_bugs_threshold = MANAGER;
 783  
 784      # Minimum sponsorship amount. If the user enters a value less than this, an error will be prompted.
 785      $g_minimum_sponsorship_amount = 5;
 786  
 787      ###################################
 788      # Mantis File Upload Settings
 789      ###################################
 790  
 791      # --- file upload settings --------
 792      # This is the master setting to disable *all* file uploading functionality
 793      #
 794      # If you want to allow file uploads, you must also make sure that they are
 795      #  enabled in php.  You may need to add 'file_uploads = TRUE' to your php.ini
 796      #
 797      # See also: $g_upload_project_file_threshold, $g_upload_bug_file_threshold,
 798      #   $g_allow_reporter_upload
 799      $g_allow_file_upload    = ON;
 800  
 801      # Upload destination: specify actual location in project settings
 802      # DISK, DATABASE, or FTP.
 803      $g_file_upload_method    = DATABASE;
 804  
 805      # When using FTP or DISK for storing uploaded files, this setting control 
 806      # the access permissions they will have on the web server: with the default
 807      # value (0400) files will be read-only, and accessible only by the user
 808      # running the apache process (probably "apache" in Linux and "Administrator"
 809      # in Windows).
 810      # For more details on unix style permissions:
 811      # http://www.perlfect.com/articles/chmod.shtml
 812      $g_attachments_file_permissions = 0400;
 813  
 814      # FTP settings, used if $g_file_upload_method = FTP
 815      $g_file_upload_ftp_server    = 'ftp.myserver.com';
 816      $g_file_upload_ftp_user        = 'readwriteuser';
 817      $g_file_upload_ftp_pass        = 'readwritepass';
 818  
 819      # Maximum file size that can be uploaded
 820      # Also check your PHP settings (default is usually 2MBs)
 821      $g_max_file_size        = 5000000; # 5 MB
 822  
 823      # Files that are allowed or not allowed.  Separate items by commas.
 824      # eg. 'php,html,java,exe,pl'
 825      # if $g_allowed_files is filled in NO other file types will be allowed.
 826      # $g_disallowed_files takes precedence over $g_allowed_files
 827      $g_allowed_files        = '';
 828      $g_disallowed_files        = '';
 829  
 830      # prefix to be used for the file system names of files uploaded to projects.
 831      # Eg: doc-001-myprojdoc.zip
 832      $g_document_files_prefix = 'doc';
 833  
 834      # absolute path to the default upload folder.  Requires trailing / or \
 835      $g_absolute_path_default_upload_folder = '';
 836  
 837      ############################
 838      # Mantis HTML Settings
 839      ############################
 840  
 841      # --- html tags -------------------
 842  
 843      # Set this flag to automatically convert www URLs and
 844      # email adresses into clickable links
 845      $g_html_make_links        = ON;
 846  
 847      # These are the valid html tags for multi-line fields (e.g. description)
 848      # do NOT include href or img tags here
 849      # do NOT include tags that have parameters (eg. <font face="arial">)
 850      $g_html_valid_tags        = 'p, li, ul, ol, br, pre, i, b, u, em';
 851  
 852      # These are the valid html tags for single line fields (e.g. issue summary).
 853      # do NOT include href or img tags here
 854      # do NOT include tags that have parameters (eg. <font face="arial">)
 855      $g_html_valid_tags_single_line        = 'i, b, u, em';
 856  
 857      # maximum length of the description in a dropdown menu (for search)
 858      # set to 0 to disable truncations
 859      $g_max_dropdown_length = 40;
 860  
 861      # This flag conntrolls whether pre-formatted text (delimited by <pre> tags
 862      #  is wrapped to a maximum linelength (defaults to 100 chars in strings_api)
 863      #  If turned off, the display may be wide when viewing the text
 864      $g_wrap_in_preformatted_text = ON;
 865  
 866      ##########################
 867      # Mantis HR Settings
 868      ##########################
 869  
 870      # --- hr --------------------------
 871      $g_hr_size                = 1;
 872      $g_hr_width                = 50;
 873  
 874      #############################
 875      # Mantis LDAP Settings
 876      #############################
 877  
 878      # look in README.LDAP for details
 879  
 880      # --- using openldap -------------
 881      $g_ldap_server            = 'ldaps://ldap.example.com.au/';
 882      $g_ldap_port            = '636';
 883      $g_ldap_root_dn            = 'dc=example,dc=com,dc=au';
 884      $g_ldap_organization    = '';    # e.g. '(organizationname=*Traffic)'
 885      $g_ldap_uid_field        = 'uid'; # Use 'sAMAccountName' for Active Directory
 886      $g_ldap_bind_dn            = '';
 887      $g_ldap_bind_passwd        = '';
 888      $g_use_ldap_email        = OFF; # Should we send to the LDAP email address or what MySql tells us
 889      
 890      # The LDAP Protocol Version, if 0, then the protocol version is not set.
 891      $g_ldap_protocol_version = 0;
 892  
 893      ############################
 894      # Status Settings
 895      ############################
 896  
 897      # Status to assign to the bug when submitted.
 898      $g_bug_submit_status = NEW_;
 899  
 900      # Status to assign to the bug when assigned.
 901      $g_bug_assigned_status = ASSIGNED;
 902  
 903      # Status to assign to the bug when reopened.
 904      $g_bug_reopen_status = FEEDBACK;
 905  
 906      # Resolution to assign to the bug when reopened.
 907      $g_bug_reopen_resolution = REOPENED;
 908  
 909      # --- status thresholds (*_status_threshold) ---
 910  
 911      # Bug becomes readonly if its status is >= this status.  The bug becomes read/write again if re-opened and its
 912      # status becomes less than this threshold.
 913      $g_bug_readonly_status_threshold = RESOLVED;
 914  
 915      # Bug is resolved, ready to be closed or reopened.  In some custom installations a bug
 916      # maybe considered as resolved when it is moved to a custom (FIXED OR TESTED) status.
 917      $g_bug_resolved_status_threshold = RESOLVED;
 918  
 919      # Automatically set status to ASSIGNED whenever a bug is assigned to a person.
 920      # This is useful for installations where assigned status is to be used when
 921      # the bug is in progress, rather than just put in a person's queue.
 922      $g_auto_set_status_to_assigned    = ON;
 923  
 924      # 'status_enum_workflow' defines the workflow, and reflects a simple
 925      #  2-dimensional matrix. For each existing status, you define which
 926      #  statuses you can go to from that status, e.g. from NEW_ you might list statuses
 927      #  '10:new,20:feedback,30:acknowledged' but not higher ones.
 928      # The following example can be transferred to config_inc.php
 929      # $g_status_enum_workflow[NEW_]='20:feedback,30:acknowledged,40:confirmed,50:assigned,80:resolved';
 930      # $g_status_enum_workflow[FEEDBACK] ='10:new,30:acknowledged,40:confirmed,50:assigned,80:resolved';
 931      # $g_status_enum_workflow[ACKNOWLEDGED] ='20:feedback,40:confirmed,50:assigned,80:resolved';
 932      # $g_status_enum_workflow[CONFIRMED] ='20:feedback,50:assigned,80:resolved';
 933      # $g_status_enum_workflow[ASSIGNED] ='20:feedback,80:resolved,90:closed';
 934      # $g_status_enum_workflow[RESOLVED] ='50:assigned,90:closed';
 935      # $g_status_enum_workflow[CLOSED] ='50:assigned';
 936      $g_status_enum_workflow = array();
 937  
 938      ############################
 939      # Bug Attachments Settings
 940      ############################
 941  
 942      # Specifies the maximum size below which an attachment is previewed in the bug
 943      # view pages.  To disable this feature, set max size to 0.
 944      # This feature applies to: bmp, png, gif, jpg
 945      $g_preview_attachments_inline_max_size = 0;
 946  
 947      # Extenstions for text files that can be expanded inline.
 948      $g_preview_text_extensions = array( 'txt', 'diff', 'patch' );
 949  
 950      # Extensions for images that can be expanded inline.
 951      $g_preview_image_extensions = array( 'bmp', 'png', 'gif', 'jpg', 'jpeg' );
 952  
 953      # Specifies the maximum width for the auto-preview feature.  If no maximum width should be imposed
 954      # then it should be set to 0.
 955      $g_preview_max_width = 0;
 956  
 957      # Specifies the maximum height for the auto-preview feature.  If no maximum height should be imposed
 958      # then it should be set to 0.
 959      $g_preview_max_height = 250;
 960  
 961      # --- Show an attachment indicator on bug list ---
 962      # Show a clickable attachment indicator on the bug
 963      # list page if the bug has one or more files attached.
 964      # Note: This option is disabled by default since it adds
 965      # 1 database query per bug listed and thus might slow
 966      # down the page display.
 967      $g_show_attachment_indicator = OFF;
 968  
 969      # access level needed to view bugs attachments.  View means to see the file names
 970      # sizes, and timestamps of the attachments.
 971      $g_view_attachments_threshold    = VIEWER;
 972  
 973      # list of filetypes to view inline. This is a string of extentions separated by commas
 974      # This is used when downloading an attachment.  Rather than downloading, the attachment
 975      # is viewed in the browser.
 976      $g_inline_file_exts = 'gif,png';
 977  
 978      # access level needed to download bug attachments
 979      $g_download_attachments_threshold    = VIEWER;
 980  
 981      # access level needed to delete bug attachments
 982      $g_delete_attachments_threshold    = DEVELOPER;
 983  
 984      # allow users to view attachments uploaded by themselves even if their access
 985      # level is below view_attachments_threshold.
 986      $g_allow_view_own_attachments = ON;
 987  
 988      # allow users to download attachments uploaded by themselves even if their access
 989      # level is below download_attachments_threshold.
 990      $g_allow_download_own_attachments = ON;
 991  
 992      # allow users to delete attachments uploaded by themselves even if their access
 993      # level is below delete_attachments_threshold.
 994      $g_allow_delete_own_attachments = OFF;
 995  
 996      ############################
 997      # Mantis Misc Settings
 998      ############################
 999  
1000      # --- access level thresholds (*_threshold) ---
1001  
1002      # access level needed to report a bug
1003      $g_report_bug_threshold            = REPORTER;
1004  
1005      # access level needed to update bugs (i.e., the update_bug_page)
1006      #  This controls whether the user sees the "Update Bug" button in bug_view*_page
1007      #  and the pencil icon in view_all_bug_page
1008      $g_update_bug_threshold            = UPDATER;
1009  
1010      # access level needed to monitor bugs
1011      # Look in the constant_inc.php file if you want to set a different value
1012      $g_monitor_bug_threshold        = REPORTER;
1013  
1014      # access level needed to view private bugs
1015      # Look in the constant_inc.php file if you want to set a different value
1016      $g_private_bug_threshold        = DEVELOPER;
1017  
1018      # access level needed to be able to be listed in the assign to field.
1019      $g_handle_bug_threshold            = DEVELOPER;
1020      # access level needed to show the Assign To: button bug_view*_page or
1021      #  the Assigned list in bug_update*_page.
1022      #  This allows control over who can route bugs
1023      # This defaults to $g_handle_bug_threshold
1024      $g_update_bug_assign_threshold            = '%handle_bug_threshold%';
1025  
1026      # access level needed to view private bugnotes
1027      # Look in the constant_inc.php file if you want to set a different value
1028      $g_private_bugnote_threshold    = DEVELOPER;
1029  
1030      # access level needed to view handler in bug reports and notification email
1031      # @@@ yarick123: now it is implemented for notification email only
1032      $g_view_handler_threshold        = VIEWER;
1033  
1034      # access level needed to view history in bug reports and notification email
1035      # @@@ yarick123: now it is implemented for notification email only
1036      $g_view_history_threshold        = VIEWER;
1037  
1038      # access level needed to send a reminder from the bug view pages
1039      # set to NOBODY to disable the feature
1040      $g_bug_reminder_threshold        = DEVELOPER;
1041  
1042      # access level needed to upload files to the project documentation section
1043      # You can set this to NOBODY to prevent uploads to projects
1044      # See also: $g_upload_bug_file_threshold, $g_allow_file_upload
1045      $g_upload_project_file_threshold = MANAGER;
1046  
1047      # access level needed to upload files to attach to a bug
1048      # You can set this to NOBODY to prevent uploads to bugs but note that
1049      #  the reporter of the bug will still be able to upload unless you set
1050      #  $g_allow_reporter_upload or $g_allow_file_upload to OFF
1051      # See also: $g_upload_project_file_threshold, $g_allow_file_upload,
1052      #            $g_allow_reporter_upload
1053      $g_upload_bug_file_threshold    = REPORTER;
1054  
1055      # Add bugnote threshold
1056      $g_add_bugnote_threshold = REPORTER;
1057  
1058      # Update bugnote threshold (if the bugnote is not your own)
1059      $g_update_bugnote_threshold = DEVELOPER;
1060  
1061      # Threshold needed to view project documentation
1062      $g_view_proj_doc_threshold = ANYBODY;
1063  
1064      # Threshold needed to manage a project: edit project
1065      # details (not to add/delete projects), upload documentation, ...etc.
1066      $g_manage_project_threshold = MANAGER;
1067  
1068      # Threshold needed to add/delete/modify news
1069      $g_manage_news_threshold = MANAGER;
1070  
1071      # Threshold required to delete a project
1072      $g_delete_project_threshold = ADMINISTRATOR;
1073  
1074      # Threshold needed to create a new project
1075      $g_create_project_threshold = ADMINISTRATOR;
1076  
1077      # Threshold needed to be automatically included in private projects
1078      $g_private_project_threshold = ADMINISTRATOR;
1079  
1080      # Threshold needed to manage user access to a project
1081      $g_project_user_threshold = MANAGER;
1082  
1083      # Threshold needed to manage user accounts
1084      $g_manage_user_threshold = ADMINISTRATOR;
1085  
1086      # Delete bug threshold
1087      $g_delete_bug_threshold = DEVELOPER;
1088  
1089      # Delete bugnote threshold
1090      $g_delete_bugnote_threshold = '%delete_bug_threshold%';
1091  
1092      # Are users allowed to change and delete their own bugnotes?
1093      $g_bugnote_allow_user_edit_delete = ON;
1094  
1095      # Move bug threshold
1096      $g_move_bug_threshold = DEVELOPER;
1097  
1098      # Threshold needed to set the view status while reporting a bug or a bug note.
1099      $g_set_view_status_threshold = REPORTER;
1100  
1101      # Threshold needed to update the view status while updating a bug or a bug note.
1102      # This threshold should be greater or equal to $g_set_view_status_threshold.
1103      $g_change_view_status_threshold = UPDATER;
1104  
1105      # --- Threshold needed to show the list of users montoring a bug on the bug view pages.
1106      $g_show_monitor_list_threshold = DEVELOPER;
1107  
1108      # Threshold needed to be able to use stored queries
1109      $g_stored_query_use_threshold = REPORTER;
1110  
1111      # Threshold needed to be able to create stored queries
1112      $g_stored_query_create_threshold = DEVELOPER;
1113  
1114      # Threshold needed to be able to create shared stored queries
1115      $g_stored_query_create_shared_threshold = MANAGER;
1116  
1117      # Threshold needed to update readonly bugs.  Readonly bugs are identified via
1118      # $g_bug_readonly_status_threshold.
1119      $g_update_readonly_bug_threshold = MANAGER;
1120  
1121      # threshold for viewing changelog
1122      $g_view_changelog_threshold = VIEWER;
1123  
1124      # threshold for viewing roadmap
1125      $g_roadmap_view_threshold = VIEWER;
1126      
1127      # threshold for updating roadmap, target_version, etc
1128      $g_roadmap_update_threshold = DEVELOPER;
1129      
1130      # status change thresholds
1131      $g_update_bug_status_threshold = DEVELOPER;
1132  
1133      # access level needed to re-open bugs
1134      $g_reopen_bug_threshold            = DEVELOPER;
1135  
1136      # access level needed to set a bug sticky
1137      $g_set_bug_sticky_threshold            = MANAGER;
1138      
1139      # The minimum access level for someone to be a member of the development team
1140      # and appear on the project information page.
1141      $g_development_team_threshold = DEVELOPER;
1142  
1143      # this array sets the access thresholds needed to enter each status listed.
1144      # if a status is not listed, it falls back to $g_update_bug_status_threshold
1145      # example: $g_set_status_threshold = array( ACKNOWLEDGED => MANAGER, CONFIRMED => DEVELOPER, CLOSED => MANAGER );
1146      $g_set_status_threshold = array();
1147  
1148      # --- login method ----------------
1149      # CRYPT or PLAIN or MD5 or LDAP or BASIC_AUTH
1150      # You can simply change this at will. Mantis will try to figure out how the passwords were encrypted.
1151      $g_login_method                = MD5;
1152  
1153      # --- limit reporters -------------
1154      # Set to ON if you wish to limit reporters to only viewing bugs that they report.
1155      $g_limit_reporters            = OFF;
1156  
1157      # --- close immediately -----------
1158      # Allow developers and above to close bugs immediately when resolving bugs
1159      $g_allow_close_immediately    = OFF;
1160  
1161      # --- reporter can close ----------
1162      # Allow reporters to close the bugs they reported, after they're marked resolved.
1163      $g_allow_reporter_close        = OFF;
1164  
1165      # --- reporter can reopen ---------
1166      # Allow reporters to reopen the bugs they reported, after they're marked resolved.
1167      $g_allow_reporter_reopen    = ON;
1168  
1169      # --- reporter can upload ---------
1170      # Allow reporters to upload attachments to bugs they reported.
1171      $g_allow_reporter_upload    = ON;
1172  
1173      # --- account delete -----------
1174      # Allow users to delete their own accounts
1175      $g_allow_account_delete        = OFF;
1176  
1177      # --- anonymous login -----------
1178      # Allow anonymous login
1179      $g_allow_anonymous_login    = OFF;
1180      $g_anonymous_account        = '';
1181  
1182      # --- CVS linking ---------------
1183      # insert the URL to your CVSweb or ViewCVS
1184      # eg: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/mantisbt/mantisbt/
1185      $g_cvs_web                = '';
1186  
1187      # --- Source Control Integration ------
1188  
1189      # For open source projects it is expected that the notes be public, however,
1190      # for non-open source it will probably be VS_PRIVATE.
1191      $g_source_control_notes_view_status = VS_PRIVATE;
1192  
1193      # Account to be used by the source control script.  The account must be enabled
1194      # and must have the appropriate access level to add notes to all issues even
1195      # private ones (DEVELOPER access recommended).
1196      $g_source_control_account           = '';
1197  
1198      # If set to a status, then after a checkin with a log message that matches the regular expression in
1199      # $g_source_control_fixed_regexp, the issue status is set to the specified status.  If set to OFF, the
1200      # issue status is not changed.
1201      $g_source_control_set_status_to     = OFF;
1202  
1203      # Whenever an issue status is set to $g_source_control_set_status_to, the issue resolution is set to
1204      # the value specified for this configuration.
1205      $g_source_control_set_resolution_to = FIXED;
1206  
1207      # Regular expression used to detect issue ids within checkin comments.
1208      # see preg_match_all() documentation at
1209      # http://www.php.net/manual/en/function.preg-match-all.php
1210      $g_source_control_regexp = "/\bissue [#]{0,1}(\d+)\b/i";
1211  
1212      # Regular expression used to detect the fact that an issue is fixed and extracts
1213      # its issue id.  If there is a match to this regular expression, then the issue
1214      # will be marked as resolved and the resolution will be set to fixed.
1215      $g_source_control_fixed_regexp = "%source_control_regexp%";
1216  
1217      # --- Bug Linking ---------------
1218      # if a number follows this tag it will create a link to a bug.
1219      # eg. for # a link would be #45
1220      # eg. for bug: a link would be bug:98
1221      $g_bug_link_tag            = '#';
1222  
1223      # --- Bugnote Linking ---------------
1224      # if a number follows this tag it will create a link to a bugnote.
1225      # eg. for ~ a link would be ~45
1226      # eg. for bugnote: a link would be bugnote:98
1227      $g_bugnote_link_tag            = '~';
1228  
1229      # --- Bug Count Linking ----------
1230      # this is the prefix to use when creating links to bug views from bug counts (eg. on the main
1231      # page and the summary page).
1232      # $g_bug_count_hyperlink_prefix = 'view_all_set.php?type=1';                # permanently change the filter
1233      $g_bug_count_hyperlink_prefix = 'view_all_set.php?type=1&amp;temporary=y';    # only change the filter this time
1234  
1235      # The regular expression to use when validating new user login names
1236      # The default regular expression allows a-z, A-z, 0-9, as well as space and
1237      #  underscore.  If you change this, you may want to update the
1238      #  ERROR_USER_NAME_INVALID string in the language files to explain
1239      #  the rules you are using on your site
1240      $g_user_login_valid_regex = '/^[\w \-]+$/';
1241  
1242      # Default user name prefix used to filter the list of users in
1243      # manage_user_page.php.  Change this to 'A' (or any other
1244      # letter) if you have a lot of users in the system and loading
1245      # the manage users page takes a long time.
1246      $g_default_manage_user_prefix = 'ALL';
1247  
1248      # --- CSV Export ---------------
1249      # Set the csv separator
1250      $g_csv_separator = ',';
1251  
1252      # threshold for users to view the system configurations
1253      $g_view_configuration_threshold = DEVELOPER;
1254  
1255      # threshold for users to set the system configurations generically via Mantis web interface.
1256      # WARNING: Users who have access to set configuration via the interface MUST be trusted.  This is due
1257      # to the fact that such users can set configurations to PHP code and hence there can be a security
1258      # risk if such users are not trusted.
1259      $g_set_configuration_threshold = ADMINISTRATOR;
1260  
1261      ################################
1262      # Mantis Look and Feel Variables
1263      ################################
1264  
1265      # --- status color codes ----------
1266      #
1267      $g_status_colors        = array( 'new'            => '#ffa0a0', # red,
1268                                       'feedback'        => '#ff50a8', # purple
1269                                       'acknowledged'    => '#ffd850', # orange
1270                                       'confirmed'    => '#ffffb0', # yellow
1271                                       'assigned'        => '#c8c8ff', # blue
1272                                       'resolved'        => '#cceedd', # buish-green
1273                                       'closed'        => '#e8e8e8'); # light gray
1274  
1275      # The padding level when displaying project ids
1276      #  The bug id will be padded with 0's up to the size given
1277      $g_display_project_padding    = 3;
1278  
1279      # The padding level when displaying bug ids
1280      #  The bug id will be padded with 0's up to the size given
1281      $g_display_bug_padding        = 7;
1282  
1283      # The padding level when displaying bugnote ids
1284      #  The bugnote id will be padded with 0's up to the size given
1285      $g_display_bugnote_padding    = 7;
1286  
1287      # colours for configuration display
1288      $g_colour_project = 'LightGreen';
1289      $g_colour_global = 'LightBlue';
1290  
1291      ###############################
1292      # Mantis Cookie Variables
1293      ###############################
1294  
1295      # --- cookie path ---------------
1296      # set this to something more restrictive if needed
1297      # http://www.php.net/manual/en/function.setcookie.php
1298      $g_cookie_path            = '/';
1299      $g_cookie_domain        = '';
1300      # cookie version for view_all_page
1301      $g_cookie_version        = 'v8';
1302  
1303      # --- cookie prefix ---------------
1304      # set this to a unique identifier.  No spaces.
1305      $g_cookie_prefix        = 'MANTIS';
1306  
1307      # --- cookie names ----------------
1308      $g_string_cookie        = '%cookie_prefix%_STRING_COOKIE';
1309      $g_project_cookie        = '%cookie_prefix%_PROJECT_COOKIE';
1310      $g_view_all_cookie        = '%cookie_prefix%_VIEW_ALL_COOKIE';
1311      $g_manage_cookie        = '%cookie_prefix%_MANAGE_COOKIE';
1312      $g_logout_cookie        = '%cookie_prefix%_LOGOUT_COOKIE';
1313      $g_bug_list_cookie        = '%cookie_prefix%_BUG_LIST_COOKIE';
1314  
1315      #######################################
1316      # Mantis Filter Variables
1317      #######################################
1318      $g_filter_by_custom_fields = ON;
1319      $g_filter_custom_fields_per_row = 8;
1320      $g_view_filters = SIMPLE_DEFAULT;
1321  
1322      # This switch enables the use of xmlhttprequest protocol to speed up the filter display.
1323      # Rather than launching a separate page, the filters are updated in-line in the
1324      # view_all_bugs_page.
1325      $g_dhtml_filters = ON;
1326      
1327      # The service to use to create a short URL.  The %s will be replaced by the long URL.
1328      $g_create_short_url = 'http://tinyurl.com/create.php?url=%s';
1329  
1330      #######################################
1331      # Mantis Database Table Variables
1332      #######################################
1333  
1334      # --- table prefix ----------------
1335      $g_db_table_prefix        = 'mantis';
1336      $g_db_table_suffix        = '_table';
1337  
1338      # --- table names -----------------
1339      $g_mantis_bug_file_table                = '%db_table_prefix%_bug_file%db_table_suffix%';
1340      $g_mantis_bug_history_table                = '%db_table_prefix%_bug_history%db_table_suffix%';
1341      $g_mantis_bug_monitor_table                = '%db_table_prefix%_bug_monitor%db_table_suffix%';
1342      $g_mantis_bug_relationship_table        = '%db_table_prefix%_bug_relationship%db_table_suffix%';
1343      $g_mantis_bug_table                        = '%db_table_prefix%_bug%db_table_suffix%';
1344      $g_mantis_bug_tag_table                    = '%db_table_prefix%_bug_tag%db_table_suffix%';
1345      $g_mantis_bug_text_table                = '%db_table_prefix%_bug_text%db_table_suffix%';
1346      $g_mantis_bugnote_table                    = '%db_table_prefix%_bugnote%db_table_suffix%';
1347      $g_mantis_bugnote_text_table            = '%db_table_prefix%_bugnote_text%db_table_suffix%';
1348      $g_mantis_news_table                    = '%db_table_prefix%_news%db_table_suffix%';
1349      $g_mantis_project_category_table        = '%db_table_prefix%_project_category%db_table_suffix%';
1350      $g_mantis_project_file_table            = '%db_table_prefix%_project_file%db_table_suffix%';
1351      $g_mantis_project_table                    = '%db_table_prefix%_project%db_table_suffix%';
1352      $g_mantis_project_user_list_table        = '%db_table_prefix%_project_user_list%db_table_suffix%';
1353      $g_mantis_project_version_table            = '%db_table_prefix%_project_version%db_table_suffix%';
1354      $g_mantis_tag_table                        = '%db_table_prefix%_tag%db_table_suffix%';
1355      $g_mantis_user_table                    = '%db_table_prefix%_user%db_table_suffix%';
1356      $g_mantis_user_profile_table            = '%db_table_prefix%_user_profile%db_table_suffix%';
1357      $g_mantis_user_pref_table                = '%db_table_prefix%_user_pref%db_table_suffix%';
1358      $g_mantis_user_print_pref_table            = '%db_table_prefix%_user_print_pref%db_table_suffix%';
1359      $g_mantis_custom_field_project_table    = '%db_table_prefix%_custom_field_project%db_table_suffix%';
1360      $g_mantis_custom_field_table              = '%db_table_prefix%_custom_field%db_table_suffix%';
1361      $g_mantis_custom_field_string_table     = '%db_table_prefix%_custom_field_string%db_table_suffix%';
1362      $g_mantis_upgrade_table                    = '%db_table_prefix%_upgrade%db_table_suffix%';
1363      $g_mantis_filters_table                    = '%db_table_prefix%_filters%db_table_suffix%';
1364      $g_mantis_sponsorship_table                = '%db_table_prefix%_sponsorship%db_table_suffix%';
1365      $g_mantis_tokens_table                    = '%db_table_prefix%_tokens%db_table_suffix%';
1366      $g_mantis_project_hierarchy_table        = '%db_table_prefix%_project_hierarchy%db_table_suffix%';
1367      $g_mantis_config_table                    = '%db_table_prefix%_config%db_table_suffix%';
1368      $g_mantis_database_table                = '%db_table_prefix%_database%db_table_suffix%';
1369      $g_mantis_email_table                    = '%db_table_prefix%_email%db_table_suffix%';
1370  
1371      ###########################
1372      # Mantis Enum Strings
1373      ###########################
1374  
1375      # --- enum strings ----------------
1376      # status from $g_status_index-1 to 79 are used for the onboard customization (if enabled)
1377      # directly use Mantis to edit them.
1378      $g_access_levels_enum_string        = '10:viewer,25:reporter,40:updater,55:developer,70:manager,90:administrator';
1379      $g_project_status_enum_string        = '10:development,30:release,50:stable,70:obsolete';
1380      $g_project_view_state_enum_string    = '10:public,50:private';
1381      $g_view_state_enum_string            = '10:public,50:private';
1382  
1383      $g_priority_enum_string                = '10:none,20:low,30:normal,40:high,50:urgent,60:immediate';
1384      $g_severity_enum_string                = '10:feature,20:trivial,30:text,40:tweak,50:minor,60:major,70:crash,80:block';
1385      $g_reproducibility_enum_string        = '10:always,30:sometimes,50:random,70:have not tried,90:unable to duplicate,100:N/A';
1386      $g_status_enum_string                = '10:new,20:feedback,30:acknowledged,40:confirmed,50:assigned,80:resolved,90:closed';
1387        # @@@ for documentation, the values in this list are also used to define variables in the language files
1388        #  (e.g., $s_new_bug_title referenced in bug_change_status_page.php )
1389        # Embedded spaces are converted to underscores (e.g., "working on" references $s_working_on_bug_title).
1390        # they are also expected to be english names for the states
1391      $g_resolution_enum_string            = '10:open,20:fixed,30:reopened,40:unable to duplicate,50:not fixable,60:duplicate,70:not a bug,80:suspended,90:wont fix';
1392      $g_projection_enum_string            = '10:none,30:tweak,50:minor fix,70:major rework,90:redesign';
1393      $g_eta_enum_string                    = '10:none,20:< 1 day,30:2-3 days,40:< 1 week,50:< 1 month,60:> 1 month';
1394      $g_sponsorship_enum_string          = '0:Unpaid,1:Requested,2:Paid';
1395  
1396      $g_custom_field_type_enum_string    = '0:string,1:numeric,2:float,3:enum,4:email,5:checkbox,6:list,7:multiselection list,8:date';
1397  
1398      #############################
1399      # Mantis Javascript Variables
1400      #############################
1401  
1402      # allow the use of Javascript?
1403      $g_use_javascript        = ON;
1404  
1405      ###########################
1406      # Mantis Speed Optimisation
1407      ###########################
1408  
1409      # Use compression of generated html if browser supports it
1410      # If you already have compression enabled in your php.ini file
1411      #  (either with zlib.output_compression or
1412      #  output_handler=ob_gzhandler) this option will be ignored.
1413      #
1414      # If you do not have zlib enabled in your PHP installation
1415      #  this option will also be ignored.  PHP 4.3.0 and later have
1416      #  zlib included by default.  Windows users should uncomment
1417      #  the appropriate line in their php.ini files to load
1418      #  the zlib DLL.  You can check what extensions are loaded
1419      #  by running "php -m" at the command line (look for 'zlib')
1420      $g_compress_html        = ON;
1421  
1422      # Use persistent database connections
1423      $g_use_persistent_connections    = OFF;
1424  
1425      ###########################
1426      # Include files
1427      ###########################
1428  
1429      # Specify your top/bottom include file (logos, banners, etc)
1430      # if a top file is supplied, the default Mantis logo at the top will be hidden
1431      $g_bottom_include_page            = '%absolute_path%';
1432      $g_top_include_page                = '%absolute_path%';
1433      # CSS file
1434      $g_css_include_file                = '%path%css/default.css';
1435      # meta tags
1436      $g_meta_include_file            = '%absolute_path%meta_inc.php';
1437  
1438      ###########################
1439      # Redirections
1440      ###########################
1441  
1442      # Specify where the user should be sent after logging out.
1443      $g_logout_redirect_page            = '%path%login_page.php';
1444  
1445      ###########################
1446      # Headers
1447      ###########################
1448  
1449      # An array of headers to be sent with each page.
1450      # For example, to allow your mantis installation to be viewed in a frame in IE 6
1451      #  when the frameset is not at the same hostname as the mantis install, you need
1452      #  to add a P3P header.  You could try something like 'P3P: CP="CUR ADM"' in your
1453      #  config file, but make sure to check that the your policy actually matches with
1454      #  what you are promising. See
1455      #  http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpriv/html/ie6privacyfeature.asp
1456      #  for more information.
1457  
1458      $g_custom_headers                = array();
1459      #$g_custom_headers[]            = 'P3P: CP="CUR ADM"';
1460  
1461      # Browser Caching Control
1462      # By default, we try to prevent the browser from caching anything. These two settings
1463      # will defeat this for some cases.
1464      #
1465      # Browser Page caching - This will allow the browser to cache all pages. The upside will
1466      #  be better performance, but there may be cases where obsolete information is displayed.
1467      #  Note that this will be bypassed (and caching is allowed) for the bug report pages.
1468      # $g_allow_browser_cache = ON;
1469      #
1470      # File caching - This will allow the browser to cache downloaded files. Without this set,
1471      # there may be issues with IE receiving files, and launching support programs.
1472      # $g_allow_file_cache = ON;
1473  
1474      ###########################
1475      # Debugging
1476      ###########################
1477  
1478      # --- Timer ----------------------
1479      # Time page loads.  Shows at the bottom of the page.
1480      $g_show_timer            = OFF;
1481  
1482      # used for development only.  Leave OFF
1483      $g_debug_timer            = OFF;
1484  
1485      # Used for debugging e-mail feature, when set to OFF the emails work as normal.
1486      # when set to e-mail address, all e-mails are sent to this address with the
1487      # original To, Cc, Bcc included in the message body.
1488      $g_debug_email            = OFF;
1489  
1490      # --- Queries --------------------
1491      # Shows the total number/unique number of queries executed to serve the page.
1492      $g_show_queries_count    = ON;
1493  
1494      # Indicates the access level required for a user to see the queries count / list.
1495      # This only has an effect if $g_show_queries_count is ON.  Note that this threshold
1496      # is compared against the user's default global access level rather than the
1497      # threshold based on the current active project.
1498      $g_show_queries_threshold = ADMINISTRATOR;
1499  
1500      # Shows the list of all queries that are executed in chronological order from top
1501      # to bottom.  This option is only effective when $g_show_queries_count is ON.
1502      # WARNING: Potential security hazard.  Only turn this on when you really
1503      # need it (for debugging/profiling)
1504      $g_show_queries_list    = OFF;
1505      
1506      # --- detailed error messages -----
1507      # Shows a list of variables and their values when an error is triggered
1508      # Only applies to error types configured to 'halt' in $g_display_errors, below
1509      # WARNING: Potential security hazard.  Only turn this on when you really
1510      # need it for debugging
1511      $g_show_detailed_errors    = OFF;
1512  
1513      # --- error display ---
1514      # what errors are displayed and how?
1515      # The options for display are:
1516      #  'halt' - stop and display traceback
1517      #  'inline' - display 1 line error and continue
1518      #  'none' - no error displayed
1519      # A developer might set this in config_inc.php as:
1520      #    $g_display_errors = array(
1521      #        E_WARNING => 'halt',
1522      #        E_NOTICE => 'halt',
1523      #        E_USER_ERROR => 'halt',
1524      #        E_USER_WARNING => 'none',
1525      #        E_USER_NOTICE => 'none'
1526      #    );
1527  
1528      $g_display_errors = array(
1529          E_WARNING => 'inline',
1530          E_NOTICE => 'none',
1531          E_USER_ERROR => 'halt',
1532          E_USER_WARNING => 'inline',
1533          E_USER_NOTICE => 'none'
1534      );
1535  
1536      # --- debug messages ---
1537      # If this option is turned OFF (default) page redirects will continue to
1538      #  function even if a non-fatal error occurs.  For debugging purposes, you
1539      #  can set this to ON so that any non-fatal error will prevent page redirection,
1540      #  allowing you to see the errors.
1541      # Only turn this option on for debugging
1542      $g_stop_on_errors        = OFF;
1543  
1544      # --- system logging ---
1545      # This controls the logging of information to a separate file for debug or audit
1546      # $g_log_level controls what information is logged
1547      #  see constant_inc.php for details on the log channels available
1548      #  e.g., $g_log_level = LOG_EMAIL | LOG_EMAIL_RECIPIENT | LOG_FILTERING | LOG_AJAX;
1549      #
1550      # $g_log_destination specifies the file where the data goes
1551      #   right now, only "file:<file path>" is supported
1552      #   e.g. (Linux), $g_log_destination = 'file:/tmp/mantis.log';
1553      #   e.g. (Windows), $g_log_destination = 'file:c:/temp/mantis.log';
1554      #   see http://www.php.net/error_log for details
1555      $g_log_level = LOG_NONE;
1556      $g_log_destination = '';
1557  
1558      ##################
1559      # Custom Fields
1560      ##################
1561  
1562      # Threshold needed to manage custom fields
1563      $g_manage_custom_fields_threshold = ADMINISTRATOR;
1564  
1565      # Threshold needed to link/unlink custom field to/from a project
1566      $g_custom_field_link_threshold = MANAGER;
1567  
1568      # Whether to start editng a custom field immediately after creating it
1569      $g_custom_field_edit_after_create = ON;
1570  
1571  
1572      #################
1573      # Custom Menus
1574      #################
1575  
1576      # Add custom options to the main menu.  For example:
1577      # $g_main_menu_custom_options = array(    array( "My Link",  MANAGER,       'my_link.php' ),
1578      #                    array( "My Link2", ADMINISTRATOR, 'my_link2.php' ) );
1579      # Note that if the caption is found in custom_strings_inc.php, then it will be replaced by the
1580      # translated string.  Options will only be added to the menu if the current logged in user has
1581      # the appropriate access level.
1582      $g_main_menu_custom_options = array ();
1583  
1584      ##########
1585      # Icons
1586      ##########
1587  
1588      # Maps a file extension to a file type icon.  These icons are printed
1589      # next to project documents and bug attachments.
1590      # Note:
1591      # - Extensions must be in lower case
1592      # - All icons will be displayed as 16x16 pixels.
1593      $g_file_type_icons = array(    
1594          '7z'    => 'zip.gif',
1595          'ace'    => 'zip.gif',
1596          'arj'    => 'zip.gif',
1597          'bz2'    => 'zip.gif',
1598          'c'        => 'cpp.gif',
1599          'chm'    => 'chm.gif',
1600          'cpp'    => 'cpp.gif',
1601          'css'    => 'css.gif',
1602          'csv'    => 'csv.gif',
1603          'cxx'    => 'cpp.gif',
1604          'doc'    => 'doc.gif',
1605          'dot'    => 'doc.gif',
1606          'eml'    => 'eml.gif',
1607          'htm'    => 'html.gif',
1608          'html'    => 'html.gif',
1609          'gif'    => 'gif.gif',
1610          'gz'    => 'zip.gif',
1611          'jpe'    => 'jpg.gif',
1612          'jpg'    => 'jpg.gif',
1613          'jpeg'    => 'jpg.gif',
1614          'log'    => 'text.gif',
1615          'lzh'    => 'zip.gif',
1616          'mhtml'    => 'html.gif',
1617          'mid'    => 'mid.gif',
1618          'midi'    => 'mid.gif',
1619          'mov'    => 'mov.gif',
1620          'msg'    => 'eml.gif',
1621          'one'    => 'one.gif',
1622          'pcx'    => 'pcx.gif',
1623          'pdf'    => 'pdf.gif',
1624          'png'    => 'png.gif',
1625          'pot'    => 'pot.gif',
1626          'pps'    => 'pps.gif',
1627          'ppt'    => 'ppt.gif',
1628          'pub'    => 'pub.gif',
1629          'rar'    => 'zip.gif',
1630          'reg'    => 'reg.gif',
1631          'rtf'    => 'doc.gif',
1632          'tar'    => 'zip.gif',
1633          'tgz'    => 'zip.gif',
1634          'txt'    => 'text.gif',
1635          'uc2'    => 'zip.gif',
1636          'vsd'    => 'vsd.gif',
1637          'vsl'    => 'vsl.gif',
1638          'vss'    => 'vsd.gif',
1639          'vst'    => 'vst.gif',
1640          'vsu'    => 'vsd.gif',
1641          'vsw'    => 'vsd.gif',
1642          'vsx'    => 'vsd.gif',
1643          'vtx'    => 'vst.gif',
1644          'wav'    => 'wav.gif',
1645          'wbk'    => 'wbk.gif',
1646          'wma'    => 'wav.gif',
1647          'wmv'    => 'mov.gif',
1648          'wri'    => 'wri.gif',
1649          'xlk'    => 'xls.gif',
1650          'xls'    => 'xls.gif',
1651          'xlt'    => 'xlt.gif',
1652          'xml'    => 'xml.gif',
1653          'zip'    => 'zip.gif',
1654          '?'        => 'generic.gif' );
1655  
1656      # Icon associative arrays
1657      # Status to icon mapping
1658      $g_status_icon_arr = array (
1659          NONE      => '',
1660          LOW       => 'priority_low_1.gif',
1661          NORMAL    => '',
1662          HIGH      => 'priority_1.gif',
1663          URGENT    => 'priority_2.gif',
1664          IMMEDIATE => 'priority_3.gif'
1665      );
1666      # --------------------
1667      # Sort direction to icon mapping
1668      $g_sort_icon_arr = array (
1669          ASCENDING  => 'up.gif',
1670          DESCENDING => 'down.gif'
1671      );
1672      # --------------------
1673      # Read status to icon mapping
1674      $g_unread_icon_arr = array (
1675          READ         => 'mantis_space.gif',
1676          UNREAD       => 'unread.gif'
1677      );
1678      # --------------------
1679  
1680      ##################
1681      # My View Settings
1682      ##################
1683  
1684      # Number of bugs shown in each box
1685      $g_my_view_bug_count = 10;
1686  
1687      # Boxes to be shown and their order
1688      # A box that is not to be shown can have its value set to 0
1689      $g_my_view_boxes = array (
1690          'assigned'      => '1',
1691          'unassigned'    => '2',
1692          'reported'      => '3',
1693          'resolved'      => '4',
1694          'recent_mod'    => '5',
1695          'monitored'        => '6',
1696          'feedback'        => '0',
1697          'verify'        => '0'
1698      );
1699  
1700      # Toggle whether 'My View' boxes are shown in a fixed position (i.e. adjacent boxes start at the same vertical position)
1701      $g_my_view_boxes_fixed_position = ON;
1702  
1703      # Default page after Login or Set Project
1704      $g_default_home_page = 'my_view_page.php';
1705  
1706      ######################
1707      # RSS Feeds
1708      ######################
1709  
1710      # This flag enables or disables RSS syndication.  In the case where RSS syndication is not used,
1711      # it is recommended to set it to OFF.
1712      $g_rss_enabled = ON;
1713  
1714      # This seed is used as part of the inputs for calculating the authentication key for the RSS feeds.
1715      # If this seed changes, all the existing keys for the RSS feeds will become invalid.  This is 
1716      # defaulted to the database user name, but it is recommended to overwrite it with a specific value
1717      # on installation.
1718      $g_rss_key_seed = '%db_username%';
1719  
1720      ######################
1721      # Bug Relationships
1722      ######################
1723  
1724      # Enable support for bug relationships where a bug can be a related, dependent on, or duplicate of another.
1725      # See relationship_api.php for more details.
1726      $g_enable_relationship = ON;
1727  
1728      # --- Relationship Graphs -----------
1729      # Show issue relationships using graphs.
1730      #
1731      # In order to use this feature, you must first install either GraphViz
1732      # (all OSs except Windows) or WinGraphviz (only Windows).
1733      #
1734      # Graphviz homepage:    http://www.research.att.com/sw/tools/graphviz/
1735      # WinGraphviz homepage: http://home.so-net.net.tw/oodtsen/wingraphviz/
1736      #
1737      # Refer to the notes near the top of core/graphviz_api.php and
1738      # core/relationship_graph_api.php for more information.
1739  
1740      # Enable relationship graphs support.
1741      $g_relationship_graph_enable        = OFF;
1742  
1743      # Font name and size, as required by Graphviz. If Graphviz fails to run
1744      # for you, you are probably using a font name that gd can't find. On
1745      # Linux, try the name of the font file without the extension.
1746      $g_relationship_graph_fontname        = 'Arial';
1747      $g_relationship_graph_fontsize        = 8;
1748  
1749      # Local path where the above font is found on your system for Relationship Graphs
1750      # You shouldn't care about this on Windows since there is only one system
1751      # folder where fonts are installed and Graphviz already knows where it
1752      # is. On Linux and other unices, the default font search path is defined
1753      # during Graphviz compilation. If you are using a pre-compiled Graphviz
1754      # package provided by your distribution, probably the font search path was
1755      # already configured by the packager.
1756      #
1757      # If for any reason, the font file you want to use is not in any directory
1758      # listed on the default font search path list, you can either: (1) export
1759      # the DOTFONTPATH environment variable in your webserver startup script
1760      # or (2) use this config option conveniently available here. If you need
1761      # to list more than one directory, use colons to separate them.
1762  
1763      # Since 0.19.3 we use the $g_system_font_folder variable to define the font folder
1764  
1765      # Default dependency orientation. If you have issues with lots of childs
1766      # or parents, leave as 'horizontal', otherwise, if you have lots of
1767      # "chained" issue dependencies, change to 'vertical'.
1768      $g_relationship_graph_orientation    = 'horizontal';
1769  
1770      # Max depth for relation graphs. This only affects relation graphs,
1771      # dependency graphs are drawn to the full depth. A value of 3 is already
1772      # enough to show issues really unrelated to the one you are currently
1773      # viewing.
1774      $g_relationship_graph_max_depth        = 2;
1775  
1776      # If set to ON, clicking on an issue on the relationship graph will open
1777      # the bug view page for that issue, otherwise, will navigate to the
1778      # relationship graph for that issue.
1779      $g_relationship_graph_view_on_click    = OFF;
1780  
1781      # Complete path to dot and neato tools. Your webserver must have execute
1782      # permission to these programs in order to generate relationship graphs.
1783      # NOTE: These are meaningless under Windows! Just ignore them!
1784      $g_dot_tool                            = '/usr/bin/dot';
1785      $g_neato_tool                        = '/usr/bin/neato';
1786  
1787      # Number of years in the future that custom date fields will display in
1788      # drop down boxes.
1789      $g_forward_year_count                 = 4 ;
1790  
1791      # Custom Group Actions
1792      #
1793      # This extensibility model allows developing new group custom actions.  This
1794      # can be implemented with a totally custom form and action pages or with a 
1795      # pre-implemented form and action page and call-outs to some functions.  These
1796      # functions are to be implemented in a predefined file whose name is based on
1797      # the action name.  For example, for an action to add a note, the action would
1798      # be EXT_ADD_NOTE and the file implementing it would be bug_actiongroup_add_note_inc.php.
1799      # See implementation of this file for details.
1800      #
1801      # Sample:
1802      #
1803      # array(
1804      #    array(    'action' => 'my_custom_action',
1805      #            'label' => 'my_label',   // string to be passed to lang_get_defaulted()
1806      #            'form_page' => 'my_custom_action_page.php',
1807      #            'action_page' => 'my_custom_action.php'
1808      #   )
1809      #    array(    'action' => 'my_custom_action2',
1810      #            'form_page' => 'my_custom_action2_page.php',
1811      #            'action_page' => 'my_custom_action2.php'
1812      #   )
1813      #    array(    'action' => 'EXT_ADD_NOTE',  // you need to implement bug_actiongroup_<action_without_'EXT_')_inc.php
1814      #        'label' => 'actiongroup_menu_add_note' // see strings_english.txt for this label
1815      #   )
1816      # );
1817      $g_custom_group_actions = array();
1818  
1819      #####################
1820      # Wiki Integration
1821      #####################
1822   
1823      # Wiki Integration Enabled?
1824      $g_wiki_enable = OFF;
1825  
1826      # Wiki Engine (supported engines: 'dokuwiki', 'mediawiki', 'xwiki')
1827      $g_wiki_engine = 'dokuwiki';
1828   
1829      # Wiki namespace to be used as root for all pages relating to this mantis installation.
1830      $g_wiki_root_namespace = 'mantis';
1831   
1832      # URL under which the wiki engine is hosted.  Must be on the same server.
1833      $g_wiki_engine_url = $t_protocol . '://' . $t_host . '/%wiki_engine%/';
1834      
1835      #####################
1836      # Recently Visited
1837      #####################
1838  
1839      # Whether to show the most recently visited issues or not.  At the moment we always track them even if this flag is off.
1840      $g_recently_visited = ON;
1841      
1842      # The maximum number of issues to keep in the recently visited list.
1843      $g_recently_visited_count = 5;
1844  
1845      #####################
1846      # Bug Tagging
1847      #####################
1848  
1849      # String that will separate tags as entered for input
1850      $g_tag_separator = ',';
1851  
1852      # Access level required to view tags attached to a bug
1853      $g_tag_view_threshold = VIEWER;
1854  
1855      # Access level required to attach tags to a bug
1856      $g_tag_attach_threshold = REPORTER;
1857  
1858      # Access level required to detach tags from a bug
1859      $g_tag_detach_threshold = DEVELOPER;
1860  
1861      # Access level required to detach tags attached by the same user
1862      $g_tag_detach_own_threshold = REPORTER;
1863  
1864      # Access level required to create new tags
1865      $g_tag_create_threshold = REPORTER;
1866  
1867      # Access level required to edit tag names and descriptions
1868      $g_tag_edit_threshold = DEVELOPER;
1869  
1870      # Access level required to edit descriptions by the creating user
1871      $g_tag_edit_own_threshold = REPORTER;
1872  
1873      #####################
1874      # Time tracking
1875      #####################
1876  
1877      # Turn on Time Tracking accounting
1878      $g_time_tracking_enabled = OFF;
1879  
1880      # A billing sums
1881      $g_time_tracking_with_billing = OFF;
1882  
1883      # Stop watch to build time tracking field
1884      $g_time_tracking_stopwatch = OFF;
1885  
1886      # access level required to view time tracking information
1887      $g_time_tracking_view_threshold = DEVELOPER;
1888  
1889      # access level required to add/edit time tracking information
1890      $g_time_tracking_edit_threshold = DEVELOPER;
1891  
1892      # access level required to run reports
1893      $g_time_tracking_reporting_threshold = MANAGER;
1894  
1895      #############################
1896      # Profile Related Settings
1897      #############################
1898  
1899      # Add profile threshold
1900      $g_add_profile_threshold = REPORTER;
1901  
1902      # Threshold needed to be able to create and modify global profiles
1903      $g_manage_global_profile_threshold = MANAGER;
1904  
1905      # Allows the users to enter free text when reporting/updating issues 
1906      # for the profile related fields (i.e. platform, os, os build)
1907      $g_allow_freetext_in_profile_fields = ON;
1908  
1909      #############################
1910      # Twitter Settings
1911      #############################
1912  
1913      # The integration with twitter allows for a Mantis installation to post
1914      # updates to a twitter account.  This feature will be disabled if username
1915      # is empty or if the curl extension is not enabled.
1916  
1917      # The twitter account user name.
1918      $g_twitter_username = '';
1919      
1920      # The twitter account password.
1921      $g_twitter_password = '';
1922  ?>


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