Core.pm 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. # -*- Mode: perl; indent-tabs-mode: nil -*-
  2. #
  3. # The contents of this file are subject to the Mozilla Public
  4. # License Version 1.1 (the "License"); you may not use this file
  5. # except in compliance with the License. You may obtain a copy of
  6. # the License at http://www.mozilla.org/MPL/
  7. #
  8. # Software distributed under the License is distributed on an "AS
  9. # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  10. # implied. See the License for the specific language governing
  11. # rights and limitations under the License.
  12. #
  13. # The Original Code is the Bugzilla Bug Tracking System.
  14. #
  15. # The Initial Developer of the Original Code is Netscape Communications
  16. # Corporation. Portions created by Netscape are
  17. # Copyright (C) 1998 Netscape Communications Corporation. All
  18. # Rights Reserved.
  19. #
  20. # Contributor(s): Terry Weissman <terry@mozilla.org>
  21. # Dawn Endico <endico@mozilla.org>
  22. # Dan Mosedale <dmose@mozilla.org>
  23. # Joe Robins <jmrobins@tgix.com>
  24. # Jacob Steenhagen <jake@bugzilla.org>
  25. # J. Paul Reed <preed@sigkill.com>
  26. # Bradley Baetz <bbaetz@student.usyd.edu.au>
  27. # Joseph Heenan <joseph@heenan.me.uk>
  28. # Erik Stambaugh <erik@dasbistro.com>
  29. # Frédéric Buclin <LpSolit@gmail.com>
  30. #
  31. package Bugzilla::Config::Core;
  32. use strict;
  33. use Bugzilla::Config::Common;
  34. $Bugzilla::Config::Core::sortkey = "00";
  35. sub get_param_list {
  36. my $class = shift;
  37. my @param_list = (
  38. {
  39. name => 'maintainer',
  40. type => 't',
  41. default => 'THE MAINTAINER HAS NOT YET BEEN SET'
  42. },
  43. {
  44. name => 'urlbase',
  45. type => 't',
  46. default => '',
  47. checker => \&check_urlbase
  48. },
  49. {
  50. name => 'docs_urlbase',
  51. type => 't',
  52. default => 'docs/%lang%/html/',
  53. checker => \&check_url
  54. },
  55. {
  56. name => 'sslbase',
  57. type => 't',
  58. default => '',
  59. checker => \&check_sslbase
  60. },
  61. {
  62. name => 'ssl',
  63. type => 's',
  64. choices => ['never', 'authenticated sessions', 'always'],
  65. default => 'never'
  66. },
  67. {
  68. name => 'cookiedomain',
  69. type => 't',
  70. default => ''
  71. },
  72. {
  73. name => 'cookiepath',
  74. type => 't',
  75. default => '/'
  76. },
  77. {
  78. name => 'timezone',
  79. type => 't',
  80. default => '',
  81. checker => \&check_timezone
  82. },
  83. {
  84. name => 'utf8',
  85. type => 'b',
  86. default => '0',
  87. checker => \&check_utf8
  88. },
  89. {
  90. name => 'shutdownhtml',
  91. type => 'l',
  92. default => ''
  93. },
  94. {
  95. name => 'announcehtml',
  96. type => 'l',
  97. default => ''
  98. },
  99. {
  100. name => 'proxy_url',
  101. type => 't',
  102. default => ''
  103. },
  104. {
  105. name => 'upgrade_notification',
  106. type => 's',
  107. choices => ['development_snapshot', 'latest_stable_release',
  108. 'stable_branch_release', 'disabled'],
  109. default => 'latest_stable_release',
  110. checker => \&check_notification
  111. } );
  112. return @param_list;
  113. }
  114. 1;