[dev] Tweaks to imp's login page

John Morrissey jwm at horde.net
Fri Jun 6 09:09:05 PDT 2003


The attached tweaks make imp's login page look a bit better if the vinfo
hook is being used.

john
-- 
John Morrissey          _o            /\         ----  __o
jwm at horde.net        _-< \_          /  \       ----  <  \,
www.horde.net/    __(_)/_(_)________/    \_______(_) /_(_)__
-------------- next part --------------
Index: imp/templates/login/login.inc
===================================================================
RCS file: /repository/imp/templates/login/login.inc,v
retrieving revision 2.126
diff -u -u -r2.126 login.inc
--- imp/templates/login/login.inc	21 Apr 2003 05:20:06 -0000	2.126
+++ imp/templates/login/login.inc	6 Jun 2003 16:06:57 -0000
@@ -140,7 +140,7 @@
   <?php printf(_("Welcome to %s"), (Auth::getProvider() == 'imp') ? $registry->getParam('name', 'horde') : $registry->getParam('name')) ?>
 </td></tr>
 <?php if (!empty($reasons[$reason])): ?>
-<tr><td align="left" colspan="2" class="light"><p class="light"><?php echo $reasons[$reason] ?></p></td></tr>
+<tr><td align="center" colspan="2" class="light"><p class="light"><?php echo $reasons[$reason] ?></p></td></tr>
 <?php endif; ?>
 <?php if ((count($guestapps) || $problem) && Auth::getProvider() == 'imp'): ?>
 <tr>
@@ -152,13 +152,15 @@
 <?php endif; ?>
 <tr>
     <td align="right" class="light"><b><?php echo _("Username") ?></b></td>
-    <td align="left"><input type="text" tabindex="1" name="imapuser" value="<?php echo htmlspecialchars(Horde::getFormData('imapuser', getenv('REMOTE_USER'))) ?>" /></td>
+    <td align="left" class="light">
+      <input type="text" tabindex="1" name="imapuser" value="<?php echo htmlspecialchars(Horde::getFormData('imapuser', getenv('REMOTE_USER'))) ?>" /></td>
     <?php
         if (!empty($conf['hooks']['vinfo'])) {
             @include_once HORDE_BASE . '/config/hooks.php';
             if (function_exists('_imp_hook_vinfo')) { ?>
-    <td align="left" class="light"><b>@<?php echo call_user_func('_imp_hook_vinfo', 'vdomain') ?></b></td>
+      <b>@<?php echo call_user_func('_imp_hook_vinfo', 'vdomain') ?></b>
     <?php } } ?>
+    </td>
 </tr>
 <tr>
     <td align="right" class="light"><b><?php echo _("Password") ?></b></td>


More information about the dev mailing list