Re: domain indication on logon page

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 5/5/07, kmnair <kmnair@xxxxxxxxx> wrote:
> On 5/5/07, Paul Lesniewski <paul@xxxxxxxxxxxxxxxx> wrote:
>
> > If you must (it's never good design to impose things you needn't upon
> > your users), the easiest way is actually to supply the login screen
> > address as:
> >
> > http://example.org/webmail/src/login.php?loginname=example.org
> >
> > Otherwise, either hack the value of $loginname_value in src/login.php
> > or create a quick plugin to alter the value of the username input
> > widget or create a custom login form.
>
> Thanks Paul.
>
> What I have been trying to do is to hack the $loginname_value in
> src/login.php. But I am not succeeding. I am totally zero with php
> coding.

1) open src/login.php

2) find the line (about #68) that looks like:
$loginname_value = (sqGetGlobalVar('loginname', $loginname) ?
htmlspecialchars($loginname) : '');

3) AFTER that line, add this one:
if (empty($loginname_value)) $loginname_value = '@example.org';

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
--
squirrelmail-users mailing list
Posting Guidelines: http://www.squirrelmail.org/wiki/MailingListPostingGuidelines
List Address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx
List Archives: http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

[Index of Archives]     [Video For Linux]     [Yosemite News]     [Yosemite Photos]     [gtk]     [KDE]     [Cyrus SASL]     [Gimp on Windows]     [Steve's Art]     [Webcams]

  Powered by Linux