Quote:
Originally Posted by blkthndr
These are the only lines I changed and it works for me with 3.0.0 Gold:
// Formulate the query
// Get rid of these 4 lines or comment them out:
# if ($encryptedpw)
# $chkpw = md5($PHP_AUTH_PW);
# else
# $chkpw = $PHP_AUTH_PW;
// Keep this line
$sql = "SELECT * FROM user WHERE
// Keep this line
username = '$PHP_AUTH_USER' AND
// get rid of this line
# password = '$chkpw' AND
// add this line
password = MD5(CONCAT(MD5('$PHP_AUTH_PW'), salt)) AND usergroupid = '6'";
|
Works 100% except.. i try and do "AND usergroupid = '6' or usergroupid = '5'"
and it seizes to work... any idea/