[phplib] Mistake in the example auth_loginform()???? From: Dominic Paschke (dominic.paschke <email protected>)
Date: 10/22/00

 
Hi!

Because of problems with default login, I took a look at
the source code of the example local inc. There stands the
following definition of auth_loginform:
------------------------------------------
function auth_loginform() {
    global $sess;
    global $_PHPLIB;
    global $SCRIPT_NAME;
    
    include($_PHPLIB["libdir"] . "loginform.ihtml");

  }
--------------------------------------------
When called, the function draws the login-screen, but in
"loginform.ihtml" $sess and $SCRIPT_NAME are never used!
Moreover the default authentication does not work, because in
the action tag the url is always printed with the get-parameter
again=yes. In my opinion, there are some mistakes in the following
line in loginform.ihtml:
<form action="<?php print $this->url() ?>" method=post>
1:why is here used $this, and not $sess
2:url() needs on parameter, needn't it?
So I tried to fix it that way:
<form action="<?php print $see->url($SCRIPT_NAME) ?>" method=post>
I thought this was ment, becaus here I use $sess and $SCRIPT_NAME.
Unfortunately, I get the message: Document contained no data.....
Please give me some explanations to my problems,

Dominic
 

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>