Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 06-04-2002, 05:32 PM   #1
[Labret]
Registered User
 
Industry Role:
Join Date: May 2001
Location: Са́нкт-Петербу́рг
Posts: 10,945
Multiple .htpasswd files?

I have a members section than needs to share two seperate .htpasswd files.

I have tried specifying two seperate AuthUserFile in the .htaccess but not go. Only reads the first one listed.

Is it possible to have the .htaccess check two seperate .htpasswd files?

Last edited by [Labret]; 06-04-2002 at 05:51 PM..
[Labret] is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-04-2002, 05:36 PM   #2
FreeOnes
Confirmed User
 
FreeOnes's Avatar
 
Join Date: Jul 2001
Location: The Netherlands
Posts: 3,400
Yes it is possible and not hard to create
I even could do it myself
__________________

The new FreeOnes! - AdultFilmStarContent - BabeGalleries and much more! - 1Strike Movies and much more! All powered by Xpressa
FreeOnes is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-04-2002, 06:07 PM   #3
[Labret]
Registered User
 
Industry Role:
Join Date: May 2001
Location: Са́нкт-Петербу́рг
Posts: 10,945
Yeah, thanks.

Anywho...

found a solution.

Throw this on a cron. Problem solved.

http://realtimescripts.com/freescripts/merge/merge.pl
[Labret] is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-05-2002, 07:56 AM   #4
Big E
Registered User
 
Industry Role:
Join Date: Mar 2002
Location: San Diego, CA
Posts: 935
Labret - use AuthMysqlDB instead.. faster, easier and much more flexible.
Big E is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-05-2002, 09:12 AM   #5
salsbury
Confirmed User
 
Join Date: Feb 2002
Location: Seattle
Posts: 1,070
careful with the cron solution, if it's the one i've seen before, it's wiped out many a .htpasswd file.

what a lot of programs fail to do is test to see if what they think they wrote out to a file actually made it there. this is unbelievably common. say for example your drive is somehow full (hey, shit happens). your script opens up the merged .htpasswd file and truncates it to 0 bytes, as is normal. then it starts trying to write to it. it doesn't check if the writes succeed. it doesn't matter though, since the file is already truncated, the data is lost. i've seen this kind of code in ccbill's scripts and the pwmerge scripts out there, amongst others.

what scripts need to do is write out to a temporary file, keeping track of how many bytes it thinks its writing out. then, compare the size of the temporary file to the number of bytes. if it's right, rename the temporary file to the real file (ie mv .htpasswd.tmp .htpasswd).

if you need help with this hit me up via <a href="mailto:[email protected]">email</a>.
__________________

Last edited by salsbury; 06-05-2002 at 09:13 AM..
salsbury is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-05-2002, 05:43 PM   #6
TFCash
Confirmed User
 
Industry Role:
Join Date: Apr 2001
Posts: 1,738
:tongue

Labret -

Why don't you just have both billing companies use the same password file ?? All of the billing companies that we have setup for our clients have a check to see if the username is already in the password file, so you won't have to worry about them having the same usename in both password files that way just my


Tim
TFCash is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-05-2002, 08:05 PM   #7
Kimmykim
bitchslapping zebras!!!!!
 
Industry Role:
Join Date: Jun 2001
Location: In a shack by the beach
Posts: 16,015
Hmmm your billing companies should be able to help you out if that's where the issue is coming from.

If we happen to be one of them, well, you know who to call...
Kimmykim is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-05-2002, 08:31 PM   #8
Brad Mitchell
Confirmed User
 
Brad Mitchell's Avatar
 
Industry Role:
Join Date: Nov 2001
Location: Southfield, MI
Posts: 9,812
Hey Labret read my other thread, how timely. The company selling scripts that I was asking about has a cool looking product that appears to do that.

http://www.paysitepowertools.com/

Anyone know if these guys are legit? There's no real contact info or names anywhere on the site.

Brad
__________________
President at MojoHost | brad at mojohost dot com | Skype MojoHostBrad
71 industry awards for hosting and professional excellence since 1999
Brad Mitchell is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-05-2002, 08:41 PM   #9
nuclei
old school fart
 
Industry Role:
Join Date: May 2001
Location: Florida
Posts: 1,015
Quote:
Originally posted by SinEmpire
Hey Labret read my other thread, how timely. The company selling scripts that I was asking about has a cool looking product that appears to do that.

http://www.paysitepowertools.com/

Anyone know if these guys are legit? There's no real contact info or names anywhere on the site.

Brad

I know they have email spammed me quite a few times...
__________________
The next generation of SEO
nuclei is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.