vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   htaccess calls vbb database for username/pass's (https://vborg.vbsupport.ru/showthread.php?t=28923)

thewitt 11-13-2001 09:08 PM

APXS is the Apache Extension Tool and makes Apache DSO modules work. You get it from the Apache website - with Apache...

-t

dirgotronix 11-13-2001 09:16 PM

argh...

nevermind, I'll live without.

/me bangs head on table

Vinney 05-19-2002 01:27 PM

Quote:

Originally posted by Ruth
Module: mod_auth_mysql
OS: Unix, Linux , WinNT.

Example:


AuthType Basic
AuthName "MySQL Member Page"

Auth_MYSQLhost www.vbulletin.com
Auth_MYSQLusername root
Auth_MYSQLpassword *****
Auth_MYSQLdatabase forum
Auth_MYSQLpwd_table user
Auth_MYSQLuid_field username
Auth_MYSQLpwd_field password
Auth_MYSQL_EncryptedPasswords off

<LIMIT GET POST>
require valid-user
</LIMIT>


for more information about this module contact your webhost.

How do you restrict this to specific user groups.?? My forum is a club website . .... there is registerd forum users ( Non PGAC Members, userid = 2) and there is registerd forum users with Private access who have paid ( PGAC Members, userid = 8)


I want to be able to use the forum database but only allow the PGAC members to access the areas i want via this htaccess thing.

NTLDR 05-19-2002 06:25 PM

Quote:

Originally posted by Vinney


How do you restrict this to specific user groups.?? My forum is a club website . .... there is registerd forum users ( Non PGAC Members, userid = 2) and there is registerd forum users with Private access who have paid ( PGAC Members, userid = 8)

I want to be able to use the forum database but only allow the PGAC members to access the areas i want via this htaccess thing.

This hack cannot do that, all the files are in the same directory so an individual forum cannot be protected by .htaccess you need to use Forum Permissions to set which groups can access a forum and which can't.

Vinney 05-19-2002 06:30 PM

yeah you can .... i found out for my self ...

this is wot i ment.

<DIRECTORY /home/testdir>
AuthType Basic
AuthUserfile /dev/null
AuthName "Member Access Only"
AuthType Basic
AuthGroupFile /dev/null
AuthMySQLHost localhost
AuthMySQLCryptedPasswords Off
AuthMySQLUser <user>
AuthMySQLPassword <pw>
AuthMySQLDB <forums dbase name>
AuthMySQLUserTable user
AuthMySQLNameField username
AuthMySQLPasswordField password
AuthMySQLGroupField usergroupid
<Limit GET POST>
require group 6 7
</limit>
</DIRECTORY>

NTLDR 05-19-2002 07:07 PM

That won't protect an individual forum though, unless you two boards installed in different directories.

Vinney 05-19-2002 10:11 PM

There is only one forum !!! I want to be able to use the forum presmissions to grant access to other areas of the clubs website !! for example ... the chat room ....

NTLDR 05-20-2002 02:39 PM

If they are PHP files make sure the include golbal.php and have like following after it:

PHP Code:

if ($bbuserinfo['usergroupid'] == id){
elseif (
$bbuserinfo['usergroupid']){
    
show_nopermission();


This may not be correct, I'll test it when I get home, I think it should work.

esemay 07-25-2002 03:26 AM

Is there a way to get this to work on Win 2000 running IIS 5?

Shawn

Mr_P 09-27-2002 10:49 PM

er...in a word

"No"

Htaccess is an Apache thing.


All times are GMT. The time now is 06:13 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01113 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete