* $Id$
*/
-require_once( '../functions/page_header.php' );
-
-function is_logged_in () {
- global $squirrelmail_language, $frame_top;
+function is_logged_in() {
if ( session_is_registered('user_is_logged_in') ) {
return;
+ } else {
+ include_once( '../functions/display_messages.php' );
+ logout_error( _("You must be logged in to access this page.") );
+ exit;
}
-
- set_up_language($squirrelmail_language, true);
-
- displayHtmlHeader( 'SquirrelMail', '', FALSE );
-
- echo "<body bgcolor=\"ffffff\">\n" .
- '<br><br><center><b>' .
- _("You must be logged in to access this page.").'</b><br><br>' .
- "<a href=\"../src/login.php\" target=\"$frame_top\">"._("Go to the login page")."</a>\n" .
- "</center></body></html>\n";
- exit;
}
-?>
+?>
\ No newline at end of file