$squirrelmail_plugin_hooks['login_cookie']['demo']
= 'demo_login_cookie';
-//FIXME: not all of the above hooks are yet implemented below
- $squirrelmail_plugin_hooks['login_top']['demo']
- = 'demo_login_top';
-
//FIXME: not all of the above hooks are yet implemented below
$squirrelmail_plugin_hooks['login_bottom']['demo']
= 'demo_login_bottom';
$oTemplate->assign('login_field_value', $loginname_value);
$oTemplate->assign('login_extra', $login_extra, FALSE);
-//FIXME: need to remove *ALL* HTML from this file!
-echo '<body onload="squirrelmail_loginpage_onload()">'."\n";
-echo '<form name="login_form" id="login_form" action="redirect.php" method="post" onsubmit="document.login_form.js_autodetect_results.value='. SMPREF_JS_ON .'">'."\n";
-do_hook('login_top', $null);
-
$oTemplate->display('login.tpl');
-//FIXME: need to remove *ALL* HTML from this file!
-echo "</form>\n";
do_hook('login_bottom', $null);
// Turn off delayed error handling to make sure all errors are dumped.
/* retrieve the template vars */
extract($t);
-?>
+?><body onload="squirrelmail_loginpage_onload()">
+<form name="login_form" id="login_form" action="redirect.php" method="post" onsubmit="document.login_form.js_autodetect_results.value=1">
+<?php if (!empty($plugin_output['login_top'])) echo $plugin_output['login_top']; ?>
<div id="sqm_login">
<table cellspacing="0">
<tr>
</tr>
</table>
</div>
+</form>
/* retrieve the template vars */
extract($t);
-?>
+?><body onload="squirrelmail_loginpage_onload()">
+<form name="login_form" id="login_form" action="redirect.php" method="post" onsubmit="document.login_form.js_autodetect_results.value=1">
+<?php if (!empty($plugin_output['login_top'])) echo $plugin_output['login_top']; ?>
<div id="sqm_login">
<table cellspacing="0">
<tr>
</tr>
</table>
</div>
+</form>