Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 304 lines (230 sloc) 10.091 kB
4e17e6c @thomascube Initial revision
thomascube authored
1 <?php
2 /*
a6f90e1 @alecpl -fixed disclaimer
alecpl authored
3 +-------------------------------------------------------------------------+
4 | RoundCube Webmail IMAP Client |
5 | Version 0.1-20080506 |
6 | |
7 | Copyright (C) 2005-2008, RoundCube Dev. - Switzerland |
8 | |
9 | This program is free software; you can redistribute it and/or modify |
10 | it under the terms of the GNU General Public License version 2 |
11 | as published by the Free Software Foundation. |
12 | |
13 | This program is distributed in the hope that it will be useful, |
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16 | GNU General Public License for more details. |
17 | |
18 | You should have received a copy of the GNU General Public License along |
19 | with this program; if not, write to the Free Software Foundation, Inc., |
20 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
21 | |
22 +-------------------------------------------------------------------------+
23 | Author: Thomas Bruederli <roundcube@gmail.com> |
24 +-------------------------------------------------------------------------+
4e17e6c @thomascube Initial revision
thomascube authored
25
26 $Id$
27
28 */
29
47124c2 @thomascube Changed codebase to PHP5 with autoloader + added some new classes fro…
thomascube authored
30 // include environment
31 require_once 'program/include/iniset.php';
15a9d1c @thomascube Optimized loading time; added periodic mail check; added EXPUNGE command
thomascube authored
32
4e17e6c @thomascube Initial revision
thomascube authored
33 // define global vars
34 $OUTPUT_TYPE = 'html';
2f2f15b @thomascube Little improvements for message parsing and encoding
thomascube authored
35
36 // set output buffering
197601e @thomascube Next step: introduce the application class 'rcmail' and get rid of so…
thomascube authored
37 if ($RCMAIL->action != 'get' && $RCMAIL->action != 'viewsource') {
2f2f15b @thomascube Little improvements for message parsing and encoding
thomascube authored
38 // use gzip compression if supported
03fcc16 @till * fixing warning reported in #1484851
till authored
39 if (function_exists('ob_gzhandler')
47124c2 @thomascube Changed codebase to PHP5 with autoloader + added some new classes fro…
thomascube authored
40 && !ini_get('zlib.output_compression')
41 && ini_get('output_handler') != 'ob_gzhandler') {
2f2f15b @thomascube Little improvements for message parsing and encoding
thomascube authored
42 ob_start('ob_gzhandler');
03fcc16 @till * fixing warning reported in #1484851
till authored
43 }
47124c2 @thomascube Changed codebase to PHP5 with autoloader + added some new classes fro…
thomascube authored
44 else {
2f2f15b @thomascube Little improvements for message parsing and encoding
thomascube authored
45 ob_start();
47124c2 @thomascube Changed codebase to PHP5 with autoloader + added some new classes fro…
thomascube authored
46 }
f115416 @thomascube Merged branch devel-addressbook from r443 back to trunk
thomascube authored
47 }
2f2f15b @thomascube Little improvements for message parsing and encoding
thomascube authored
48
42b1135 @thomascube Several bugfixes and feature improvements
thomascube authored
49
197601e @thomascube Next step: introduce the application class 'rcmail' and get rid of so…
thomascube authored
50 // init application and start session with requested task
51 $RCMAIL = rcmail::get_instance();
4e17e6c @thomascube Initial revision
thomascube authored
52
47124c2 @thomascube Changed codebase to PHP5 with autoloader + added some new classes fro…
thomascube authored
53 // init output class
197601e @thomascube Next step: introduce the application class 'rcmail' and get rid of so…
thomascube authored
54 $OUTPUT = (!empty($_GET['_remote']) || !empty($_POST['_remote'])) ? $RCMAIL->init_json() : $RCMAIL->load_gui((!empty($_GET['_framed']) || !empty($_POST['_framed'])));
4e17e6c @thomascube Initial revision
thomascube authored
55
8affba5 @thomascube Improved error handling in DB connection failure
thomascube authored
56
57 // check DB connections and exit on failure
47124c2 @thomascube Changed codebase to PHP5 with autoloader + added some new classes fro…
thomascube authored
58 if ($err_str = $DB->is_error()) {
f115416 @thomascube Merged branch devel-addressbook from r443 back to trunk
thomascube authored
59 raise_error(array(
60 'code' => 603,
61 'type' => 'db',
62 'message' => $err_str), FALSE, TRUE);
63 }
8affba5 @thomascube Improved error handling in DB connection failure
thomascube authored
64
65
4e17e6c @thomascube Initial revision
thomascube authored
66 // error steps
197601e @thomascube Next step: introduce the application class 'rcmail' and get rid of so…
thomascube authored
67 if ($RCMAIL->action=='error' && !empty($_GET['_code'])) {
4e17e6c @thomascube Initial revision
thomascube authored
68 raise_error(array('code' => hexdec($_GET['_code'])), FALSE, TRUE);
47124c2 @thomascube Changed codebase to PHP5 with autoloader + added some new classes fro…
thomascube authored
69 }
4e17e6c @thomascube Initial revision
thomascube authored
70
71 // try to log in
197601e @thomascube Next step: introduce the application class 'rcmail' and get rid of so…
thomascube authored
72 if ($RCMAIL->action=='login' && $RCMAIL->task=='mail') {
1854c45 @thomascube More code cleanup + oop-ization
thomascube authored
73 $host = $RCMAIL->autoselect_host();
4e17e6c @thomascube Initial revision
thomascube authored
74
75 // check if client supports cookies
47124c2 @thomascube Changed codebase to PHP5 with autoloader + added some new classes fro…
thomascube authored
76 if (empty($_COOKIE)) {
f115416 @thomascube Merged branch devel-addressbook from r443 back to trunk
thomascube authored
77 $OUTPUT->show_message("cookiesdisabled", 'warning');
78 }
f15c268 @thomascube Don't allow empty user names but empty passwords
thomascube authored
79 else if ($_SESSION['temp'] && !empty($_POST['_user']) && isset($_POST['_pass']) &&
197601e @thomascube Next step: introduce the application class 'rcmail' and get rid of so…
thomascube authored
80 $RCMAIL->login(trim(get_input_value('_user', RCUBE_INPUT_POST), ' '),
47124c2 @thomascube Changed codebase to PHP5 with autoloader + added some new classes fro…
thomascube authored
81 get_input_value('_pass', RCUBE_INPUT_POST, true, 'ISO-8859-1'), $host)) {
aad6e2a @thomascube New session authentication, should fix bugs #1483951 and #1484299; te…
thomascube authored
82 // create new session ID
83 unset($_SESSION['temp']);
84 sess_regenerate_id();
85
86 // send auth cookie if necessary
1854c45 @thomascube More code cleanup + oop-ization
thomascube authored
87 $RCMAIL->authenticate_session();
aad6e2a @thomascube New session authentication, should fix bugs #1483951 and #1484299; te…
thomascube authored
88
5e0045b Add option to log successful logins.
svncommit authored
89 // log successful login
90 if ($RCMAIL->config->get('log_logins') && $RCMAIL->config->get('debug_level') & 1)
91 console(sprintf('Successful login for %s (id %d) from %s',
92 trim(get_input_value('_user', RCUBE_INPUT_POST), ' '),
93 $_SESSION['user_id'],
94 $_SERVER['REMOTE_ADDR']));
95
4e17e6c @thomascube Initial revision
thomascube authored
96 // send redirect
197601e @thomascube Next step: introduce the application class 'rcmail' and get rid of so…
thomascube authored
97 header("Location: {$RCMAIL->comm_path}");
4e17e6c @thomascube Initial revision
thomascube authored
98 exit;
f115416 @thomascube Merged branch devel-addressbook from r443 back to trunk
thomascube authored
99 }
47124c2 @thomascube Changed codebase to PHP5 with autoloader + added some new classes fro…
thomascube authored
100 else {
fc67251 @thomascube Show appropriate warning on connection error
thomascube authored
101 $OUTPUT->show_message($IMAP->error_code == -1 ? 'imaperror' : 'loginfailed', 'warning');
1854c45 @thomascube More code cleanup + oop-ization
thomascube authored
102 $RCMAIL->kill_session();
4e17e6c @thomascube Initial revision
thomascube authored
103 }
f115416 @thomascube Merged branch devel-addressbook from r443 back to trunk
thomascube authored
104 }
4e17e6c @thomascube Initial revision
thomascube authored
105
106 // end session
197601e @thomascube Next step: introduce the application class 'rcmail' and get rid of so…
thomascube authored
107 else if (($RCMAIL->task=='logout' || $RCMAIL->action=='logout') && isset($_SESSION['user_id'])) {
f115416 @thomascube Merged branch devel-addressbook from r443 back to trunk
thomascube authored
108 $OUTPUT->show_message('loggedout');
1854c45 @thomascube More code cleanup + oop-ization
thomascube authored
109 $RCMAIL->logout_actions();
110 $RCMAIL->kill_session();
f115416 @thomascube Merged branch devel-addressbook from r443 back to trunk
thomascube authored
111 }
4e17e6c @thomascube Initial revision
thomascube authored
112
bac7d17 @thomascube Fixed bugs #1364122, #1468895, ticket #1483811 and other minor bugs
thomascube authored
113 // check session and auth cookie
197601e @thomascube Next step: introduce the application class 'rcmail' and get rid of so…
thomascube authored
114 else if ($RCMAIL->action != 'login' && $_SESSION['user_id'] && $RCMAIL->action != 'send') {
1854c45 @thomascube More code cleanup + oop-ization
thomascube authored
115 if (!$RCMAIL->authenticate_session()) {
f115416 @thomascube Merged branch devel-addressbook from r443 back to trunk
thomascube authored
116 $OUTPUT->show_message('sessionerror', 'error');
1854c45 @thomascube More code cleanup + oop-ization
thomascube authored
117 $RCMAIL->kill_session();
4e17e6c @thomascube Initial revision
thomascube authored
118 }
f115416 @thomascube Merged branch devel-addressbook from r443 back to trunk
thomascube authored
119 }
4e17e6c @thomascube Initial revision
thomascube authored
120
121
122 // log in to imap server
197601e @thomascube Next step: introduce the application class 'rcmail' and get rid of so…
thomascube authored
123 if (!empty($RCMAIL->user->ID) && $RCMAIL->task == 'mail') {
1854c45 @thomascube More code cleanup + oop-ization
thomascube authored
124 if (!$RCMAIL->imap_connect()) {
125 $RCMAIL->kill_session();
47124c2 @thomascube Changed codebase to PHP5 with autoloader + added some new classes fro…
thomascube authored
126 }
f115416 @thomascube Merged branch devel-addressbook from r443 back to trunk
thomascube authored
127 }
4e17e6c @thomascube Initial revision
thomascube authored
128
129
130 // not logged in -> set task to 'login
197601e @thomascube Next step: introduce the application class 'rcmail' and get rid of so…
thomascube authored
131 if (empty($RCMAIL->user->ID)) {
f115416 @thomascube Merged branch devel-addressbook from r443 back to trunk
thomascube authored
132 if ($OUTPUT->ajax_call)
133 $OUTPUT->remote_response("setTimeout(\"location.href='\"+this.env.comm_path+\"'\", 2000);");
42b1135 @thomascube Several bugfixes and feature improvements
thomascube authored
134
1854c45 @thomascube More code cleanup + oop-ization
thomascube authored
135 $RCMAIL->set_task('login');
f115416 @thomascube Merged branch devel-addressbook from r443 back to trunk
thomascube authored
136 }
4e17e6c @thomascube Initial revision
thomascube authored
137
138
719a257 @thomascube Some bugfixes, security issues + minor improvements
thomascube authored
139 // check client X-header to verify request origin
47124c2 @thomascube Changed codebase to PHP5 with autoloader + added some new classes fro…
thomascube authored
140 if ($OUTPUT->ajax_call) {
141 if (empty($CONFIG['devel_mode']) && !rc_request_header('X-RoundCube-Referer')) {
719a257 @thomascube Some bugfixes, security issues + minor improvements
thomascube authored
142 header('HTTP/1.1 404 Not Found');
143 die("Invalid Request");
144 }
145 }
146
4e17e6c @thomascube Initial revision
thomascube authored
147
148 // not logged in -> show login page
197601e @thomascube Next step: introduce the application class 'rcmail' and get rid of so…
thomascube authored
149 if (empty($RCMAIL->user->ID)) {
330127a @thomascube Disable PHP notices + check for installer script on login page
thomascube authored
150 // check if installer is still active
47124c2 @thomascube Changed codebase to PHP5 with autoloader + added some new classes fro…
thomascube authored
151 if ($CONFIG['enable_installer'] && is_readable('./installer/index.php')) {
152 $OUTPUT->add_footer(html::div(array('style' => "background:#ef9398; border:2px solid #dc5757; padding:0.5em; margin:2em auto; width:50em"),
153 html::tag('h2', array('style' => "margin-top:0.2em"), "Installer script is still accessible") .
154 html::p(null, "The install script of your RoundCube installation is still stored in its default location!") .
155 html::p(null, "Please <b>remove</b> the whole <tt>installer</tt> folder from the RoundCube directory because .
156 these files may expose sensitive configuration data like server passwords and encryption keys
157 to the public. Make sure you cannot access the <a href=\"./installer/\">installer script</a> from your browser.")
158 )
159 );
160 }
330127a @thomascube Disable PHP notices + check for installer script on login page
thomascube authored
161
bbf15d8 @alecpl - fixed task setting on login
alecpl authored
162 $OUTPUT->set_env('task', 'login');
f115416 @thomascube Merged branch devel-addressbook from r443 back to trunk
thomascube authored
163 $OUTPUT->task = 'login';
164 $OUTPUT->send('login');
4e17e6c @thomascube Initial revision
thomascube authored
165 exit;
f115416 @thomascube Merged branch devel-addressbook from r443 back to trunk
thomascube authored
166 }
4e17e6c @thomascube Initial revision
thomascube authored
167
168
1cded85 @thomascube Re-design of caching (new database table added\!); some bugfixes; Pos…
thomascube authored
169 // handle keep-alive signal
197601e @thomascube Next step: introduce the application class 'rcmail' and get rid of so…
thomascube authored
170 if ($RCMAIL->action=='keep-alive') {
f115416 @thomascube Merged branch devel-addressbook from r443 back to trunk
thomascube authored
171 $OUTPUT->reset();
172 $OUTPUT->send('');
1cded85 @thomascube Re-design of caching (new database table added\!); some bugfixes; Pos…
thomascube authored
173 exit;
f115416 @thomascube Merged branch devel-addressbook from r443 back to trunk
thomascube authored
174 }
1cded85 @thomascube Re-design of caching (new database table added\!); some bugfixes; Pos…
thomascube authored
175
4e17e6c @thomascube Initial revision
thomascube authored
176 // include task specific files
197601e @thomascube Next step: introduce the application class 'rcmail' and get rid of so…
thomascube authored
177 if ($RCMAIL->task=='mail') {
4e17e6c @thomascube Initial revision
thomascube authored
178 include_once('program/steps/mail/func.inc');
88375ff @thomascube Added RSS output (experimental)
thomascube authored
179
197601e @thomascube Next step: introduce the application class 'rcmail' and get rid of so…
thomascube authored
180 if ($RCMAIL->action=='show' || $RCMAIL->action=='preview' || $RCMAIL->action=='print')
4e17e6c @thomascube Initial revision
thomascube authored
181 include('program/steps/mail/show.inc');
182
197601e @thomascube Next step: introduce the application class 'rcmail' and get rid of so…
thomascube authored
183 if ($RCMAIL->action=='get')
4e17e6c @thomascube Initial revision
thomascube authored
184 include('program/steps/mail/get.inc');
185
197601e @thomascube Next step: introduce the application class 'rcmail' and get rid of so…
thomascube authored
186 if ($RCMAIL->action=='moveto' || $RCMAIL->action=='delete')
4e17e6c @thomascube Initial revision
thomascube authored
187 include('program/steps/mail/move_del.inc');
188
197601e @thomascube Next step: introduce the application class 'rcmail' and get rid of so…
thomascube authored
189 if ($RCMAIL->action=='mark')
4e17e6c @thomascube Initial revision
thomascube authored
190 include('program/steps/mail/mark.inc');
191
197601e @thomascube Next step: introduce the application class 'rcmail' and get rid of so…
thomascube authored
192 if ($RCMAIL->action=='viewsource')
4e17e6c @thomascube Initial revision
thomascube authored
193 include('program/steps/mail/viewsource.inc');
194
197601e @thomascube Next step: introduce the application class 'rcmail' and get rid of so…
thomascube authored
195 if ($RCMAIL->action=='sendmdn')
fba1f5a @thomascube New class rcube_user + send message disposition notification
thomascube authored
196 include('program/steps/mail/sendmdn.inc');
197
197601e @thomascube Next step: introduce the application class 'rcmail' and get rid of so…
thomascube authored
198 if ($RCMAIL->action=='send')
4e17e6c @thomascube Initial revision
thomascube authored
199 include('program/steps/mail/sendmail.inc');
200
197601e @thomascube Next step: introduce the application class 'rcmail' and get rid of so…
thomascube authored
201 if ($RCMAIL->action=='upload')
4e17e6c @thomascube Initial revision
thomascube authored
202 include('program/steps/mail/upload.inc');
203
197601e @thomascube Next step: introduce the application class 'rcmail' and get rid of so…
thomascube authored
204 if ($RCMAIL->action=='compose' || $RCMAIL->action=='remove-attachment' || $RCMAIL->action=='display-attachment')
4e17e6c @thomascube Initial revision
thomascube authored
205 include('program/steps/mail/compose.inc');
206
197601e @thomascube Next step: introduce the application class 'rcmail' and get rid of so…
thomascube authored
207 if ($RCMAIL->action=='addcontact')
4e17e6c @thomascube Initial revision
thomascube authored
208 include('program/steps/mail/addcontact.inc');
15a9d1c @thomascube Optimized loading time; added periodic mail check; added EXPUNGE command
thomascube authored
209
197601e @thomascube Next step: introduce the application class 'rcmail' and get rid of so…
thomascube authored
210 if ($RCMAIL->action=='expunge' || $RCMAIL->action=='purge')
15a9d1c @thomascube Optimized loading time; added periodic mail check; added EXPUNGE command
thomascube authored
211 include('program/steps/mail/folders.inc');
212
197601e @thomascube Next step: introduce the application class 'rcmail' and get rid of so…
thomascube authored
213 if ($RCMAIL->action=='check-recent')
15a9d1c @thomascube Optimized loading time; added periodic mail check; added EXPUNGE command
thomascube authored
214 include('program/steps/mail/check_recent.inc');
215
197601e @thomascube Next step: introduce the application class 'rcmail' and get rid of so…
thomascube authored
216 if ($RCMAIL->action=='getunread')
15a9d1c @thomascube Optimized loading time; added periodic mail check; added EXPUNGE command
thomascube authored
217 include('program/steps/mail/getunread.inc');
4e17e6c @thomascube Initial revision
thomascube authored
218
197601e @thomascube Next step: introduce the application class 'rcmail' and get rid of so…
thomascube authored
219 if ($RCMAIL->action=='list' && isset($_REQUEST['_remote']))
4e17e6c @thomascube Initial revision
thomascube authored
220 include('program/steps/mail/list.inc');
221
197601e @thomascube Next step: introduce the application class 'rcmail' and get rid of so…
thomascube authored
222 if ($RCMAIL->action=='search')
dd53e2b @thomascube Started integrating GoogieSpell
thomascube authored
223 include('program/steps/mail/search.inc');
224
197601e @thomascube Next step: introduce the application class 'rcmail' and get rid of so…
thomascube authored
225 if ($RCMAIL->action=='spell')
dd53e2b @thomascube Started integrating GoogieSpell
thomascube authored
226 include('program/steps/mail/spell.inc');
4647e1b @thomascube Started implementing search function
thomascube authored
227
197601e @thomascube Next step: introduce the application class 'rcmail' and get rid of so…
thomascube authored
228 if ($RCMAIL->action=='rss')
88375ff @thomascube Added RSS output (experimental)
thomascube authored
229 include('program/steps/mail/rss.inc');
3ea0e32 @thomascube Quota display as image
thomascube authored
230
01c86f2 @thomascube Minor bugfixes
thomascube authored
231 // make sure the message count is refreshed
47124c2 @thomascube Changed codebase to PHP5 with autoloader + added some new classes fro…
thomascube authored
232 $IMAP->messagecount($_SESSION['mbox'], 'ALL', true);
f115416 @thomascube Merged branch devel-addressbook from r443 back to trunk
thomascube authored
233 }
4e17e6c @thomascube Initial revision
thomascube authored
234
235
236 // include task specific files
197601e @thomascube Next step: introduce the application class 'rcmail' and get rid of so…
thomascube authored
237 if ($RCMAIL->task=='addressbook') {
4e17e6c @thomascube Initial revision
thomascube authored
238 include_once('program/steps/addressbook/func.inc');
239
197601e @thomascube Next step: introduce the application class 'rcmail' and get rid of so…
thomascube authored
240 if ($RCMAIL->action=='save')
4e17e6c @thomascube Initial revision
thomascube authored
241 include('program/steps/addressbook/save.inc');
242
197601e @thomascube Next step: introduce the application class 'rcmail' and get rid of so…
thomascube authored
243 if ($RCMAIL->action=='edit' || $RCMAIL->action=='add')
4e17e6c @thomascube Initial revision
thomascube authored
244 include('program/steps/addressbook/edit.inc');
245
197601e @thomascube Next step: introduce the application class 'rcmail' and get rid of so…
thomascube authored
246 if ($RCMAIL->action=='delete')
4e17e6c @thomascube Initial revision
thomascube authored
247 include('program/steps/addressbook/delete.inc');
248
197601e @thomascube Next step: introduce the application class 'rcmail' and get rid of so…
thomascube authored
249 if ($RCMAIL->action=='show')
4e17e6c @thomascube Initial revision
thomascube authored
250 include('program/steps/addressbook/show.inc');
251
197601e @thomascube Next step: introduce the application class 'rcmail' and get rid of so…
thomascube authored
252 if ($RCMAIL->action=='list' && $_REQUEST['_remote'])
4e17e6c @thomascube Initial revision
thomascube authored
253 include('program/steps/addressbook/list.inc');
d1d2c4f adding files and modifications for public ldap search
svncommit authored
254
197601e @thomascube Next step: introduce the application class 'rcmail' and get rid of so…
thomascube authored
255 if ($RCMAIL->action=='search')
f115416 @thomascube Merged branch devel-addressbook from r443 back to trunk
thomascube authored
256 include('program/steps/addressbook/search.inc');
257
197601e @thomascube Next step: introduce the application class 'rcmail' and get rid of so…
thomascube authored
258 if ($RCMAIL->action=='copy')
f115416 @thomascube Merged branch devel-addressbook from r443 back to trunk
thomascube authored
259 include('program/steps/addressbook/copy.inc');
260
197601e @thomascube Next step: introduce the application class 'rcmail' and get rid of so…
thomascube authored
261 if ($RCMAIL->action=='mailto')
f115416 @thomascube Merged branch devel-addressbook from r443 back to trunk
thomascube authored
262 include('program/steps/addressbook/mailto.inc');
263 }
4e17e6c @thomascube Initial revision
thomascube authored
264
265
266 // include task specific files
197601e @thomascube Next step: introduce the application class 'rcmail' and get rid of so…
thomascube authored
267 if ($RCMAIL->task=='settings') {
4e17e6c @thomascube Initial revision
thomascube authored
268 include_once('program/steps/settings/func.inc');
269
197601e @thomascube Next step: introduce the application class 'rcmail' and get rid of so…
thomascube authored
270 if ($RCMAIL->action=='save-identity')
4e17e6c @thomascube Initial revision
thomascube authored
271 include('program/steps/settings/save_identity.inc');
272
197601e @thomascube Next step: introduce the application class 'rcmail' and get rid of so…
thomascube authored
273 if ($RCMAIL->action=='add-identity' || $RCMAIL->action=='edit-identity')
4e17e6c @thomascube Initial revision
thomascube authored
274 include('program/steps/settings/edit_identity.inc');
275
197601e @thomascube Next step: introduce the application class 'rcmail' and get rid of so…
thomascube authored
276 if ($RCMAIL->action=='delete-identity')
4e17e6c @thomascube Initial revision
thomascube authored
277 include('program/steps/settings/delete_identity.inc');
278
197601e @thomascube Next step: introduce the application class 'rcmail' and get rid of so…
thomascube authored
279 if ($RCMAIL->action=='identities')
4e17e6c @thomascube Initial revision
thomascube authored
280 include('program/steps/settings/identities.inc');
281
197601e @thomascube Next step: introduce the application class 'rcmail' and get rid of so…
thomascube authored
282 if ($RCMAIL->action=='save-prefs')
4e17e6c @thomascube Initial revision
thomascube authored
283 include('program/steps/settings/save_prefs.inc');
284
197601e @thomascube Next step: introduce the application class 'rcmail' and get rid of so…
thomascube authored
285 if ($RCMAIL->action=='folders' || $RCMAIL->action=='subscribe' || $RCMAIL->action=='unsubscribe' ||
286 $RCMAIL->action=='create-folder' || $RCMAIL->action=='rename-folder' || $RCMAIL->action=='delete-folder')
4e17e6c @thomascube Initial revision
thomascube authored
287 include('program/steps/settings/manage_folders.inc');
f115416 @thomascube Merged branch devel-addressbook from r443 back to trunk
thomascube authored
288 }
4e17e6c @thomascube Initial revision
thomascube authored
289
290
291 // parse main template
197601e @thomascube Next step: introduce the application class 'rcmail' and get rid of so…
thomascube authored
292 $OUTPUT->send($RCMAIL->task);
539cd47 @thomascube Fix for URL injection vulnerability (Bug #1307966)
thomascube authored
293
4e17e6c @thomascube Initial revision
thomascube authored
294
539cd47 @thomascube Fix for URL injection vulnerability (Bug #1307966)
thomascube authored
295 // if we arrive here, something went wrong
f115416 @thomascube Merged branch devel-addressbook from r443 back to trunk
thomascube authored
296 raise_error(array(
297 'code' => 404,
298 'type' => 'php',
299 'line' => __LINE__,
300 'file' => __FILE__,
47124c2 @thomascube Changed codebase to PHP5 with autoloader + added some new classes fro…
thomascube authored
301 'message' => "Invalid request"), true, true);
539cd47 @thomascube Fix for URL injection vulnerability (Bug #1307966)
thomascube authored
302
d1d2c4f adding files and modifications for public ldap search
svncommit authored
303 ?>
Something went wrong with that request. Please try again.