Turn on delayed errors. ERrors generated here will be held over until right_main...
[squirrelmail.git] / src / webmail.php
CommitLineData
59177427 1<?php
c6d6fe73 2
864b1c33 3/**
15e6162e 4 * webmail.php -- Displays the main frameset
5 *
15e6162e 6 * This file generates the main frameset. The files that are
7 * shown can be given as parameters. If the user is not logged in
8 * this file will verify username and password.
9 *
47ccfad4 10 * @copyright &copy; 1999-2006 The SquirrelMail Project Team
4b4abf93 11 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
30967a1e 12 * @version $Id$
8f6f9ba5 13 * @package squirrelmail
15e6162e 14 */
21c3249f 15
30967a1e 16/**
202bcbcc 17 * Include the SquirrelMail initialization file.
30967a1e 18 */
202bcbcc 19require('../include/init.php');
a32985a5 20
ef8d36ad 21if (sqgetGlobalVar('sort', $sort)) {
22 $sort = (int) $sort;
23}
24
25if (sqgetGlobalVar('startMessage', $startMessage)) {
26 $startMessage = (int) $startMessage;
27}
28
a2b193bc 29if (!sqgetGlobalVar('mailbox', $mailbox)) {
ef8d36ad 30 $mailbox = 'INBOX';
31}
32
f38b7cf0 33sqgetGlobalVar('right_frame', $right_frame, SQ_GET);
34
c67e4479 35if(!sqgetGlobalVar('mailto', $mailto)) {
36 $mailto = '';
37}
a32985a5 38
148ee1ef 39do_hook('webmail_top');
40
a6f35c16 41$oTemplate->assign('org_title',$org_title);
42$oTemplate->assign('mailto',$mailto);
43$oTemplate->assign('startMessage',$startMessage);
44$oTemplate->assign('mailbox',$mailbox);
45$oTemplate->assign('sort',$sort);
46$oTemplate->assign('username',$username);
47$oTemplate->assign('delimiter',$delimiter);
48$oTemplate->assign('onetimepad',$onetimepad);
49$oTemplate->assign('languages',$languages);
50$oTemplate->assign('default_left_size',$default_left_size);
51$oTemplate->assign('right_frame',$right_frame);
52
53$oTemplate->display('webmail.tpl');
202bcbcc 54
55$oTemplate->display('footer.tpl');