From: pdontthink Date: Sat, 4 Nov 2006 03:55:54 +0000 (+0000) Subject: Make login uri dynamic X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=779d60951c348bccb3e4e079844e5acc3e82379a;p=squirrelmail.git Make login uri dynamic git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11946 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/src/signout.php b/src/signout.php index 55576058..538046e6 100644 --- a/src/signout.php +++ b/src/signout.php @@ -35,7 +35,10 @@ if (! sqgetGlobalVar('base_uri', $base_uri, SQ_SESSION) ) { $base_uri = sqm_baseuri(); } -do_hook('logout'); +$login_uri = 'login.php'; + +$hook_results = do_hook('logout', $login_uri); +$login_uri = $hook_results[1]; sqsession_destroy(); @@ -70,6 +73,7 @@ set_up_language($squirrelmail_language, true, true); displayHtmlHeader($org_title . ' - ' . _("Signout")); $oTemplate->assign('frame_top', $frame_top); +$oTemplate->assign('login_uri', $login_uri); $oTemplate->display('signout.tpl'); diff --git a/templates/default/signout.tpl b/templates/default/signout.tpl index 9c5bfaa4..0d90d898 100644 --- a/templates/default/signout.tpl +++ b/templates/default/signout.tpl @@ -26,7 +26,7 @@ $plugin_message = concat_hook_function('logout_above_text');
-
+