Posted on: 03/25/02 09:51pm
By: Anonymous (Sinjin)
I have certain html files that can not be accessed by the public. I have them secured with .htaccess at the moment. Is there a way that I could tie the usernames of Geeklog to the htaccess file so that when they log into Geeklog they would be able to access those files. This would allow for much easier administration instead of keeping up with multiple username and passwd files.
auth_mysql
Posted on: 03/26/02 09:11am
By: Anonymous (baba)
Have you tried playing with the auth_mysql module for Apache? I haven't tried it myself, but I think you could get it to do what you want (by making it use GeekLog's users table).
.htaccess alternative
Posted on: 03/27/02 03:39am
By: knichel
I have the same scenario...I want a members only
section.
I added the following to the top of my php/html page
include_once('lib-common.php');
if ($_USER['uid'] > 1)
{
$email = $_USER['email'];
$uname = $_USER['username'];
do the stuff members are allowed to do
}
else
{
go away...noboby wants you herre!
}
--
Mike
.htaccess alternative
Posted on: 03/28/02 06:53am
By: Anonymous (Anonymous)
Which php page? Your header?
PHP actually has support for this
Posted on: 03/28/02 08:34am
By: Anonymous (Anonymous)
You'll find all you need to know about HTTP authentication with PHP <A HREF="http://www.php.net/manual/en/features.http-auth.php">in the PHP manual</A>; instead of using .htaccess or .htpasswd at all, it's possible to do it entirely within PHP.
Database Info
Posted on: 03/29/02 02:40pm
By: Anonymous (Sinjin)
How do I find the tables and field names that hold the username and password info for authentication. Also could I use something like the authentication built inot Geeklog to give permission to a page. I notice only the user block appears when I am logged in.
.htaccess tied to Geeklog
Posted on: 02/04/03 06:55pm
By: ironfeather
i wonder if you could tweak this script here:
http://membership.cgi-central.net/scripts/amember/free.php