![]() |
Ok I am trying this hack on my site but I seem to be getting a Sql error. The password logon comes up on the screen but when you hit the ok button after putting your logins in I get this Sql error message.
Warning: mysql_connect(): Unknown MySQL Server Host 'u' (1) in /home/xxxxxx/public_html/vwar/includes/classes/class_db.php on line 95 -> Database Error: Link-ID == false, connect failed -> MySQL Error: -> MySQL Error Number: 0 -> Date: 25.05.2004 @ 20:56 -> Script: /vwar/war.php -> Referer: Any help would be appreciated. Are we supposed to run any Sql querries installing this? if (isset( $PHP_AUTH_USER ) && isset($PHP_AUTH_PW)) { mysql_connect( $checkservername, $dbcheckusername, $dbcheckpassword ) or die ( 'Unable to connect to server.' ); mysql_select_db( $dbcheckbase ) or die ( 'Unable to select database.' ); |
Quote:
|
My db is set to "localhost"
I have no idea why this happens. I must be doing something wrong. I put my db settings in the authvb.php and put the require('./authvb.php'); in the page I want to secure but whenever I try and access that page I keep getting the same MySql error. |
anyone have any ideas... I would like to get this to work on my site. ANy help would be appreciated. :)
|
Quote:
|
Installed it, but I can't even access the page I protected. I've set to it allow 2 usergroups to enter, admins being one of them.
When i try to access the page, I get the username/password popup, but it doesn't reconise me. |
what advantage does this hack have over an .htaccess password?
|
Make sure on the authtest.php you change the authvb3 to authvb.php just in case you guys didnt change that. Thats the only thing I saw wrong with the hack :D Thanks for the hack!
|
I can't believe how easy this hack looks! I just installed it and it looks fantastic. I did add a few extra usergroups (for my purposes), so it would be like this:
Code:
usergroupid = '2' or usergroupid = '5' or usergroupid = '6' or usergroupid = '7' *clicks install |
If you have a newer version of PHP which disables global var tracking (a good thing) then replace $PHP_AUTH_USER with $_SERVER['PHP_AUTH_USER'] and $PHP_AUTH_PW with $_SERVER['PHP_AUTH_PW'] and you should be good to go.
|
All times are GMT. The time now is 09:22 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|