This commit adds the hability to add a special folder through the hook
[squirrelmail.git] / plugins / administrator / defines.php
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. */
16 define('SMOPT_TYPE_UNDEFINED', -1);
17 define('SMOPT_TYPE_STRING', 0);
18 define('SMOPT_TYPE_STRLIST', 1);
19 define('SMOPT_TYPE_TEXTAREA', 2);
20 define('SMOPT_TYPE_INTEGER', 3);
21 define('SMOPT_TYPE_FLOAT', 4);
22 define('SMOPT_TYPE_BOOLEAN', 5);
23 define('SMOPT_TYPE_HIDDEN', 6);
24 define('SMOPT_TYPE_COMMENT', 7);
25 define('SMOPT_TYPE_NUMLIST', 8);
26 define('SMOPT_TYPE_TITLE', 9);
27 define('SMOPT_TYPE_THEME', 10);
28 define('SMOPT_TYPE_PLUGINS', 11);
29 define('SMOPT_TYPE_LDAP', 12);
30
31 global $languages;
32
33 $language_values = array( );
34 foreach ($languages as $lang_key => $lang_attributes) {
35 if (isset($lang_attributes['NAME'])) {
36 $language_values[$lang_key] = $lang_attributes['NAME'];
37 }
38 }
39 asort( $language_values );
40 $language_values = array_merge(array('' => _("Default")), $language_values);
41 $left_size_values = array();
42 for ($lsv = 100; $lsv <= 300; $lsv += 10) {
43 $left_size_values[$lsv] = "$lsv " . _("pixels");
44 }
45
46 $defcfg = array( '$config_version' => array( 'name' => _("Config File Version"),
47 'type' => SMOPT_TYPE_COMMENT,
48 'size' => 7 ),
49 /* --------------------------------------------------------*/
50 'Group1' => array( 'name' => _("Organization Preferences"),
51 'type' => SMOPT_TYPE_TITLE ),
52 '$org_name' => array( 'name' => _("Organization Name"),
53 'type' => SMOPT_TYPE_STRING,
54 'size' => 40 ),
55 '$org_logo' => array( 'name' => _("Organization Logo"),
56 'type' => SMOPT_TYPE_STRING,
57 'size' => 40 ),
58 '$org_title' => array( 'name' => _("Organization Title"),
59 'type' => SMOPT_TYPE_STRING,
60 'size' => 40 ),
61 '$signout_page' => array( 'name' => _("Signout Page"),
62 'type' => SMOPT_TYPE_STRING,
63 'size' => 40 ),
64 '$squirrelmail_default_language' => array( 'name' => _("Default Language"),
65 'type' => SMOPT_TYPE_STRLIST,
66 'size' => 7,
67 'posvals' => $language_values ),
68 '$frame_top' => array( 'name' => _("Top Frame"),
69 'type' => SMOPT_TYPE_STRING,
70 'size' => 40,
71 'default' => '_top' ),
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 ),
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 ),
83 '$imap_server_type' => array( 'name' => _("IMAP Server Type"),
84 'type' => SMOPT_TYPE_STRLIST,
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,
92 'comment' => _("Use \"detect\" to auto-detect."),
93 'size' => 10,
94 'default' => 'detect' ),
95 '$useSendmail' => array( 'name' => _("Use Sendmail"),
96 'type' => SMOPT_TYPE_BOOLEAN ),
97 '$sendmail_path' => array( 'name' => _("Sendmail Path"),
98 'type' => SMOPT_TYPE_STRING,
99 'size' => 40 ),
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 ),
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 ),
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 ),
148 '$default_use_javascript_addr_book' => array( 'name' => _("Default Javascript Adrressbook"),
149 'type' => SMOPT_TYPE_BOOLEAN ),
150 /* --------------------------------------------------------*/
151 'Group4' => array( 'name' => _("General Options"),
152 'type' => SMOPT_TYPE_TITLE ),
153 '$default_charset' => array( 'name' => _("Default Charset"),
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' ) ),
164 '$data_dir' => array( 'name' => _("Data Directory"),
165 'type' => SMOPT_TYPE_STRING,
166 'size' => 40 ),
167 '$attachment_dir' => array( 'name' => _("Temp Directory"),
168 'type' => SMOPT_TYPE_STRING,
169 'size' => 40 ),
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") ) ),
177 '$default_left_size' => array( 'name' => _("Default Left Size"),
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 /* --------------------------------------------------------*/
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 /* --------------------------------------------------------*/
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 ),
198 '$addrbook_table' => array( 'name' => _("Address book table"),
199 'type' => SMOPT_TYPE_STRING,
200 'size' => 40,
201 'default' => 'address' ),
202 /* --------------------------------------------------------*/
203 'Group7' => array( 'name' => _("Themes"),
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 )
210 /* --------------------------------------------------------*/
211
212 );
213
214 ?>