Date: 11/25/00
- Next message: Holger Blasum: "Re: [phplib] the lost $_PHPLIB["libdir"]-variable"
- Previous message: Jesse Swensen: "Re: AW: [phplib] the "Group by" Function Problem"
- Next in thread: Holger Blasum: "Re: [phplib] the lost $_PHPLIB["libdir"]-variable"
- Reply: Holger Blasum: "Re: [phplib] the lost $_PHPLIB["libdir"]-variable"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
well my friends another braincracker for me :
hmmm ....
I protected my member area with the page_open function initialized the
sess-, and the auth-obejct. Everything seems to be right. For debugging
I added the "echos" into the auth_loginform() -function of my
extended Auth-Object located in the local4.inc (I use the port to php4 of
phplib) :
_______________________________________
function auth_loginform() {
global $sess;
global $_PHPLIB;
global $_INC;
echo "die libdir: ".$_PHPLIB["libdir"]."<br>";
echo "die incdir: ".$_INC["incdir"]."<br>";
include($_PHPLIB["libdir"] . "loginform.ihtml");
}
________________________________________
So when I am accessing the loginarea I see the correct output :
die libdir: ../inc/php/
die incdir: ../inc/
All OK !
----- and now the crap :
I decided to protect a certain forum (wagora (I ported it also to php4)).
So I altered the display_header (init.inc) function like this :
_______________________________________________
function display_header ($title="", $include_header) {
if($bn == "private_forum"){
$_INC["incdir"]= "../inc/";
$_PHPLIB["libdir"] = $_INC["incdir"]."php/";
include($_INC["incdir"]."prepend.php4");
page_open(array(
"sess" => "P_Session",
"auth" => "P_Auth"));
}
.....
________________________________________________
But now I get the following lines in my Browser :
________________________________________________________________________
die libdir:
die incdir:
Warning: Failed opening 'loginform.ihtml' for inclusion
(include_path='.:/usr/local/lib/php') in
/homepages/36/d22978618/htdocs/inc/php/local4.inc on line 236
_________________________________________________________________________
INFO :
the path of my member_area: /login/login.php4
the path of the forum access : /wagora/index.php4
the path of my prepend.php4: /inc/prepend.php4
the path of my local4.inc: /inc/php/local4.inc
I only copied the include and page_open lines from the login.php4 so the
relative path to the files must be right !
HELP me once again .... I brain is cooking and I am feeling inocent
PS.: if you dont believe I show you the lines in my login.php4 :
_________________________________________
$_INC["incdir"]= "../inc/";
$_PHPLIB["libdir"] = $_INC["incdir"]."php/";
include($_INC["incdir"]."prepend.php4");
page_open(array(
"sess" => "P_Session",
"auth" => "P_Auth"));
_________________________________________
Mike
---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>
- Next message: Holger Blasum: "Re: [phplib] the lost $_PHPLIB["libdir"]-variable"
- Previous message: Jesse Swensen: "Re: AW: [phplib] the "Group by" Function Problem"
- Next in thread: Holger Blasum: "Re: [phplib] the lost $_PHPLIB["libdir"]-variable"
- Reply: Holger Blasum: "Re: [phplib] the lost $_PHPLIB["libdir"]-variable"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

