Posted on: 04/02/02 06:04pm
By: Anonymous (Sinjin)
I have been working with a way to tie together geeklog and .htaccess. I have had the thought of using the built-in Geeklog Security and I have gotten to the point where I have created a very simple phpblock with links to my pages that is only displayed to logged in users. My problem is any person could just type in the URL to the hidden pages and access them. I need a way for these pages to not be displayed unless they have been authenticated in Geeklog. I am not able to change any code of the secured pages so I believe it has to be done on a directory bases. The basic question is how can I secure a non geeklog page and only access it when I have been logged into Geeklog. I am sure many people would find this usefull on their own website.
Thanks for all the help.
Matthew
Well...
Posted on: 04/04/02 01:13pm
By: Tony
Assuming your non-GL page is PHP, you can include lib-common.php and then add a check to verify that $_USER['uid'] > 1...if it is then they are not anonymous and are logged in.
-----
The reason people blame things on previous generations is that there's only one other choice.
Well...
Posted on: 04/04/02 05:08pm
By: Anonymous (Sinjin)
It is not a PHP page unfortunatly.
-----
"This is my router this is my switch. One is for routing but I don't know which."