Gossamer Forum
Home : Products : DBMan : Installation :

if ($per_KatanaMan) - is it possible ?

Quote Reply
if ($per_KatanaMan) - is it possible ?
We use stuff like this all the time
if ($per_mod)

Is there a way to use this technique for a specific user? e.g.

if ($per_KatanaMan)

Quote Reply
Re: if ($per_KatanaMan) - is it possible ? In reply to
Not exactly. The $per_admin, $per_mod things are set up in the password file. To use a "$per" variable, you'd have to do a lot of work changing auth.pl and db.cgi. However, there is a really easy way to do what you want to do.

If you want only a specific user to be able to access a function, use, for example,

if ($db_userid eq "KatanaMan") {



------------------
JPD
Quote Reply
Re: if ($per_KatanaMan) - is it possible ? In reply to
Man that worked great ! Thanks.