Welcome to Geeklog, Anonymous Saturday, November 30 2024 @ 05:40 am EST

Geeklog Forums

setting page access for restered users only


mdubious

Anonymous
Hi there,

I have an uploads page that I'd like to restrict access to only logged-in users. Can anyone tell me how?

I'm pretty sure it will be in the line of code containing:
if (!SEC_inGroup(' ??? '))

Thanks,
-michael
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
[code]if (SEC_inGroup ('Logged-in Users')) or if (isset ($_USER['uid']) && ($_USER['uid') > 1)) [/code]
bye, Dirk
 Quote

mdubious

Anonymous
Thanks Dirk!!
 Quote

All times are EST. The time is now 05:40 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content