Date: 11/10/99
- Next message: Alan Lee: "[PHPLIB] oohforms: radio buttons"
- Previous message: Caffeinate The World: "RE: [PHPLIB] strange login behavior"
- Next in thread: David Tiselius: "Re: [PHPLIB] login form on every page"
- Reply: David Tiselius: "Re: [PHPLIB] login form on every page"
- Maybe reply: Patrick _: "Re: [PHPLIB] login form on every page"
- Maybe reply: Patrick _: "Re: [PHPLIB] login form on every page"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Has anyone tried to put a login form on each page of a web site using
phplib?
At the moment I'm trying to let users login no matter where they are on
the web site.
I put a page_open command in prepend.inc and defined my own session,auth
and perms classes.
I had to hack around auth_loginform() a bit and added the following
line:
include("PATH_TO_DOCUMENT_ROOT".$PHP_SELF);
in the function so it would feed out the same page and not
loginform.ihtml..
Of course, each page has a form with username,password and action=self
so a user can login.
Unfortunetly, most variable got lost in loginform() so they had to be
"global"ised in the function and I had to run through HTTP_POST/GET_VARS
and do $$key=$value..
I ran across two problem though:
phpinfo() stops dead just before it prints the "Environment" when a user
isn't logged in.
Works grand otherwise.
I tried phpAds and that blows up when a user isn't logged in. I did some
debugging and the $GLOBAL array isn't set when someone isn't logged in.
Obviously, when someone is logged in, they don't have to go through
loginform() but surely the variables should still exist.
Complex to explain, but maybe someone had this trouble before?
For the record, I'm using php 3.0.11, phplib 6.1, and Apache 1.3.6
Donncha.
-
PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
the body, not the subject, of your message.
- Next message: Alan Lee: "[PHPLIB] oohforms: radio buttons"
- Previous message: Caffeinate The World: "RE: [PHPLIB] strange login behavior"
- Next in thread: David Tiselius: "Re: [PHPLIB] login form on every page"
- Reply: David Tiselius: "Re: [PHPLIB] login form on every page"
- Maybe reply: Patrick _: "Re: [PHPLIB] login form on every page"
- Maybe reply: Patrick _: "Re: [PHPLIB] login form on every page"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

