~ubuntu-branches/debian/sid/bugzilla/sid

« back to all changes in this revision

Viewing changes to Bugzilla/Config/Core.pm

  • Committer: Bazaar Package Importer
  • Author(s): Raphael Bossek
  • Date: 2008-06-27 22:34:34 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20080627223434-0ib57vstn43bb4a3
Tags: 3.0.4.1-1
* Update of French, Russian and German translations. (closes: #488251)
* Added Bulgarian and Belarusian translations.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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
 
 
32
 
package Bugzilla::Config::Core;
33
 
 
34
 
use strict;
35
 
 
36
 
use Bugzilla::Config::Common;
37
 
 
38
 
$Bugzilla::Config::Core::sortkey = "00";
39
 
 
40
 
sub get_param_list {
41
 
  my $class = shift;
42
 
  my @param_list = (
43
 
  {
44
 
   name => 'maintainer',
45
 
   type => 't',
46
 
   default => 'THE MAINTAINER HAS NOT YET BEEN SET'
47
 
  },
48
 
 
49
 
  {
50
 
   name => 'urlbase',
51
 
   type => 't',
52
 
   default => '',
53
 
   checker => \&check_urlbase
54
 
  },
55
 
 
56
 
  {
57
 
   name => 'docs_urlbase',
58
 
   type => 't',
59
 
   default => 'docs/html/',
60
 
   checker => \&check_url
61
 
  },
62
 
 
63
 
  {
64
 
   name => 'sslbase',
65
 
   type => 't',
66
 
   default => '',
67
 
   checker => \&check_sslbase
68
 
  },
69
 
 
70
 
  {
71
 
   name => 'ssl',
72
 
   type => 's',
73
 
   choices => ['never', 'authenticated sessions', 'always'],
74
 
   default => 'never'
75
 
  },
76
 
 
77
 
 
78
 
  {
79
 
   name => 'cookiedomain',
80
 
   type => 't',
81
 
   default => ''
82
 
  },
83
 
 
84
 
  {
85
 
   name => 'cookiepath',
86
 
   type => 't',
87
 
   default => '/'
88
 
  },
89
 
 
90
 
  {
91
 
   name => 'timezone',
92
 
   type => 't',
93
 
   default => '',
94
 
   checker => \&check_timezone
95
 
  },
96
 
 
97
 
  {
98
 
   name => 'utf8',
99
 
   type => 'b',
100
 
   default => '0',
101
 
   checker => \&check_utf8
102
 
  },
103
 
 
104
 
  {
105
 
   name => 'shutdownhtml',
106
 
   type => 'l',
107
 
   default => ''
108
 
  },
109
 
 
110
 
  {
111
 
   name => 'announcehtml',
112
 
   type => 'l',
113
 
   default => ''
114
 
  },
115
 
 
116
 
  {
117
 
   name => 'proxy_url',
118
 
   type => 't',
119
 
   default => ''
120
 
  },
121
 
 
122
 
  {
123
 
   name => 'upgrade_notification',
124
 
   type => 's',
125
 
   choices => ['development_snapshot', 'latest_stable_release',
126
 
               'stable_branch_release', 'disabled'],
127
 
   default => 'latest_stable_release',
128
 
   checker => \&check_notification
129
 
  } );
130
 
  return @param_list;
131
 
}
132
 
 
133
 
1;