Re: [Phplib-users] parse error in auth.inc
Brought to you by:
nhruby,
richardarcher
|
From: Marco M. <new...@dk...> - 2002-08-12 23:32:12
|
Hi Donncha,
sorry for the delay but my mail provider won't deliver my emails for a
while. :-(
Your hack worked - no errors where produced. But the authentication
won't work properly. I log in as kris and test with admin privileges and
the page sais:
To access this page, the following permissions are required: admin.
I won't let you access this page, because you have these permissions: admin.
Huh?
I can't belive there is no other user with PHP 3.0.18, latest PHPLIB CVS
release who uses the basic funtionalities. Hey, where are you and tell
me the trick. ;-)
Cheers
Marco
Donncha O Caoimh schrieb:
>What version of PHP are you using?
>Try the following..
>
>## back compatibility: if database_class is set, create db object
>if(isset($this->database_class)) {
> $t = $this->database_class;
> $this->db = new $t;
>}
>
>I know there was a problem with PHP3 using the original format.
>Phplib 6.1 had this workaround.. It's still running on one of our servers!
>Here's the original code:
>
>## Set up the database connection
>$class = $this->database_class; ## PHP - I hate it!
>$this->db = new $class;
>
>Donncha.
>
>
>
>On Thursday 01 August 2002 00:11, Marco wrote:
>
>
>>Hi Peter,
>>
>>I looked in my local.inc. I've found some different extensions of the
>>Auth class (to test some different kinds of logins). But all of them
>>have a $database_call = "DB_Example"; in it. I think this should be ok.
>>
>>Marco
>>
>>Peter Kursawe wrote:
>>
>>
>>>Hi Marco,
>>>
>>>
>>>
>
>
>
|