View previous topic :: View next topic |
Author |
Message |
sanene -
Joined: 20 May 2004 Posts: 2
|
Posted: Thu Jul 08, 2004 6:31 am Post subject: take the username from abyss' access control |
|
|
hello, i am trying to create a members section in my webpage,
and i need to learn the username to be able to dynamically create the content of the page accordingly for each member.
How can i do this? can somebody help? |
|
Back to top |
|
 |
sanene -
Joined: 20 May 2004 Posts: 2
|
Posted: Thu Jul 08, 2004 6:36 am Post subject: |
|
|
hi all again, it was quick but i found the answer.
it happens to be in the $PHP_AUTH_USER variable.
Sorry bothering you.. |
|
Back to top |
|
 |
00squeaky -
Joined: 11 May 2004 Posts: 60
|
Posted: Thu Jul 08, 2004 8:53 am Post subject: |
|
|
actually, it is much easier to do usijng a Mysql database. not only that, but your little solution will not work unless the browser is displaying their personal information. this way, you will not ave to use that PHP_authingy, but a few if($auth == 1) {'s in sensitive places.
and, what i have found, you have to use very few functions. all you really have to do to your user db is add a column called |auth|, with the values admin, or user. _________________ Languages mastered:
HTML,GML,C,PHP,MYSQL (not really a language, but wtf) |
|
Back to top |
|
 |
kordian -
Joined: 06 Apr 2005 Posts: 2 Location: Poland
|
Posted: Wed Apr 06, 2005 11:24 pm Post subject: |
|
|
sanene wrote: | hi all again, it was quick but i found the answer.
it happens to be in the $PHP_AUTH_USER variable.
Sorry bothering you.. |
please write how use this with login form[/img] |
|
Back to top |
|
 |
|