Version: , by odell (Guest)
Developer Last Online: Jan 1970
Version: Unknown
Rating:
Released: 05-03-2001
Last Update: Never
Installs: 0
No support by the author.
It would be great if there were some hack to integrate vbulletin's user database with htaccess...
that would do the following things:[list=1][*]Vbulletin would seamlessly control htaccess as well as vbulletin user databases (for example.. u change password in vbulletin it also changes htaccess pass, or when u reg new user in vbulletin it would also create necessary htaccess user, etc..)[*]When users login with htaccess vbb automatically logs them in using the information that the user inputed for htaccess login[/list=1]
I just came across this script written for phpNuke that checks to see if a user logs in with htaccess and if they login with htaccess it will automatically log them in to phpNuke. I thought that much of this could be reused to work with vbulletin. Its only a portion of what would be required for a full htaccess integration hack but its a start anyway.
Im am just starting to learn php and dont have the necessary time or knowledge to create this hack but Im sure alot of ppl would benefit from it, and would all be very appreciateive if someone would create one.
Here is the source:
PHP Code:
<?PHP
/************************************************************************/
/* Automatic recognition and connection of a user who connects to a */
/* PHPNuke site with a htaccess file. */
/* ==================================================================== */
/* */
/* Copyright (c) 2001 by Thomas Rudant (thomas.rudant@grunk.net) */
/* [url]http://www.grunk.net[/url] */
/* [url]http://www.securite-internet.org[/url] */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/
If you need to protect directory with the password and only allow registered users to access it and to compare their ID/password with the info from Vbulletin database this can be done with mod_auth_mysql for apache.
It just uses mySQL database for authentication, you can set it to use forum database and user table.
I have this module installed on one of me servers and it also works together with mod_cookies, so if you have your ID/Pass saved in cookies, it does not even prompt you for password.
What I'd like to have is a separate control page within VB control panel, that would let you administer your HTACCESS accounts. Without having to telnet or edit those rediculious .htaccess/.htpassword/.htgroup files.
(Not sure if this is possible though..)
go here and they have a cgi script called members admin. It will let you add, edit and remove members through cgi. So this modifies the ht access and other required files as it goes along. it's very very good.