Some small bugfixes. Still testing.
[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,
70 'size' => 40 ),
0e66bc84 71 /* --------------------------------------------------------*/
72 'Group2' => array( 'name' => _("Server Settings"),
73 'type' => SMOPT_TYPE_TITLE ),
74 '$domain' => array( 'name' => _("Mail Domain"),
75 'type' => SMOPT_TYPE_STRING,
76 'size' => 40 ),
abd7a3f8 77 '$imapServerAddress' => array( 'name' => _("IMAP Server Address"),
78 'type' => SMOPT_TYPE_STRING,
79 'size' => 40 ),
80 '$imapPort' => array( 'name' => _("IMAP Server Port"),
81 'type' => SMOPT_TYPE_INTEGER ),
0e66bc84 82 '$imap_server_type' => array( 'name' => _("IMAP Server Type"),
83 'type' => SMOPT_TYPE_STRLIST,
0e66bc84 84 'posvals' => array( 'cyrus' => _("Cyrus IMAP server"),
85 'uw' => _("University of Washington's IMAP server"),
86 'exchange' => _("Microsoft Exchange IMAP server"),
87 'courier' => _("Courier IMAP server"),
88 'other' => _("Not one of the above servers") ) ),
89 '$optional_delimiter' => array( 'name' => _("IMAP Folder Delimiter"),
90 'type' => SMOPT_TYPE_STRING,
edd4a552 91 'comment' => _("Use \"detect\" to auto-detect."),
e91cf665 92 'size' => 10 ),
0e66bc84 93 '$useSendmail' => array( 'name' => _("Use Sendmail"),
94 'type' => SMOPT_TYPE_BOOLEAN ),
dcd6f144 95 '$sendmail_path' => array( 'name' => _("Sendmail Path"),
96 'type' => SMOPT_TYPE_STRING,
97 'size' => 40 ),
abd7a3f8 98 '$smtpServerAddress' => array( 'name' => _("SMTP Server Address"),
99 'type' => SMOPT_TYPE_STRING,
100 'size' => 40 ),
101 '$smtpPort' => array( 'name' => _("SMTP Server Port"),
102 'type' => SMOPT_TYPE_INTEGER ),
0e66bc84 103 '$use_authenticated_smtp' => array( 'name' => _("Authenticated SMTP"),
104 'type' => SMOPT_TYPE_BOOLEAN ),
105 '$invert_time' => array( 'name' => _("Invert Time"),
106 'type' => SMOPT_TYPE_BOOLEAN ),
107 /* --------------------------------------------------------*/
108 'Group3' => array( 'name' => _("Folders Defaults"),
109 'type' => SMOPT_TYPE_TITLE ),
dcd6f144 110 '$default_folder_prefix' => array( 'name' => _("Default Folder Prefix"),
111 'type' => SMOPT_TYPE_STRING,
112 'size' => 40 ),
113 '$show_prefix_option' => array( 'name' => _("Show Folder Prefix Option"),
114 'type' => SMOPT_TYPE_BOOLEAN ),
115 '$trash_folder' => array( 'name' => _("Trash Folder"),
116 'type' => SMOPT_TYPE_STRING,
117 'size' => 40 ),
118 '$sent_folder' => array( 'name' => _("Sent Folder"),
119 'type' => SMOPT_TYPE_STRING,
120 'size' => 40 ),
121 '$draft_folder' => array( 'name' => _("Draft Folder"),
122 'type' => SMOPT_TYPE_STRING,
123 'size' => 40 ),
124 '$default_move_to_trash' => array( 'name' => _("By default, move to trash"),
125 'type' => SMOPT_TYPE_BOOLEAN ),
126 '$default_move_to_sent' => array( 'name' => _("By default, move to sent"),
127 'type' => SMOPT_TYPE_BOOLEAN ),
128 '$default_save_as_draft' => array( 'name' => _("By default, save as draft"),
129 'type' => SMOPT_TYPE_BOOLEAN ),
130 '$list_special_folders_first' => array( 'name' => _("List Special Folders First"),
131 'type' => SMOPT_TYPE_BOOLEAN ),
132 '$use_special_folder_color' => array( 'name' => _("Show Special Folders Color"),
133 'type' => SMOPT_TYPE_BOOLEAN ),
134 '$auto_expunge' => array( 'name' => _("Auto Expunge"),
135 'type' => SMOPT_TYPE_BOOLEAN ),
136 '$default_sub_of_inbox' => array( 'name' => _("Default Sub. of INBOX"),
137 'type' => SMOPT_TYPE_BOOLEAN ),
138 '$show_contain_subfolders_option' => array( 'name' => _("Show 'Contain Sub.' Option"),
139 'type' => SMOPT_TYPE_BOOLEAN ),
140 '$default_unseen_notify' => array( 'name' => _("Default Unseen Notify"),
141 'type' => SMOPT_TYPE_INTEGER ),
142 '$default_unseen_type' => array( 'name' => _("Default Unseen Type"),
143 'type' => SMOPT_TYPE_INTEGER ),
144 '$auto_create_special' => array( 'name' => _("Auto Create Special Folders"),
145 'type' => SMOPT_TYPE_BOOLEAN ),
e91cf665 146 '$default_use_javascript_addr_book' => array( 'name' => _("Default Javascript Adrressbook"),
147 'type' => SMOPT_TYPE_BOOLEAN ),
dcd6f144 148 /* --------------------------------------------------------*/
d0102e1a 149 'Group4' => array( 'name' => _("General Options"),
dcd6f144 150 'type' => SMOPT_TYPE_TITLE ),
151 '$default_charset' => array( 'name' => _("Default Charset"),
edd4a552 152 'type' => SMOPT_TYPE_STRLIST,
153 'posvals' => array( 'iso_8859_1' => 'iso_8859_1',
154 'iso_8859_2' => 'iso_8859_2',
155 'iso_8859_7' => 'iso_8859_7',
156 'iso_8859_15' => 'iso_8859_15',
157 'iso_8859_15' => 'iso_8859_15',
158 'ns_4551_1' => 'ns_4551_1',
159 'koi8-r' => 'koi8-r',
160 'euc-KR' => 'euc-KR',
161 'windows-1251' => 'windows-1251' ) ),
dcd6f144 162 '$data_dir' => array( 'name' => _("Data Directory"),
163 'type' => SMOPT_TYPE_STRING,
164 'size' => 40 ),
165 '$attachment_dir' => array( 'name' => _("Temp Directory"),
abd7a3f8 166 'type' => SMOPT_TYPE_STRING,
167 'size' => 40 ),
dcd6f144 168 '$dir_hash_level' => array( 'name' => _("Hash Level"),
169 'type' => SMOPT_TYPE_NUMLIST,
170 'posvals' => array( 0 => _("Hash Disabled"),
171 1 => _("Low"),
172 2 => _("Moderate"),
173 3 => _("Medium"),
174 4 => _("High") ) ),
edd4a552 175 '$default_left_size' => array( 'name' => _("Default Left Size"),
dcd6f144 176 'type' => SMOPT_TYPE_NUMLIST,
177 'posvals' => $left_size_values ),
178 '$force_username_lowercase' => array( 'name' => _("Usernames in Lowercase"),
179 'type' => SMOPT_TYPE_BOOLEAN ),
180 '$default_use_priority' => array( 'name' => _("Allow use of priority"),
181 'type' => SMOPT_TYPE_BOOLEAN ),
182 '$hide_sm_attributions' => array( 'name' => _("Hide SM attributions"),
183 'type' => SMOPT_TYPE_BOOLEAN ),
184 /* --------------------------------------------------------*/
edd4a552 185 'Group5' => array( 'name' => _("Message of the Day"),
186 'type' => SMOPT_TYPE_TITLE ),
187 '$motd' => array( 'name' => _("Message of the Day"),
188 'type' => SMOPT_TYPE_TEXTAREA,
189 'size' => 40 ),
190 /* --------------------------------------------------------*/
497203d4 191 'Group6' => array( 'name' => _("Database"),
192 'type' => SMOPT_TYPE_TITLE ),
193 '$addrbook_dsn' => array( 'name' => _("Address book DSN"),
194 'type' => SMOPT_TYPE_STRING,
195 'size' => 40 ),
196 /* --------------------------------------------------------*/
197 'Group7' => array( 'name' => _("Themes"),
edd4a552 198 'type' => SMOPT_TYPE_TITLE ),
199 '$theme_css' => array( 'name' => _("Style Sheet URL (css)"),
200 'type' => SMOPT_TYPE_STRING,
201 'size' => 40 ),
202 /* --------------------------------------------------------*/
203 '$config_use_color' => array( 'type' => SMOPT_TYPE_HIDDEN )
497203d4 204 /* --------------------------------------------------------*/
dcd6f144 205
edd4a552 206 );
dcd6f144 207
d0102e1a 208?>