PDA

View Full Version : Bug in forumpermissions.php



draisin
Mon 26th Aug '02, 12:11pm
the function displayforums is missing a
global $sessions
and so the links built in line ~ 120 wont work if cookies are switched off.

cheers,
draisin

draisin
Mon 26th Aug '02, 12:13pm
should read, of course:
global $session;

Steve Machol
Mon 26th Aug '02, 1:28pm
You must mean forumpermission.php. And there is no:

global $sessions

...line in that file. That must be from a hack you installed.

draisin
Tue 27th Aug '02, 7:33am
are you sure you checked this? again:

this line is MISSING in admin/forumpermisson.php:
global $session;
otherwise the links are not produced correctly.
and i have no hack installed.
and i know what i'm talking about.

cheers,
dietrich

Steve Machol
Tue 27th Aug '02, 2:39pm
This line is in forumdisplay.php:


global $DB_site,$bbuserinfo,$iforumcache,$ipermcache,$imo dcache,$session,$accesscache,$usergroupdef,$noperm s;

draisin
Wed 28th Aug '02, 7:09am
sorry, but you have not read my posting.

im talking about forumpermission.php,
not forumdisplay.php!

~ line 90.

ah, i give up. i changed it in my version anyway...

cheers,
dietrich

John
Wed 28th Aug '02, 7:27am
Dietrich,

Thanks for pointing that out.

John