Unable to Configure This Account For Lockdown!"; print "Your path of"; print "
".$__LCKDOWNPASSWDFILE__."
has a space in it and will not work properly. "; print "Please change your folder names and/or export name to remove the space and republish."; exit(1); } $someContent="\nOrder allow,deny\nDeny from all\nSatisfy All\n\nAuthType Basic\nAuthName \"Diskrete Mathematik Wintersemester 2012/2013\"\nAuthUserFile $__LCKDOWNPASSWDFILE__\nrequire valid-user" . chr(13) . "" .chr(13) ; // chr(13) is a carriage return -- Don't use \n as it breaks in Japanese $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:
  1. Go back to Rapidweaver and open the Lockdown page.
  2. 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. ""
  1. 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 browser 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); } ?>