![]() |
![]() |
![]() |
||||
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. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
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? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Registered User
Industry Role:
Join Date: Mar 2002
Location: San Diego, CA
Posts: 935
|
Labret - use AuthMysqlDB instead.. faster, easier and much more flexible.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
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>.
__________________
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Confirmed User
Industry Role:
Join Date: Apr 2001
Posts: 1,738
|
![]() 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 ![]() ![]() Tim |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
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... |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Confirmed User
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 ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 | |
old school fart
Industry Role:
Join Date: May 2001
Location: Florida
Posts: 1,015
|
Quote:
I know they have email spammed me quite a few times...
__________________
The next generation of SEO |
|
![]() |
![]() ![]() ![]() ![]() ![]() |