Welcome to Geeklog, Anonymous Thursday, November 07 2024 @ 02:34 pm EST

Geeklog Forums

.htaccess tied to Geeklog


Sinjin

Anonymous
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.
 Quote

baba

Anonymous
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).
 Quote

Status: offline

knichel

Forum User
Newbie
Registered: 03/19/02
Posts: 2
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
--
Mike
 Quote

Anonymous

Anonymous
Which php page? Your header?
 Quote

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.
 Quote

Sinjin

Anonymous
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.
 Quote

Status: offline

ironfeather

Forum User
Junior
Registered: 01/27/03
Posts: 16
i wonder if you could tweak this script here: http://membership.cgi-central.net/scripts/amember/free.php
------
my geeklog discussion is at:

http://ironfeather.com/cgi-bin/bbs/ik...ct=SF;f=20
 Quote

All times are EST. The time is now 02:34 pm.

  • 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