> -----Original Message-----
> From: p dont think [mailto:[EMAIL PROTECTED]
> Sent: Thursday, 29 April 2004 12:56 PM
> To: Zoong Pham
> Cc: [EMAIL PROTECTED]
> Subject: Re: [SM-USERS] modified login name
> 
> 
> >>>I need to modify user login name in the front login page like this:
> >>>   replace @ with __ (2 underscores)
> >>>   replace . with _ (1 underscore).
> >>>
> >>>I look at src/login.php but don't know where to start.
> >>>I don't know PHP and really appreciate for any helps.

> > I think it's a simple job but I don't know PHP. I read the 
> PHP manual and
> > played 
> > with the script src/login.php using str_replace() and $loginnam and
> > $loginname_value 
> > like this:
> >    $loginname = str_replace("@", "__", $loginname);
> >    $loginname = str_replace(".", "_", $loginname);
> >    $loginname_value = (sqGetGlobalVar('loginname', $loginname) ?
> > htmlspecialchars($loginname) : '');
> 
> Looks like you're not doing things in the correct order.  Send exact 
> code if you need help, although doing this as a plugin will 
> allow you to 
> upgrade SM without having to re-hack the upgraded code.

I found the solution.
The file needs to be changed is src/redirect.php not src/login.php.

It's a simple change, less than 10 lines of PHP code.
If anymone interested, I can send you the diff.

vlogin and other plug-in either doens't work for me or overkill for
what I want.

Cheers,
Zoong


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE. 
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
--
squirrelmail-users mailing list
List Address: [EMAIL PROTECTED]
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Reply via email to