-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
> > If I'm writing a plugin and I need to get hold of the currently logged in
> > users email address, what methods do I have to get this?
>
> It's a global variable. At the beginning of your function:
>
> function someplugin_init() {
> global $username;
> print "Hi $username. Ostriches run fast.<br>\n";
> }
>
> Then you can use it throughout the function.
So $username actually contains something like "[EMAIL PROTECTED]" ?
- --
Mark Watts
Senior Systems Engineer
QinetiQ TIM
St Andrews Road, Malvern
GPG Public Key ID: 455420ED
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQE/vMvWBn4EFUVUIO0RAsbVAKCY+DwJVTYwyNwnWEPesKJ2IMErxwCdEISD
JjYIHfirQNs1MaNCQ39/9A8=
=cR8g
-----END PGP SIGNATURE-----
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
--
squirrelmail-users mailing list
List Address: [EMAIL PROTECTED]
List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id)95
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users