\nOrder allow,deny\nDeny from all\nSatisfy All\n\nAuthType Basic\nAuthName \"My Content\"\nAuthUserFile $__LCKDOWNPASSWDFILE__\nrequire valid-user" . "\n\n";
$handle=@fopen($filename,"w");
if ($handle!=false) {
$myConvert=array_flip(get_html_translation_table(HTML_ENTITIES));
$myUnEscapedContent= str_replace(array_keys($myConvert),array_values($myConvert),$someContent);
fwrite($handle,$myUnEscapedContent);
fclose($handle);
} else {
if ($doExit) {
$lockdownPasswdPath=getcwd() . "/files/_passwords";
print "
Unable to Configure This Account For Lockdown!
I was unable to complete the configuration of this account, it is not locked down.
Please try configuring your account using these alternate instructions:
- Go back to Rapidweaver and open the Lockdown page.
- From this Lockdown page, select the passwords tab ->setup->Alternate Acct Configuration and put the following string in the 'Passwords File' field (but do not include the quotes)
\"
$lockdownPasswdPath\"
-
a '.htaccess' box should appear, FTP to the location of the Lockdown page and drag & drop the '.htaccess' box to where this lockdown page is.
";
exit(1);
}
}
if($doExit) {
echo '
Page should be locked down. Refresh to Verify
';
echo "
Browsers tend to remember username/passwords so you may need to completely exit the browswer and come back in to get the prompt
";
echo "
If you got this far and it still does not work then your server may not be configured to allow passwords, you can ask your web host to \"Allow Overrides\" to fix this problem
";
exit(1);
}
?>