:squareeyed: :squareeyed:
SaintDog thanks for all your help !
The errors I was getting were a result of having a space just priot to the <?php require('./authvb.php'); ?>
I removed the spave and bingo everything works. What a great script.
I am still not sure Do if I have to customize anything in this area for the groups ? It is my understanding that these were for a different board and you need to customize them for your own board. Can anyone give a little more detail ?
# Vbulletin GROUP ID's
# default setting = Admin & Jnr Admin
#
# 1 Unregistered / Not Logged In
# 2 Registered
# 3 Users Awaiting Email Confirmation
# 4 (COPPA) Users Awaiting Moderation
# 5 JNR Admin
# 6 Administrator
# 7 Moderators
# 8 Banned
# 9 Moderated
# 10 Gold Member
# 11 Platinum Member
// Formulate the query
if ($encryptedpw)
$chkpw = md5($PHP_AUTH_PW);
else
$chkpw = $PHP_AUTH_PW;
$sql = "SELECT * FROM user WHERE
username = '$PHP_AUTH_USER' AND
password = '$chkpw' AND
(usergroupid = '6' or usergroupid = '5') ";
SaintDog thanks for all your help !
|