Ok, i scrunged up this code to produce an htaccess password login screen, but am having trouble coding it into coppermine, any ideas?
<?php
// --------- DATABASE INFORMATION ---------
$USER = "user";
$PASS = "pass";
function error ($error_message) {
echo $error_message."The information you have entered does not match the information in our database please try again.";
exit;
}
if ( (!isset($PHP_AUTH_USER)) || ! (($PHP_AUTH_USER == $USER) && ( $PHP_AUTH_PW == "$PASS" )) ) {
header("WWW-Authenticate: Basic entrer=\"Form2txt admin\"");
header("HTTP/1.0 401 Unauthorized");
error("");
}
?>
I would also like to use a htaccess protection, synchronized with the coppermine users database. So if you enter the user information in de the htaccess password box, you should be logged in in coppermine. Is this possible?
There's a reason why nobody answered tb's thread in the first place. After all, things are not that easy, so for now it's just wishfull thinking.
GauGau