Re: Question about user management...
| From: | TG | Date: | Mon, 10 Mar 2008 19:48:01 +0000 |
| Subject: | Re: Question about user management... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-271222@lists.php.net to get a copy of this message | ||
Sounds like a pretty typical setup.
Depending on your layout, you may be able to use a templating type system for
the pages as well. It's hard to tell if that's useful without more
information.
/tmpl/<companyid>/index.php
Not sure if that's what you meant by using the company name or if you were
going to do something like "company30" "company50" and such.
Lots of different ways to do what you're talking about, but sounds like
you're in the right path.
-TG
----- Original Message -----
From: "Daniel Brown" <parasane@gmail.com>
To: "Jason Pruim" <japruim@raoset.com>
Cc: "[php] PHP General List" <php-general@lists.php.net>
Date: Mon, 10 Mar 2008 15:14:05 -0400
Subject: Re: [PHP] Question about user management...
> On Mon, Mar 10, 2008 at 3:08 PM, Jason Pruim <japruim@raoset.com> wrote:
> > Hi Everyone, Happy Monday to all of you!
> >
> > I am trying to think through a user management issue for a application
> > I am working on. What I want to do, is be able to provide a multi user
> > environment (All accessing the same page, but depending on company
> > name they get different data) and be able to give certain people the
> > ability to add/remove users.
> >
> > What I was thinking about doing was a combination of the company name
> > (Which I set right now) and then a access level such as "50" for the
> > "Owner" of the program, "40" for the "Managers" and
> > "30" for the
> > "user" of the program. also leaving me room to add other levels if
> > required..
>
> I generally do the same basic thing for permission levels, but a
> reverse of what you're attempting to do.
>
> The superuser (AKA root, administrator, God, whatever) has GID 0,
> just like on a *NIX system. This is because it's the highest level
> you can reach, and 0 is the lowest real number you can use. Thus, you
> can add a virtually-infinite number of lesser users, as opposed to
> being limited to 50, as in your case.
>
> --
> </Dan>
>
> Daniel P. Brown
> Senior Unix Geek
> <? while(1) { $me = $mind--; sleep(86400); } ?>