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