Make login uri dynamic
authorpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 4 Nov 2006 03:55:54 +0000 (03:55 +0000)
committerpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 4 Nov 2006 03:55:54 +0000 (03:55 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11946 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/signout.php
templates/default/signout.tpl

index 55576058e743f66205c455b43d6ec10081642a4d..538046e6c5733ae42eeeefb2c3768f53f79f9e2c 100644 (file)
@@ -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');
 
index 9c5bfaa4a45a2e1d8106886367a6500ca9a549bc..0d90d89836008c83337c207e9839d7a035d82de4 100644 (file)
@@ -26,7 +26,7 @@ $plugin_message = concat_hook_function('logout_above_text');
 <?php echo $plugin_message; ?>
 <tr width="100%"><td>
   <?php echo _("You have been successfully signed out."); ?><br />
-  <a href="login.php" target="<?php echo $frame_top; ?>"><?php echo _("Click here to log back in."); ?></a><br />
+  <a href="<?php echo $login_uri; ?>" target="<?php echo $frame_top; ?>"><?php echo _("Click here to log back in."); ?></a><br />
 </td></tr>
 <tr width="100%"><td class="sqm_signoutBar"><br /></td></tr>
 </table>