* shown can be given as parameters. If the user is not logged in
* this file will verify username and password.
*
- * @copyright © 1999-2006 The SquirrelMail Project Team
+ * @copyright © 1999-2007 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package squirrelmail
sqgetGlobalVar('right_frame', $right_frame, SQ_GET);
-if(!sqgetGlobalVar('mailto', $mailto)) {
- $mailto = '';
+if(!sqgetGlobalVar('mailtodata', $mailtodata)) {
+ $mailtourl = 'mailtodata='.urlencode($mailtodata);
+} else {
+ $mailtourl = '';
}
// Determine the size of the left frame
$right_frame_url = 'folders.php';
break;
case 'compose.php':
- $right_frame_url = 'compose.php?' . $mailto;
+ $right_frame_url = 'compose.php?' . $mailtourl;
break;
case '':
$right_frame_url = 'right_main.php';
break;
}
-displayHtmlHeader($org_title, '', false, true);
$oErrorHandler->setDelayedErrors(true);
-do_hook('webmail_top');
-
$oTemplate->assign('nav_size', $left_size);
$oTemplate->assign('nav_on_left', $location_of_bar=='left');
$oTemplate->assign('right_frame_url', $right_frame_url);
+do_hook('webmail_top', $null);
+
+displayHtmlHeader($org_title, '', false, true);
+
$oTemplate->display('webmail.tpl');
-$oTemplate->display('footer.tpl');
\ No newline at end of file