11
natxocc
Re: How to check if user is admin
  • 2005/2/1 22:17

  • natxocc

  • Just popping in

  • Posts: 19

  • Since: 2005/1/23


I found it!


if ($xoopsUser)
{
if ($xoopsUser->isAdmin(-1))
{
...



12
natxocc
How to check if user is admin
  • 2005/2/1 21:44

  • natxocc

  • Just popping in

  • Posts: 19

  • Since: 2005/1/23


I think the the correct code is:

if ($xoopsUserIsAdmin)
{
...



but it doesn't work

I wanted to use it in php file not in template.

Is there other option to do this?



13
natxocc
Module Dev forge not available!
  • 2005/1/23 23:08

  • natxocc

  • Just popping in

  • Posts: 19

  • Since: 2005/1/23


For a week I can't see thehttp://dev.xoops.org page. I only see a blank page. I tried with another computer with the same results.

Is there any problem? or I have a problem?

Thanks.




TopTop
« 1 (2)



Login

Who's Online

146 user(s) are online (96 user(s) are browsing Support Forums)


Members: 0


Guests: 146


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits