[imp] Problems with login screen...
Russell Anderson
randerson at easternsun.biz
Tue Feb 4 15:20:49 PST 2003
Darn, still no joy. Here is the source that's being displayed to my browser (omitting the JavaScript):
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<!-- IMP: Copyright 2001, The Horde Project. IMP is under the GPL. -->
<!-- Horde Project: http://horde.org/ | IMP: http://horde.org/imp/ -->
<!-- GNU Public License: http://www.fsf.org/copyleft/gpl.html -->
<?= !empty($language) ? '<html lang="' . strtr($language, '_', '-') . '">' : '<html>' ?>
<head>
<title><?= htmlspecialchars($page_title) ?></title>
<link href="<?= $registry->getParam('webroot', 'horde') ?>/css.php?app=imp" rel="stylesheet" type="text/css" />
</head>
<body onload="setFocus()">
<form action="<?= Horde::applicationUrl('redirect.php') ?>" method="post" name="implogin">
<input type="hidden" name="actionID" value="<?= $actionID ?>" />
<input type="hidden" name="url" value="<?= htmlspecialchars(Horde::getFormData('url')) ?>" />
<input type="hidden" name="mailbox" value="<?= $prefs->getValue('mailbox') ?>" />
<table align="center" border="0" width="300">
<tr><td align="center" colspan="2" class="header">
Welcome to Mail</td></tr>
<tr>
<td align="right" class="light"><b><?= _("Username") ?></b></td>
<td align="left"><input type="text" tabindex="1" name="imapuser" value="<?= Horde::getFormData('imapuser', getenv('REMOTE_USER')) ?>" /></td>
</tr>
<tr>
<td align="right" class="light"><b><?= _("Password") ?></b></td>
<td align="left"><input type="password" tabindex="2" name="pass" /></td>
</tr>
<tr>
<td align="right" class="light"><b><?= _("Server") ?></b></td>
<td align="left" class="light">
<input type="hidden" name="namespace" value="<?= $namespace_value ?>" />
<input type="hidden" name="maildomain" value="<?= $maildomain_value ?>" />
<input type="text" tabindex="3" name="server" value="<?= Horde::getFormData('server', $server_value) ?>" />
<input type="hidden" name="port" value="<?= $port_value ?>" />
<select tabindex="3" name="protocol" onchange="updatePort();">
<option value="imap">IMAP</option>
<option value="imap/notls" selected="selected">IMAP, no TLS</option>
<option value="imap/ssl">IMAP over SSL</option>
<option value="imap/ssl/novalidate-cert">IMAP over SSL (self-signed)</option>
<option value="pop3">POP-3</option>
<option value="pop3/ssl/novalidate-cert">POP-3 over SSL (self-signed)</option>
</select>
</td>
<td><input type="hidden" name="folders" value="<?= $folders_value ?>" /></td>
</tr>
<tr>
<td align="right" class="light"><b><?= _("Language") ?></b></td>
<td align="left" class="light"><?= $langs ?></td>
</tr>
<tr>
<td> </td>
<td align="left" class="light"><input type="submit" class="button" name="button" tabindex="4" value="<?= _("Log in") ?>" onclick="return submit_login();" /></td>
</tr>
</table>
</form>
<!-- This file contains any "Message Of The Day" Type information -->
<!-- It will be included below the log-in form on the login page. -->
</body>
</html>
-Russ
-----Original Message-----
From: Andrew Cockburn [mailto:andrew at cockburn.co.uk]
Sent: Tuesday, February 04, 2003 11:28 AM
To: imp at lists.horde.org
Subject: Re: [imp] Problems with login screen...
Hi there,
The thing that worked for me was the following :
in /etc/php.ini change
short_open_tag = Off
to
short_open_tag = On
This means that <? tags will be interpreted by PHP rather than ignored (which
explains the php codeseen on the logon screen, which isn't proper
html, hence you get a corrupted page)
This seems to be the way RedHat 8.0 is set up by default.
Regards,
Andrew Cockburn
Quoting Russell Anderson <randerson at easternsun.biz>:
> Greetings all,
>
> I am new to this project (and php), and am having issues with the imp login
> page. I've looked through the archives and found a few similar problems, but
> the solutions posted then didn't help. The login page for imp shows the php
> code instead of converting it to html. The test.php page for both imp and
> horde, as well as the menu.php and login page for horde work just fine. I
> also have disabled compression in horde.php and php.ini.
>
> The system is running on RH8.0, apache 2.0.40, Horde 2.2, Imp 3.1, PHP 4.2.2.
> All items in horde/test.php are 'Yes' except MCAL, Mcrypt, and PostgreSQL.
>
> Any suggestions?
>
> --
> Russell Anderson
> Data Services Manager
>
> Eastern Sun Enterprises, Inc
> 851 Seahawk Circle, Suite 106
> Virginia Beach, Virginia 23452
>
> Phone: 757.563.0752
> Fax: 757.563.2843
> Mobile: 757.567.0752
> Www: www.EasternSun.biz
>
>
> --
> IMP mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: imp-unsubscribe at lists.horde.org
>
Regards,
Andrew Cockburn
--
IMP mailing list
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: imp-unsubscribe at lists.horde.org
More information about the imp
mailing list