From: Jeff D. <da...@da...> - 2002-01-14 20:10:01
|
On 13 Jan 2002 13:28:56 -0800 "Adam Shand" <ad...@pe...> wrote: > > Forms based login. > > i think this would be very nice to have. when this happens does that > mean that we will be storing metadata about usernames? eg. could the > config file now contain an list of usernames that have admin privledges? Well, if we're talking release in weeks, I don't expect really much new functionality in this area at all. It will just work more smoothly (on all platforms). (On the other hand, if all you want is multiple admin users (with hardcoded passwords, like the current admin user) that's an easy hack in any of the current PhpWiki version --- just use a hash to store 'admin-user' -> 'password' associations, and hack the password checking code accordingly.) > my simple approach to the problem was to write two plugins. UploadFile > which allows a file to be uploaded to PageName/filename via a simple > form, and another plugin called ShowAttachments which shows all the > files attached to the current page (by simply doing a listing of the > directory which matches the current page name). > > is it worth me continuing to work on this? the idea discussed on the > wiki seemed much more complete but also like it was probably a ways off > in the future. The user interface for file uploads, and the actual data store for the uploads are two different issues. I think it would be great if you continue your work. Just create a class with a good clean API which is reponsible for the actual storage/access of the uploaded files --- then when we want to implement a better storage system, we just have to drop in the replacement. I sort of started to doodle out a FileCache class to do this. It's far from complete (don't take it too seriously), but I'll attache it to this message so you can see what I'm thinking... > * allow html on locked pages (useful for the admin to embed forms etc) This is easy. But we need to fix the raw-html syntax (leading '|') since it conflicts with the current table syntax. Maybe <rawhtml></rawhtml> or somthing? It could also maybe be done via plugin, which would keep the code completely out of the rest of stock PhpWiki. Something like: <?plugin RawHTML -- <table><tr>...</tr></table> ?> |