I run a scuba club website, and I’m trying to redesign it to use WP, using the Viewlevels plugin to seperate paid-up club members from the general public.
I want to be able to publish members-only documents (e.g. meeting minutes, club accounts, etc.) into an .htaccess-protected directory, but I don’t want to have to maintain the .htpasswd file manually.
From what I’ve read, it seems that the user login and passwords in WP could be used to create a .htpasswd file (since they both require MD5 encryption) – could someone with a bit more knowledge confirm this?
Assuming I’m correct, it would be nice if there were an API hook to intercept the $usertable record whenever it’s updated – that way, I could write a plugin which would intercept the record, and use it to update the .htpasswd file.
- The topic ‘Automatic creation/update of .htpasswd file’ is closed to new replies.