Don't forget the changelog
[squirrelmail.git] / plugins / administrator / defines.php
CommitLineData
abd7a3f8 1<?PHP
2
3/**
4 * defines.php
5 *
6 * Copyright (c) 1999-2002 The SquirrelMail Project Team
7 * Licensed under the GNU GPL. For full terms see the file COPYING.
8 *
9 * Philippe Mingo
10 *
11 * $Id$
12 */
13
14
15/* Define constants for the various option types. */
16define('SMOPT_TYPE_UNDEFINED', -1);
17define('SMOPT_TYPE_STRING', 0);
18define('SMOPT_TYPE_STRLIST', 1);
19define('SMOPT_TYPE_TEXTAREA', 2);
20define('SMOPT_TYPE_INTEGER', 3);
21define('SMOPT_TYPE_FLOAT', 4);
22define('SMOPT_TYPE_BOOLEAN', 5);
23define('SMOPT_TYPE_HIDDEN', 6);
24define('SMOPT_TYPE_COMMENT', 7);
dcd6f144 25define('SMOPT_TYPE_NUMLIST', 8);
edd4a552 26define('SMOPT_TYPE_TITLE', 9);
27define('SMOPT_TYPE_THEME', 10);
28define('SMOPT_TYPE_PLUGINS', 11);
65a5bae6 29define('SMOPT_TYPE_LDAP', 12);
abd7a3f8 30
31global $languages;
32
35be4418 33$language_values = array( );
abd7a3f8 34foreach ($languages as $lang_key => $lang_attributes) {
35 if (isset($lang_attributes['NAME'])) {
36 $language_values[$lang_key] = $lang_attributes['NAME'];
37 }
38}
39asort( $language_values );
35be4418 40$language_values = array_merge(array('' => _("Default")), $language_values);
dcd6f144 41$left_size_values = array();
42for ($lsv = 100; $lsv <= 300; $lsv += 10) {
43 $left_size_values[$lsv] = "$lsv " . _("pixels");
44}
45
0e66bc84 46$defcfg = array( '$config_version' => array( 'name' => _("Config File Version"),
47 'type' => SMOPT_TYPE_COMMENT,
abd7a3f8 48 'size' => 7 ),
0e66bc84 49 /* --------------------------------------------------------*/
50 'Group1' => array( 'name' => _("Organization Preferences"),
51 'type' => SMOPT_TYPE_TITLE ),
52 '$org_name' => array( 'name' => _("Organization Name"),
abd7a3f8 53 'type' => SMOPT_TYPE_STRING,
54 'size' => 40 ),
0e66bc84 55 '$org_logo' => array( 'name' => _("Organization Logo"),
abd7a3f8 56 'type' => SMOPT_TYPE_STRING,
57 'size' => 40 ),
0e66bc84 58 '$org_title' => array( 'name' => _("Organization Title"),
abd7a3f8 59 'type' => SMOPT_TYPE_STRING,
60 'size' => 40 ),
0e66bc84 61 '$signout_page' => array( 'name' => _("Signout Page"),
62 'type' => SMOPT_TYPE_STRING,
63 'size' => 40 ),
abd7a3f8 64 '$squirrelmail_default_language' => array( 'name' => _("Default Language"),
65 'type' => SMOPT_TYPE_STRLIST,
66 'size' => 7,
67 'posvals' => $language_values ),
dcd6f144 68 '$frame_top' => array( 'name' => _("Top Frame"),
69 'type' => SMOPT_TYPE_STRING,
feba1a41 70 'size' => 40,
71 'default' => '_top' ),
0e66bc84 72 /* --------------------------------------------------------*/
73 'Group2' => array( 'name' => _("Server Settings"),
74 'type' => SMOPT_TYPE_TITLE ),
75 '$domain' => array( 'name' => _("Mail Domain"),
76 'type' => SMOPT_TYPE_STRING,
77 'size' => 40 ),
abd7a3f8 78 '$imapServerAddress' => array( 'name' => _("IMAP Server Address"),
79 'type' => SMOPT_TYPE_STRING,
80 'size' => 40 ),
81 '$imapPort' => array( 'name' => _("IMAP Server Port"),
82 'type' => SMOPT_TYPE_INTEGER ),
0e66bc84 83 '$imap_server_type' => array( 'name' => _("IMAP Server Type"),
84 'type' => SMOPT_TYPE_STRLIST,
0e66bc84 85 'posvals' => array( 'cyrus' => _("Cyrus IMAP server"),
86 'uw' => _("University of Washington's IMAP server"),
87 'exchange' => _("Microsoft Exchange IMAP server"),
88 'courier' => _("Courier IMAP server"),
89 'other' => _("Not one of the above servers") ) ),
90 '$optional_delimiter' => array( 'name' => _("IMAP Folder Delimiter"),
91 'type' => SMOPT_TYPE_STRING,
edd4a552 92 'comment' => _("Use \"detect\" to auto-detect."),
2586d588 93 'size' => 10,
94 'default' => 'detect' ),
0e66bc84 95 '$useSendmail' => array( 'name' => _("Use Sendmail"),
96 'type' => SMOPT_TYPE_BOOLEAN ),
dcd6f144 97 '$sendmail_path' => array( 'name' => _("Sendmail Path"),
98 'type' => SMOPT_TYPE_STRING,
99 'size' => 40 ),
abd7a3f8 100 '$smtpServerAddress' => array( 'name' => _("SMTP Server Address"),
101 'type' => SMOPT_TYPE_STRING,
102 'size' => 40 ),
103 '$smtpPort' => array( 'name' => _("SMTP Server Port"),
104 'type' => SMOPT_TYPE_INTEGER ),
0e66bc84 105 '$use_authenticated_smtp' => array( 'name' => _("Authenticated SMTP"),
106 'type' => SMOPT_TYPE_BOOLEAN ),
107 '$invert_time' => array( 'name' => _("Invert Time"),
108 'type' => SMOPT_TYPE_BOOLEAN ),
109 /* --------------------------------------------------------*/
110 'Group3' => array( 'name' => _("Folders Defaults"),
111 'type' => SMOPT_TYPE_TITLE ),
dcd6f144 112 '$default_folder_prefix' => array( 'name' => _("Default Folder Prefix"),
113 'type' => SMOPT_TYPE_STRING,
114 'size' => 40 ),
115 '$show_prefix_option' => array( 'name' => _("Show Folder Prefix Option"),
116 'type' => SMOPT_TYPE_BOOLEAN ),
117 '$trash_folder' => array( 'name' => _("Trash Folder"),
118 'type' => SMOPT_TYPE_STRING,
119 'size' => 40 ),
120 '$sent_folder' => array( 'name' => _("Sent Folder"),
121 'type' => SMOPT_TYPE_STRING,
122 'size' => 40 ),
123 '$draft_folder' => array( 'name' => _("Draft Folder"),
124 'type' => SMOPT_TYPE_STRING,
125 'size' => 40 ),
126 '$default_move_to_trash' => array( 'name' => _("By default, move to trash"),
127 'type' => SMOPT_TYPE_BOOLEAN ),
128 '$default_move_to_sent' => array( 'name' => _("By default, move to sent"),
129 'type' => SMOPT_TYPE_BOOLEAN ),
130 '$default_save_as_draft' => array( 'name' => _("By default, save as draft"),
131 'type' => SMOPT_TYPE_BOOLEAN ),
132 '$list_special_folders_first' => array( 'name' => _("List Special Folders First"),
133 'type' => SMOPT_TYPE_BOOLEAN ),
134 '$use_special_folder_color' => array( 'name' => _("Show Special Folders Color"),
135 'type' => SMOPT_TYPE_BOOLEAN ),
136 '$auto_expunge' => array( 'name' => _("Auto Expunge"),
137 'type' => SMOPT_TYPE_BOOLEAN ),
138 '$default_sub_of_inbox' => array( 'name' => _("Default Sub. of INBOX"),
139 'type' => SMOPT_TYPE_BOOLEAN ),
140 '$show_contain_subfolders_option' => array( 'name' => _("Show 'Contain Sub.' Option"),
141 'type' => SMOPT_TYPE_BOOLEAN ),
142 '$default_unseen_notify' => array( 'name' => _("Default Unseen Notify"),
143 'type' => SMOPT_TYPE_INTEGER ),
144 '$default_unseen_type' => array( 'name' => _("Default Unseen Type"),
145 'type' => SMOPT_TYPE_INTEGER ),
146 '$auto_create_special' => array( 'name' => _("Auto Create Special Folders"),
147 'type' => SMOPT_TYPE_BOOLEAN ),
e91cf665 148 '$default_use_javascript_addr_book' => array( 'name' => _("Default Javascript Adrressbook"),
149 'type' => SMOPT_TYPE_BOOLEAN ),
dcd6f144 150 /* --------------------------------------------------------*/
d0102e1a 151 'Group4' => array( 'name' => _("General Options"),
dcd6f144 152 'type' => SMOPT_TYPE_TITLE ),
153 '$default_charset' => array( 'name' => _("Default Charset"),
edd4a552 154 'type' => SMOPT_TYPE_STRLIST,
155 'posvals' => array( 'iso_8859_1' => 'iso_8859_1',
156 'iso_8859_2' => 'iso_8859_2',
157 'iso_8859_7' => 'iso_8859_7',
158 'iso_8859_15' => 'iso_8859_15',
159 'iso_8859_15' => 'iso_8859_15',
160 'ns_4551_1' => 'ns_4551_1',
161 'koi8-r' => 'koi8-r',
162 'euc-KR' => 'euc-KR',
163 'windows-1251' => 'windows-1251' ) ),
dcd6f144 164 '$data_dir' => array( 'name' => _("Data Directory"),
165 'type' => SMOPT_TYPE_STRING,
166 'size' => 40 ),
167 '$attachment_dir' => array( 'name' => _("Temp Directory"),
abd7a3f8 168 'type' => SMOPT_TYPE_STRING,
169 'size' => 40 ),
dcd6f144 170 '$dir_hash_level' => array( 'name' => _("Hash Level"),
171 'type' => SMOPT_TYPE_NUMLIST,
172 'posvals' => array( 0 => _("Hash Disabled"),
173 1 => _("Low"),
174 2 => _("Moderate"),
175 3 => _("Medium"),
176 4 => _("High") ) ),
edd4a552 177 '$default_left_size' => array( 'name' => _("Default Left Size"),
dcd6f144 178 'type' => SMOPT_TYPE_NUMLIST,
179 'posvals' => $left_size_values ),
180 '$force_username_lowercase' => array( 'name' => _("Usernames in Lowercase"),
181 'type' => SMOPT_TYPE_BOOLEAN ),
182 '$default_use_priority' => array( 'name' => _("Allow use of priority"),
183 'type' => SMOPT_TYPE_BOOLEAN ),
184 '$hide_sm_attributions' => array( 'name' => _("Hide SM attributions"),
185 'type' => SMOPT_TYPE_BOOLEAN ),
186 /* --------------------------------------------------------*/
edd4a552 187 'Group5' => array( 'name' => _("Message of the Day"),
188 'type' => SMOPT_TYPE_TITLE ),
189 '$motd' => array( 'name' => _("Message of the Day"),
190 'type' => SMOPT_TYPE_TEXTAREA,
191 'size' => 40 ),
192 /* --------------------------------------------------------*/
497203d4 193 'Group6' => array( 'name' => _("Database"),
194 'type' => SMOPT_TYPE_TITLE ),
195 '$addrbook_dsn' => array( 'name' => _("Address book DSN"),
196 'type' => SMOPT_TYPE_STRING,
197 'size' => 40 ),
4f40a59d 198 '$addrbook_table' => array( 'name' => _("Address book table"),
199 'type' => SMOPT_TYPE_STRING,
2586d588 200 'size' => 40,
201 'default' => 'address' ),
497203d4 202 /* --------------------------------------------------------*/
203 'Group7' => array( 'name' => _("Themes"),
edd4a552 204 'type' => SMOPT_TYPE_TITLE ),
205 '$theme_css' => array( 'name' => _("Style Sheet URL (css)"),
206 'type' => SMOPT_TYPE_STRING,
207 'size' => 40 ),
208 /* --------------------------------------------------------*/
209 '$config_use_color' => array( 'type' => SMOPT_TYPE_HIDDEN )
497203d4 210 /* --------------------------------------------------------*/
dcd6f144 211
edd4a552 212 );
dcd6f144 213
4f40a59d 214?>