From: kink Date: Tue, 1 Aug 2006 11:13:56 +0000 (+0000) Subject: templating for signout X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=8f8188aeea5a72fac2005c5527edde67697ee2c4 templating for signout git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11455 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/src/signout.php b/src/signout.php index 181434fd..f15ed39c 100644 --- a/src/signout.php +++ b/src/signout.php @@ -46,46 +46,6 @@ if ($signout_page) { exit; /* we send no content if we're redirecting. */ } -/* internal gettext functions will fail, if language is not set */ -set_up_language($squirrelmail_language, true, true); -?> - - - - - - - - <?php echo $org_title . ' - ' . _("Signout"); ?> - - -

-' . - _("Click here to log back in.") . '
' , - 'center' ) , - '', $color[4] ) . - html_tag( 'tr', - html_tag( 'td', '
', 'center' ) , - '', $color[0] ) , -'center', $color[4], 'width="50%" cellpadding="2" cellspacing="0" border="0"' ); - /* After a reload of signout.php, $oTemplate might not exist anymore. * Recover, so that we don't get all kinds of errors in that situation. */ if ( !isset($oTemplate) || !is_object($oTemplate) ) { @@ -99,6 +59,15 @@ if ( !isset($oTemplate) || !is_object($oTemplate) ) { $oTemplate = new Template($sTplDir); } + +/* internal gettext functions will fail, if language is not set */ +set_up_language($squirrelmail_language, true, true); + +displayHtmlHeader($org_title . ' - ' . _("Signout")); + +$oTemplate->assign('frame_top', $frame_top); + +$oTemplate->display('signout.tpl'); + $oTemplate->display('footer.tpl'); -?> diff --git a/templates/default/signout.tpl b/templates/default/signout.tpl new file mode 100644 index 00000000..9c5bfaa4 --- /dev/null +++ b/templates/default/signout.tpl @@ -0,0 +1,34 @@ + + + +
+ + + + + +
+ +
+
+
+

+
+ diff --git a/templates/default/stylesheet.tpl b/templates/default/stylesheet.tpl index 343da585..a1dd8f84 100644 --- a/templates/default/stylesheet.tpl +++ b/templates/default/stylesheet.tpl @@ -125,10 +125,15 @@ a:link, a:visited, a:hover, a:active { border:1px solid ; } -.sqm_loginOrgName { +.sqm_loginOrgName, .sqm_signoutBar { background: ; } +.sqm_signout { + margin-top: 2em; + text-align: center; +} + .sqm_motd { background: ; }