Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 18 Mar 2008, 18:58
kontrabass kontrabass is offline
 
Join Date: Feb 2002
Need just a bit of php help

I'd like to modify my subscriptions.php file to restrict anyone but one userid to view stats. Can someone tell me how to modify the following:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

so that it not only checks "!can_administer" but also displays the "no_permission" error if anyone but userid X is trying access?

So in english it'd be "If user doesn't have admin user permission, OR their userid does not equal X, then give the "no permission error"

Thanks in advance!
Reply With Quote
  #2  
Old 18 Mar 2008, 19:14
Opserty Opserty is offline
 
Join Date: Apr 2007

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

1 being the UserID you want to restrict the page to.
Reply With Quote
  #3  
Old 18 Mar 2008, 19:49
kontrabass kontrabass is offline
 
Join Date: Feb 2002
Thanks much! Works perfectly
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 23:05.

Layout Options | Width: Wide Color: