Capture username

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
siric
-


Joined: 28 Nov 2002
Posts: 19
Location: Barbados

PostPosted: Fri Nov 19, 2004 4:12 pm    Post subject: Capture username Reply with quote

Hi,

I have amin files stored in a directory with access control enabled, so Abyss popups the logon window. Is there anyway that I can capture the username for inclusion in a log file sotred in MySql.

Thanx
SiRiC
Back to top View user's profile Send private message
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Fri Nov 19, 2004 4:28 pm    Post subject: Reply with quote

I believe that if you know PHP with XML then yes that can be possible using
the new config file from the beta version , I think PHP v5 only supports XML.

Edit: I think what aprelium said is what your looking for.


Last edited by TRUSTAbyss on Sat Nov 20, 2004 11:11 am; edited 1 time in total
Back to top View user's profile Send private message Visit poster's website
admin
Site Admin


Joined: 03 Mar 2002
Posts: 1295

PostPosted: Sat Nov 20, 2004 9:46 am    Post subject: Re: Capture username Reply with quote

siric wrote:
Hi,

I have amin files stored in a directory with access control enabled, so Abyss popups the logon window. Is there anyway that I can capture the username for inclusion in a log file sotred in MySql.

Thanx
SiRiC

When you protect a CGI script with Access Control, the environment variable REMOTE_USER contains the validated user name.
In PHP, you can get its value using $_SERVER['REMOTE_USER'].
In other languages, use the function that reads the environment variables value and get the value of REMOTE_USER.
Back to top View user's profile Send private message
siric
-


Joined: 28 Nov 2002
Posts: 19
Location: Barbados

PostPosted: Mon Nov 22, 2004 3:36 pm    Post subject: Reply with quote

Thanx,
It works.
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group