Welcome to Geeklog Thursday, May 23 2013 @ 04:15 AM EDT
|
||||||||
![]() |
Forum Index > Support > General Geeklog Support |
New Topic
|
Post Reply
|
Redirecting Anonymous Users |
|||
| squatty |
|
||||||
![]() ![]() ![]() ![]() ![]() Full Member ![]() Status: offline ![]() Registered: 01/21/02 Posts: 269 |
What's the best way to determine if a user is anonymous vs. logged in?
In a world without walls and fences, who needs Windows and Gates? |
||||||
|
|||||||
| Tony |
|
||||||
![]() ![]() ![]() ![]() ![]() Admin ![]() Status: offline ![]() Registered: 12/17/01 Posts: 405 |
Add this to the top of your PHP file you want to protect after your include of lib-common.php:
if (!($_USER['uid'] > 1)) { ----- The reason people blame things on previous generations is that there's only one other choice. |
||||||
|
|||||||
| squatty |
|
||||||
![]() ![]() ![]() ![]() ![]() Full Member ![]() Status: offline ![]() Registered: 01/21/02 Posts: 269 |
Thanks! Sometimes it's the simplest things that make Geeklog so great!
In a world without walls and fences, who needs Windows and Gates? |
||||||
|
|||||||
| Content generated in: 0.38 seconds |
|
|
|