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

Re: Funds page (again)



On Sat, Jun 19, 2004 at 11:13:15PM +0200, Omar Abo-Namous wrote:
> > That used to be me. What exactly did you need? Maybe I can still help.
> 
> i needed to verify that the user accessing the page is an admin, so that i can
> display delete, add and modify-functionality. in admin.php you use this
> if-clause:
> 
> if(isset($_SESSION[type]) && $_SESSION[type] == 'c')
> 
> can i rely on this?? Simply asking this will assure, that an admin is accessing
> the file?? If not, what will? That would be fine for starters.
> 

Yes. User type 'c' (core) is the equivalent of an admin.

Regards
-- 
-------------------------------------------------------
| Mohammed Elzubeir    | Visit us at:                 |
|                      |  http://www.arabeyes.org/    |
| Arabeyes Project     | Homepage:                    |
| Unix the 'right' way |  http://elzubeir.fakkir.net/ |
-------------------------------------------------------

Attachment: signature.asc
Description: Digital signature