Re: Question about user management...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hey TG,

I was thinking about doing it as "CompanyA" "CompanyB" etc... etc... All stored in a database. And they can all go to the same main website and be able to get at everything they need.

Thanks for looking! :)


On Mar 10, 2008, at 3:48 PM, TG wrote:


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@xxxxxxxxx>
To: "Jason Pruim" <japruim@xxxxxxxxxx>
Cc: "[php] PHP General List" <php-general@xxxxxxxxxxxxx>
Date: Mon, 10 Mar 2008 15:14:05 -0400
Subject: Re:  Question about user management...

On Mon, Mar 10, 2008 at 3:08 PM, Jason Pruim <japruim@xxxxxxxxxx> 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); } ?>


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



--

Jason Pruim
Raoset Inc.
Technology Manager
MQC Specialist
3251 132nd ave
Holland, MI, 49424-9337
www.raoset.com
japruim@xxxxxxxxxx




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux