PDA

View Full Version : [fixed] Adding Private Calendar Event Doesn't show up in online.php


DarkReaper
Sat 13th Oct '01, 3:38pm
Just noticed this when doing a hack. In online.php:


case 'addprivateevent';
$userinfo[where] = "Adding Private Event to the <a href='calendar.php?s=$session[sessionhash]'>Calendar</a>";
break;


Should be:


case 'addprivateevent':
$userinfo[where] = "Adding Private Event to the <a href='calendar.php?s=$session[sessionhash]'>Calendar</a>";
break;

Chen
Sat 13th Oct '01, 4:34pm
Sorry, didn't notice the ; and : thing.

DarkReaper
Sat 13th Oct '01, 4:39pm
Er...what happened. There's a moved version of this that links to itself...

:confused:

Alien
Sun 14th Oct '01, 10:32pm
This also has the same bug:

case 'pollvote';
$userinfo[where] = 'Voting on a Poll';
break;

Should be:

case 'pollvote':
$userinfo[where] = 'Voting on a Poll';
break;

DarkReaper
Sun 14th Oct '01, 11:45pm
Might want to fix those shift keys guys ;)

Chen
Mon 15th Oct '01, 8:38am
Thanks, fixed. :)

Onkel_Tom
Sat 20th Oct '01, 11:23pm
search for: (line 399)
case 'member.php';

and replace that with:
case 'member.php':

search for: (line 418)
case 'editpost.php';

and replace that with:
case 'editpost.php':

what about the case instructions at line 359 and 360 ?
are they okay with:
case '/';
and:
case '';

or should they also read:
case '/':
and:
case '':

I'm a newbie, just buyed my vB yesterday :)

DarkReaper
Sat 20th Oct '01, 11:26pm
Come on guys! Fix fix fix those shift keys! ;) ;)

For the last 2, case '/' and case '', they're fine the way they are. Those are just to escape slashes and spaces, and not do anything with them.

Onkel_Tom
Sat 20th Oct '01, 11:53pm
thanks for your quick reply and the explanation ;)

I searched in ALL files from Version 2.0.3 for "case".
All other files are right !
The wrong shift keys are only in Online.php !


have fun ...
Tom

Freddie Bingham
Sun 21st Oct '01, 12:17am
All fixed..

2.0.3 served as a beta test for online.php as it was only finished right before 2.0.3 was released. I think it has worked out very well so far.