[phplib] Perm class new function From: Ed Klavins (edvins.klavins <email protected>)
Date: 08/25/00

Seems like a beginner's question, but I'm stumped.

I've defined an additional function in derived class
from Perm:

class myperm extends Perm {
...
 function check_group($ggg) {
 global $auth;
 if (!strcasecmp($auth->auth["group"], $ggg)) {
               $this->group_invalid($auth->auth["group"], $ggg);
        exit();
        }

}

This is supposed to do some additional authentication
checking, that user belongs to specified group, etc.

Almost works, except that when I call it , it never
seems to see the parameter:

$perm->check_group("mygroup");

I.e. Within the check_group function, $ggg is always
empty ?? This seems like some basic setup is wrong,
but can't work out what it is...

Any ideas?
(php 3.0.13, phplib v7.2b)

Thanks, ed

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>