[Phplib-users] Patch to page.inc
Brought to you by:
nhruby,
richardarcher
|
From: Benjamin B. <b....@si...> - 2002-10-30 08:18:35
|
Hi!
I patched page.inc as follows to be able to use different auth-types
wihtout changing the session. I wonder if this is useful and I wonder
what you think about this patch:
*** page.inc.orig Mon Oct 28 16:34:14 2002
--- page.inc Mon Oct 28 16:35:22 2002
***************
*** 22,28 ****
if (isset($feature["auth"])) {
global $auth;
! if (!isset($auth)) {
$auth = new $feature["auth"];
}
$auth->start();
--- 22,28 ----
if (isset($feature["auth"])) {
global $auth;
! if (!isset($auth) || ($auth->classname != $feature["auth"])) {
$auth = new $feature["auth"];
}
$auth->start();
Regards,
Benne
--
Benjamin Boksa
b....@si...
side by site GmbH & Co. KG
Druckgestaltung & Webdesign
Barbarastr. 3-9 (Block 6)
D-50735 Koeln
Fon: +49 221 2790964
Fax: +49 221 2790965
http://www.sidebysite.de/
|