2da1f5a69af82c8c7c4c11f54de02f47eec5730c
[squirrelmail.git] / src / webmail.php
1 <?php
2
3 /**
4 * webmail.php -- Displays the main frameset
5 *
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 *
10 * @copyright &copy; 1999-2006 The SquirrelMail Project Team
11 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
12 * @version $Id$
13 * @package squirrelmail
14 */
15
16 /**
17 * Include the SquirrelMail initialization file.
18 */
19 require('../include/init.php');
20
21 if (sqgetGlobalVar('sort', $sort)) {
22 $sort = (int) $sort;
23 }
24
25 if (sqgetGlobalVar('startMessage', $startMessage)) {
26 $startMessage = (int) $startMessage;
27 }
28
29 if (!sqgetGlobalVar('mailbox', $mailbox)) {
30 $mailbox = 'INBOX';
31 }
32
33 sqgetGlobalVar('right_frame', $right_frame, SQ_GET);
34
35 if(!sqgetGlobalVar('mailto', $mailto)) {
36 $mailto = '';
37 }
38
39 do_hook('webmail_top');
40
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');
54
55 $oTemplate->display('footer.tpl');