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 © 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 |
19 | require('../include/init.php'); |
a32985a5 |
20 | |
f38b7cf0 |
21 | sqgetGlobalVar('username', $username, SQ_SESSION); |
22 | sqgetGlobalVar('delimiter', $delimiter, SQ_SESSION); |
23 | sqgetGlobalVar('onetimepad', $onetimepad, SQ_SESSION); |
dcc1cc82 |
24 | |
ef8d36ad |
25 | if (sqgetGlobalVar('sort', $sort)) { |
26 | $sort = (int) $sort; |
27 | } |
28 | |
29 | if (sqgetGlobalVar('startMessage', $startMessage)) { |
30 | $startMessage = (int) $startMessage; |
31 | } |
32 | |
a2b193bc |
33 | if (!sqgetGlobalVar('mailbox', $mailbox)) { |
ef8d36ad |
34 | $mailbox = 'INBOX'; |
35 | } |
36 | |
f38b7cf0 |
37 | sqgetGlobalVar('right_frame', $right_frame, SQ_GET); |
38 | |
db6a9192 |
39 | if ( isset($_SESSION['session_expired_post']) ) { |
40 | sqsession_unregister('session_expired_post'); |
41 | } |
c67e4479 |
42 | if(!sqgetGlobalVar('mailto', $mailto)) { |
43 | $mailto = ''; |
44 | } |
a32985a5 |
45 | |
148ee1ef |
46 | do_hook('webmail_top'); |
47 | |
a6f35c16 |
48 | $oTemplate->assign('org_title',$org_title); |
49 | $oTemplate->assign('mailto',$mailto); |
50 | $oTemplate->assign('startMessage',$startMessage); |
51 | $oTemplate->assign('mailbox',$mailbox); |
52 | $oTemplate->assign('sort',$sort); |
53 | $oTemplate->assign('username',$username); |
54 | $oTemplate->assign('delimiter',$delimiter); |
55 | $oTemplate->assign('onetimepad',$onetimepad); |
56 | $oTemplate->assign('languages',$languages); |
57 | $oTemplate->assign('default_left_size',$default_left_size); |
58 | $oTemplate->assign('right_frame',$right_frame); |
59 | |
60 | $oTemplate->display('webmail.tpl'); |
202bcbcc |
61 | |
62 | $oTemplate->display('footer.tpl'); |