fsf changes, meant to be rebased on upstream
[squirrelmail.git] / plugins / administrator / defines.php
CommitLineData
fb579f0b 1<?php
4b4abf93 2
abd7a3f8 3/**
fb579f0b 4 * Administrator plugin - Option definitions
abd7a3f8 5 *
fb579f0b 6 * @author Philippe Mingo
c997cbe6 7 * @copyright 1999-2021 The SquirrelMail Project Team
fb579f0b 8 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
4b4abf93 9 * @version $Id$
ea5f4b8e 10 * @package plugins
11 * @subpackage administrator
abd7a3f8 12 */
13
867fed37 14/** Define constants for the various option types. */
abd7a3f8 15define('SMOPT_TYPE_UNDEFINED', -1);
16define('SMOPT_TYPE_STRING', 0);
17define('SMOPT_TYPE_STRLIST', 1);
18define('SMOPT_TYPE_TEXTAREA', 2);
19define('SMOPT_TYPE_INTEGER', 3);
20define('SMOPT_TYPE_FLOAT', 4);
21define('SMOPT_TYPE_BOOLEAN', 5);
22define('SMOPT_TYPE_HIDDEN', 6);
23define('SMOPT_TYPE_COMMENT', 7);
dcd6f144 24define('SMOPT_TYPE_NUMLIST', 8);
edd4a552 25define('SMOPT_TYPE_TITLE', 9);
26define('SMOPT_TYPE_THEME', 10);
27define('SMOPT_TYPE_PLUGINS', 11);
65a5bae6 28define('SMOPT_TYPE_LDAP', 12);
439538dc 29define('SMOPT_TYPE_CUSTOM', 13);
88cb1b4d 30define('SMOPT_TYPE_EXTERNAL', 32);
a28a56da 31define('SMOPT_TYPE_PATH',33);
abd7a3f8 32
439538dc 33/**
34 * Returns reformated aTemplateSet array data for option selection
35 * @return array template selection options
36 * @since 1.5.1
37 */
38function adm_template_options() {
39 global $aTemplateSet;
40 $ret = array();
41 foreach ($aTemplateSet as $iTemplateID => $aTemplate) {
293906dd 42 $ret[$aTemplate['ID']] = $aTemplate['NAME'];
439538dc 43 }
44 return $ret;
45}
46
b37e457f 47global $languages;
abd7a3f8 48
35be4418 49$language_values = array( );
abd7a3f8 50foreach ($languages as $lang_key => $lang_attributes) {
51 if (isset($lang_attributes['NAME'])) {
52 $language_values[$lang_key] = $lang_attributes['NAME'];
53 }
54}
55asort( $language_values );
35be4418 56$language_values = array_merge(array('' => _("Default")), $language_values);
dcd6f144 57$left_size_values = array();
58for ($lsv = 100; $lsv <= 300; $lsv += 10) {
59 $left_size_values[$lsv] = "$lsv " . _("pixels");
60}
61
0e66bc84 62$defcfg = array( '$config_version' => array( 'name' => _("Config File Version"),
63 'type' => SMOPT_TYPE_COMMENT,
abd7a3f8 64 'size' => 7 ),
7fe5aa79 65 'SM_ver' => array( 'name' => _("SquirrelMail Version"),
88cb1b4d 66 'type' => SMOPT_TYPE_EXTERNAL,
b37e457f 67 'value' => SM_VERSION ),
88cb1b4d 68 'PHP_ver' => array( 'name' => _("PHP Version"),
69 'type' => SMOPT_TYPE_EXTERNAL,
70 'value' => phpversion() ),
0e66bc84 71 /* --------------------------------------------------------*/
72 'Group1' => array( 'name' => _("Organization Preferences"),
73 'type' => SMOPT_TYPE_TITLE ),
74 '$org_name' => array( 'name' => _("Organization Name"),
abd7a3f8 75 'type' => SMOPT_TYPE_STRING,
76 'size' => 40 ),
0e66bc84 77 '$org_logo' => array( 'name' => _("Organization Logo"),
a28a56da 78 'type' => SMOPT_TYPE_PATH,
79 'size' => 40,
fdefb2e7 80 'default' => '../images/sm_logo.png'),
99ac8983 81 '$org_logo_width' => array( 'name' => _("Organization Logo Width"),
af5a3d89 82 'type' => SMOPT_TYPE_STRING,
99ac8983 83 'size' => 5,
84 'default' => 0),
85 '$org_logo_height' => array( 'name' => _("Organization Logo Height"),
af5a3d89 86 'type' => SMOPT_TYPE_STRING,
99ac8983 87 'size' => 5,
88 'default' => 0),
0e66bc84 89 '$org_title' => array( 'name' => _("Organization Title"),
abd7a3f8 90 'type' => SMOPT_TYPE_STRING,
91 'size' => 40 ),
0e66bc84 92 '$signout_page' => array( 'name' => _("Signout Page"),
a28a56da 93 'type' => SMOPT_TYPE_PATH,
0e66bc84 94 'size' => 40 ),
fdefb2e7 95 '$provider_uri' => array( 'name' => _("Provider Link URI"),
96 'type' => SMOPT_TYPE_STRING ),
97 '$provider_name' => array( 'name' => _("Provider Name"),
98 'type' => SMOPT_TYPE_STRING ),
dcd6f144 99 '$frame_top' => array( 'name' => _("Top Frame"),
100 'type' => SMOPT_TYPE_STRING,
feba1a41 101 'size' => 40,
102 'default' => '_top' ),
0e66bc84 103 /* --------------------------------------------------------*/
104 'Group2' => array( 'name' => _("Server Settings"),
105 'type' => SMOPT_TYPE_TITLE ),
106 '$domain' => array( 'name' => _("Mail Domain"),
88cb1b4d 107 'type' => SMOPT_TYPE_STRING,
108 'size' => 40 ),
abd7a3f8 109 '$imapServerAddress' => array( 'name' => _("IMAP Server Address"),
110 'type' => SMOPT_TYPE_STRING,
111 'size' => 40 ),
112 '$imapPort' => array( 'name' => _("IMAP Server Port"),
88cb1b4d 113 'type' => SMOPT_TYPE_INTEGER ),
0e66bc84 114 '$imap_server_type' => array( 'name' => _("IMAP Server Type"),
115 'type' => SMOPT_TYPE_STRLIST,
0e66bc84 116 'posvals' => array( 'cyrus' => _("Cyrus IMAP server"),
117 'uw' => _("University of Washington's IMAP server"),
118 'exchange' => _("Microsoft Exchange IMAP server"),
119 'courier' => _("Courier IMAP server"),
2c3ad1cf 120 'macosx' => _("Mac OS X Mailserver"),
121 'hmailserver' => _("hMailServer IMAP server"),
ee20a285 122 'mercury32' => _("Mercury/32 IMAP server"),
e498ebbd 123 'bincimap' => _("Binc IMAP server"),
06c6e5c8 124 'dovecot' => _("Dovecot IMAP server"),
0e66bc84 125 'other' => _("Not one of the above servers") ) ),
126 '$optional_delimiter' => array( 'name' => _("IMAP Folder Delimiter"),
127 'type' => SMOPT_TYPE_STRING,
de6bf9e4 128 'comment' => _("Use &quot;detect&quot; to auto-detect."),
2586d588 129 'size' => 10,
130 'default' => 'detect' ),
a15f9d93 131 '$use_imap_tls' => array( 'name' => _("IMAP Connection Security"),
55575aca 132 'type' => SMOPT_TYPE_NUMLIST,
a15f9d93 133 'posvals' => array( 0 => _("Plain text connection"),
134 1 => _("Secure IMAP (TLS) connection"),
135 2 => _("IMAP STARTTLS connection")),
136 'comment' => _("Requires higher PHP version and special functions. See SquirrelMail documentation."),
137 'default' => 0 ),
fdefb2e7 138 '$imap_auth_mech' => array( 'name' => _("IMAP Authentication Type"),
139 'type' => SMOPT_TYPE_STRLIST,
de6bf9e4 140 'posvals' => array('login' => _("IMAP login"),
fdefb2e7 141 'cram-md5' => 'CRAM-MD5',
142 'digest-md5' => 'DIGEST-MD5'),
143 'default' => 'login' ),
a3d6c63e 144 '$useSendmail' => array( 'name' => _("Use Sendmail Binary"),
145 'type' => SMOPT_TYPE_BOOLEAN,
de6bf9e4 146 'comment' => _("Choose &quot;no&quot; for SMTP") ),
dcd6f144 147 '$sendmail_path' => array( 'name' => _("Sendmail Path"),
148 'type' => SMOPT_TYPE_STRING,
149 'size' => 40 ),
fd7ab795 150 '$sendmail_args' => array( 'name' => _("Sendmail Arguments"),
151 'type' => SMOPT_TYPE_STRING,
152 'size' => 40 ),
abd7a3f8 153 '$smtpServerAddress' => array( 'name' => _("SMTP Server Address"),
154 'type' => SMOPT_TYPE_STRING,
155 'size' => 40 ),
156 '$smtpPort' => array( 'name' => _("SMTP Server Port"),
88cb1b4d 157 'type' => SMOPT_TYPE_INTEGER ),
a15f9d93 158 '$use_smtp_tls' => array( 'name' => _("SMTP Connection Security"),
55575aca 159 'type' => SMOPT_TYPE_NUMLIST,
a15f9d93 160 'posvals' => array( 0 => _("Plain text connection"),
55575aca 161 1 => _("Secure SMTP (TLS) connection"),
162 2 => _("SMTP STARTTLS connection")),
a15f9d93 163 'comment' => _("Requires higher PHP version and special functions. See SquirrelMail documentation."),
164 'default' => 0 ),
fdefb2e7 165 '$smtp_auth_mech' => array( 'name' => _("SMTP Authentication Type"),
166 'type' => SMOPT_TYPE_STRLIST,
de6bf9e4 167 'posvals' => array('none' => _("No SMTP auth"),
168 'login' => _("Login (plain text)"),
fdefb2e7 169 'cram-md5' => 'CRAM-MD5',
170 'digest-md5' => 'DIGEST-MD5'),
171 'default' => 'none'),
029d1fc2 172 '$smtp_sitewide_user' => array( 'name' => _("Custom SMTP AUTH username"),
173 'type' => SMOPT_TYPE_STRING,
174 'size' => 40 ),
175 '$smtp_sitewide_pass' => array( 'name' => _("Custom SMTP AUTH password"),
176 'type' => SMOPT_TYPE_STRING,
177 'size' => 40 ),
fdefb2e7 178 '$pop_before_smtp' => array( 'name' => _("POP3 Before SMTP?"),
179 'type' => SMOPT_TYPE_BOOLEAN,
180 'default' => false ),
9d953ce0 181 '$encode_header_key' => array( 'name' => _("Header Encryption Key"),
06c6e5c8 182 'type' => SMOPT_TYPE_STRING ),
0e66bc84 183 '$invert_time' => array( 'name' => _("Invert Time"),
184 'type' => SMOPT_TYPE_BOOLEAN ),
185 /* --------------------------------------------------------*/
186 'Group3' => array( 'name' => _("Folders Defaults"),
187 'type' => SMOPT_TYPE_TITLE ),
dcd6f144 188 '$default_folder_prefix' => array( 'name' => _("Default Folder Prefix"),
189 'type' => SMOPT_TYPE_STRING,
190 'size' => 40 ),
191 '$show_prefix_option' => array( 'name' => _("Show Folder Prefix Option"),
192 'type' => SMOPT_TYPE_BOOLEAN ),
193 '$trash_folder' => array( 'name' => _("Trash Folder"),
194 'type' => SMOPT_TYPE_STRING,
195 'size' => 40 ),
196 '$sent_folder' => array( 'name' => _("Sent Folder"),
197 'type' => SMOPT_TYPE_STRING,
198 'size' => 40 ),
199 '$draft_folder' => array( 'name' => _("Draft Folder"),
200 'type' => SMOPT_TYPE_STRING,
201 'size' => 40 ),
202 '$default_move_to_trash' => array( 'name' => _("By default, move to trash"),
203 'type' => SMOPT_TYPE_BOOLEAN ),
204 '$default_move_to_sent' => array( 'name' => _("By default, move to sent"),
205 'type' => SMOPT_TYPE_BOOLEAN ),
206 '$default_save_as_draft' => array( 'name' => _("By default, save as draft"),
207 'type' => SMOPT_TYPE_BOOLEAN ),
208 '$list_special_folders_first' => array( 'name' => _("List Special Folders First"),
209 'type' => SMOPT_TYPE_BOOLEAN ),
210 '$use_special_folder_color' => array( 'name' => _("Show Special Folders Color"),
211 'type' => SMOPT_TYPE_BOOLEAN ),
212 '$auto_expunge' => array( 'name' => _("Auto Expunge"),
213 'type' => SMOPT_TYPE_BOOLEAN ),
214 '$default_sub_of_inbox' => array( 'name' => _("Default Sub. of INBOX"),
215 'type' => SMOPT_TYPE_BOOLEAN ),
216 '$show_contain_subfolders_option' => array( 'name' => _("Show 'Contain Sub.' Option"),
217 'type' => SMOPT_TYPE_BOOLEAN ),
218 '$default_unseen_notify' => array( 'name' => _("Default Unseen Notify"),
5ed13ec8 219 'type' => SMOPT_TYPE_NUMLIST,
220 'posvals' => array( SMPREF_UNSEEN_NONE => _("No Notification"),
221 SMPREF_UNSEEN_INBOX => _("Only INBOX"),
222 SMPREF_UNSEEN_ALL => _("All Folders")) ),
dcd6f144 223 '$default_unseen_type' => array( 'name' => _("Default Unseen Type"),
5ed13ec8 224 'type' => SMOPT_TYPE_NUMLIST ,
225 'posvals' => array( SMPREF_UNSEEN_ONLY => _("Only Unseen"),
226 SMPREF_UNSEEN_TOTAL => _("Unseen and Total") ) ),
dcd6f144 227 '$auto_create_special' => array( 'name' => _("Auto Create Special Folders"),
228 'type' => SMOPT_TYPE_BOOLEAN ),
4e85a37f 229 '$delete_folder' => array( 'name' => _("Auto delete folders"),
230 'type' => SMOPT_TYPE_BOOLEAN ),
fdefb2e7 231 '$noselect_fix_enable' => array( 'name' => _("Enable /NoSelect folder fix"),
232 'type' => SMOPT_TYPE_BOOLEAN,
233 'default' => false),
dcd6f144 234 /* --------------------------------------------------------*/
d0102e1a 235 'Group4' => array( 'name' => _("General Options"),
dcd6f144 236 'type' => SMOPT_TYPE_TITLE ),
dcd6f144 237 '$data_dir' => array( 'name' => _("Data Directory"),
a28a56da 238 'type' => SMOPT_TYPE_PATH,
dcd6f144 239 'size' => 40 ),
240 '$attachment_dir' => array( 'name' => _("Temp Directory"),
a28a56da 241 'type' => SMOPT_TYPE_PATH,
abd7a3f8 242 'size' => 40 ),
dcd6f144 243 '$dir_hash_level' => array( 'name' => _("Hash Level"),
244 'type' => SMOPT_TYPE_NUMLIST,
245 'posvals' => array( 0 => _("Hash Disabled"),
246 1 => _("Low"),
247 2 => _("Moderate"),
248 3 => _("Medium"),
249 4 => _("High") ) ),
edd4a552 250 '$default_left_size' => array( 'name' => _("Default Left Size"),
dcd6f144 251 'type' => SMOPT_TYPE_NUMLIST,
252 'posvals' => $left_size_values ),
253 '$force_username_lowercase' => array( 'name' => _("Usernames in Lowercase"),
254 'type' => SMOPT_TYPE_BOOLEAN ),
255 '$default_use_priority' => array( 'name' => _("Allow use of priority"),
256 'type' => SMOPT_TYPE_BOOLEAN ),
257 '$hide_sm_attributions' => array( 'name' => _("Hide SM attributions"),
258 'type' => SMOPT_TYPE_BOOLEAN ),
f06543bd 259 '$default_use_mdn' => array( 'name' => _("Enable use of delivery receipts"),
6fa38b33 260 'type' => SMOPT_TYPE_BOOLEAN ),
8a7d0669 261 '$edit_identity' => array( 'name' => _("Allow editing of identities"),
262 'type' => SMOPT_TYPE_BOOLEAN ),
263 '$edit_name' => array( 'name' => _("Allow editing of full name"),
3bb63bb4 264 'type' => SMOPT_TYPE_BOOLEAN ),
3f7a756d 265 '$edit_reply_to' => array( 'name' => _("Allow editing of reply-to address"),
8a7d0669 266 'type' => SMOPT_TYPE_BOOLEAN ),
9d953ce0 267 '$hide_auth_header' => array( 'name' => _("Remove username from headers"),
268 'comment' => _("Used only when identities can't be modified"),
269 'type' => SMOPT_TYPE_BOOLEAN ),
0d53a854 270 '$disable_server_sort' => array( 'name' => _("Disable server-side sorting"),
fdefb2e7 271 'type' => SMOPT_TYPE_BOOLEAN,
272 'default' => false ),
0d53a854 273 '$disable_thread_sort' => array( 'name' => _("Disable server-side thread sorting"),
fdefb2e7 274 'type' => SMOPT_TYPE_BOOLEAN,
275 'default' => false ),
276 '$allow_charset_search' => array( 'name' => _("Allow server charset search"),
277 'type' => SMOPT_TYPE_BOOLEAN,
278 'default' => false ),
279 '$allow_advanced_search' => array( 'name' => _("Search functions"),
280 'type' => SMOPT_TYPE_NUMLIST,
281 'posvals' => array( 0 => _("Only basic search"),
282 1 => _("Only advanced search"),
283 2 => _("Both search functions") ),
284 'default' => 0 ),
285 '$session_name' => array( 'name' => _("PHP session name"),
286 'type' => SMOPT_TYPE_HIDDEN ),
ee20a285 287 '$time_zone_type' => array( 'name' => _("Time Zone Configuration"),
288 'type' => SMOPT_TYPE_NUMLIST,
289 'posvals' => array( 0 => _("Standard GNU C time zones"),
290 1 => _("Strict time zones"),
291 2 => _("Custom GNU C time zones"),
292 3 => _("Custom strict time zones")),
293 'default' => 0 ),
ec4de5ef 294 '$config_location_base' => array( 'name' => _("Location base"),
295 'type' => SMOPT_TYPE_STRING,
296 'size' => 40,
297 'default' => '' ),
6ab8321f 298 '$use_transparent_security_image' => array( 'name' => _("Use transparent security image"),
299 'type' => SMOPT_TYPE_BOOLEAN,
300 'default' => true ),
9ae70b62 301 '$display_imap_login_error' => array( 'name' => _("Show login error message directly from IMAP server instead of generic one"),
302 'type' => SMOPT_TYPE_BOOLEAN,
303 'default' => false ),
dcd6f144 304 /* --------------------------------------------------------*/
edd4a552 305 'Group5' => array( 'name' => _("Message of the Day"),
306 'type' => SMOPT_TYPE_TITLE ),
307 '$motd' => array( 'name' => _("Message of the Day"),
308 'type' => SMOPT_TYPE_TEXTAREA,
309 'size' => 40 ),
0f610dca 310 /* ---- Database settings ---- */
497203d4 311 'Group6' => array( 'name' => _("Database"),
312 'type' => SMOPT_TYPE_TITLE ),
313 '$addrbook_dsn' => array( 'name' => _("Address book DSN"),
314 'type' => SMOPT_TYPE_STRING,
88cb1b4d 315 'size' => 40 ),
4f40a59d 316 '$addrbook_table' => array( 'name' => _("Address book table"),
317 'type' => SMOPT_TYPE_STRING,
2586d588 318 'size' => 40,
319 'default' => 'address' ),
f58f1fd8 320 '$prefs_dsn' => array( 'name' => _("Preferences DSN"),
321 'type' => SMOPT_TYPE_STRING,
322 'size' => 40 ),
323 '$prefs_table' => array( 'name' => _("Preferences table"),
324 'type' => SMOPT_TYPE_STRING,
325 'size' => 40,
326 'default' => 'userprefs' ),
99a6c222 327 '$prefs_user_field' => array('name' => _("Preferences username field"),
328 'type' => SMOPT_TYPE_STRING,
329 'size' => 40,
330 'default' => 'user' ),
06316c07 331 '$prefs_user_size' => array( 'name' => _("Size of username field"),
332 'type' => SMOPT_TYPE_INTEGER ),
99a6c222 333 '$prefs_key_field' => array('name' => _("Preferences key field"),
334 'type' => SMOPT_TYPE_STRING,
335 'size' => 40,
336 'default' => 'prefkey' ),
06316c07 337 '$prefs_key_size' => array( 'name' => _("Size of key field"),
338 'type' => SMOPT_TYPE_INTEGER ),
99a6c222 339 '$prefs_val_field' => array('name' => _("Preferences value field"),
340 'type' => SMOPT_TYPE_STRING,
341 'size' => 40,
342 'default' => 'prefval' ),
06316c07 343 '$prefs_val_size' => array( 'name' => _("Size of value field"),
344 'type' => SMOPT_TYPE_INTEGER ),
30e9932c 345 '$addrbook_global_dsn' => array( 'name' => _("Global address book DSN"),
346 'type' => SMOPT_TYPE_STRING,
347 'size' => 40 ),
348 '$addrbook_global_table' => array( 'name' => _("Global address book table"),
349 'type' => SMOPT_TYPE_STRING,
350 'size' => 40,
351 'default' => 'global_abook' ),
d41e14ed 352 '$addrbook_global_writeable' => array( 'name' => _("Allow writing into global address book"),
30e9932c 353 'type' => SMOPT_TYPE_BOOLEAN ),
354 '$addrbook_global_listing' => array( 'name' => _("Allow listing of global address book"),
355 'type' => SMOPT_TYPE_BOOLEAN ),
0f610dca 356 /* ---- Language settings ---- */
39d3ec89 357 'Group9' => array( 'name' => _("Language settings"),
358 'type' => SMOPT_TYPE_TITLE ),
fdefb2e7 359 '$squirrelmail_default_language' => array( 'name' => _("Default Language"),
39d3ec89 360 'type' => SMOPT_TYPE_STRLIST,
361 'size' => 7,
362 'posvals' => $language_values ),
fdefb2e7 363 '$default_charset' => array( 'name' => _("Default Charset"),
39d3ec89 364 'type' => SMOPT_TYPE_STRLIST,
365 'posvals' => array( 'iso-8859-1' => 'iso-8859-1',
366 'iso-8859-2' => 'iso-8859-2',
367 'iso-8859-7' => 'iso-8859-7',
5b9bbb42 368 'iso-8859-9' => 'iso-8859-9',
39d3ec89 369 'iso-8859-15' => 'iso-8859-15',
5b9bbb42 370 'utf-8' => 'utf-8',
39d3ec89 371 'koi8-r' => 'koi8-r',
5b9bbb42 372 'euc-kr' => 'euc-kr',
373 'big5' => 'big5',
374 'gb2312' => 'gb2312',
375 'tis-620' => 'tis-620',
39d3ec89 376 'windows-1251' => 'windows-1251',
5b9bbb42 377 'windows-1255' => 'windows-1255',
378 'windows-1256' => 'windows-1256',
379 'iso-2022-jp' => 'iso-2022-jp' ) ),
fdefb2e7 380 '$show_alternative_names' => array( 'name' => _("Show alternative language names"),
381 'type' => SMOPT_TYPE_BOOLEAN ),
f03f6ee7 382 '$aggressive_decoding' => array( 'name' => _("Enable aggressive decoding"),
383 'type' => SMOPT_TYPE_BOOLEAN ),
6d3689f5 384 '$lossy_encoding' => array( 'name' => _("Enable lossy encoding"),
fdefb2e7 385 'type' => SMOPT_TYPE_BOOLEAN ),
0f610dca 386 /* ---- Tweaks ---- */
39d3ec89 387 'Group10' => array( 'name' => _("Tweaks"),
fdefb2e7 388 'type' => SMOPT_TYPE_TITLE ),
fdefb2e7 389 '$use_icons' => array( 'name' => _("Use icons"),
390 'type' => SMOPT_TYPE_BOOLEAN ),
71b2f21e 391 '$use_iframe' => array( 'name' => _("Use inline frames with HTML mails"),
9d953ce0 392 'type' => SMOPT_TYPE_BOOLEAN ),
d04cab42 393 '$use_php_recode' => array( 'name' => _("Use PHP recode functions"),
fdefb2e7 394 'type' => SMOPT_TYPE_BOOLEAN ),
d04cab42 395 '$use_php_iconv' => array( 'name' => _("Use PHP iconv functions"),
fdefb2e7 396 'type' => SMOPT_TYPE_BOOLEAN ),
06b811da 397 '$allow_remote_configtest' => array( 'name' => _("Allow remote configuration test"),
398 'type' => SMOPT_TYPE_BOOLEAN ),
0f610dca 399 /* ---- Settings of address books ---- */
400 'Group11' => array( 'name' => _("Address Books"),
401 'type' => SMOPT_TYPE_TITLE ),
402 '$default_use_javascript_addr_book' => array( 'name' => _("Default Javascript Addressbook"),
403 'type' => SMOPT_TYPE_BOOLEAN ),
06b811da 404 '$abook_global_file' => array( 'name' => _("Global address book file"),
405 'type' => SMOPT_TYPE_STRING ),
0f610dca 406 '$abook_global_file_writeable' => array( 'name' => _("Allow writing into global address book file"),
06b811da 407 'type' => SMOPT_TYPE_BOOLEAN ),
408 '$abook_global_file_listing' => array( 'name' => _("Allow listing of global address book"),
409 'type' => SMOPT_TYPE_BOOLEAN ),
f5da0b1e 410 '$abook_file_line_length' => array( 'name' => _("Address book file line length"),
411 'type' => SMOPT_TYPE_INTEGER ),
edd4a552 412 /* --------------------------------------------------------*/
439538dc 413 'Group7' => array( 'name' => _("Templates"),
30e9932c 414 'type' => SMOPT_TYPE_TITLE ),
415 '$theme_css' => array( 'name' => _("Style Sheet URL (css)"),
416 'type' => SMOPT_TYPE_PATH,
417 'size' => 40 ),
439538dc 418 '$default_fontsize' => array( 'name' => _("Default font size"),
419 'type' => SMOPT_TYPE_STRING,
420 'default' => ''),
421 '$default_fontset' => array( 'name' => _("Default font set"),
422 'type' => SMOPT_TYPE_STRLIST,
423 'posvals' => $fontsets),
424 '$templateset_default' => array( 'name' => _("Default template"),
425 'type' => SMOPT_TYPE_STRLIST,
426 'posvals' => adm_template_options()),
1e85b981 427 '$templateset_fallback' => array( 'name' => _("Fallback template"),
428 'type' => SMOPT_TYPE_STRLIST,
429 'posvals' => adm_template_options()),
fdefb2e7 430 '$theme_default' => array( 'name' => _("Default theme"),
431 'type' => SMOPT_TYPE_INTEGER,
432 'default' => 0,
433 'comment' => _("Use index number of theme") ),
30e9932c 434 /* --------------------------------------------------------*/
de6bf9e4 435 '$config_use_color' => array( 'name' => '',
436 'type' => SMOPT_TYPE_HIDDEN ),
fdefb2e7 437 '$no_list_for_subscribe' => array( 'name' => '',
438 'type' => SMOPT_TYPE_HIDDEN ),
497203d4 439 /* --------------------------------------------------------*/
dcd6f144 440
edd4a552 441 );