If you figure this out, I'd be interested in how... I've been pondering a tool to help store passwords for online services and other confidential info in a wiki documenting procedures for a department. The idea is to have these encryped using Blowfish or similar, with a single master key that unlocks them. This avoids the security problem of storing plaintext passwords within the wiki/mysql database. But I haven't figured out a user-friendly way to implement this for editors.
Ideal would be that the editor could do something like what you describe below {{blowfishencrypt|thepassword}}, and then on save MediaWiki would encrypt the tagged password and insert the necessary code to link to the decryption tool.
It sounds like this solution might be a good approach, but I'm also curious if anyone else has ideas on ways to handle passwords within documentation...
-David Dwiggins
2006/4/1, Rick DeNatale rick.denatale@gmail.com:
On 3/31/06, Michael Krefft mk@michaelkrefft.com wrote:
Hi!
I would like to create a Mediawiki tag that allows me to run PHP code within an article. I've seen an extension that allows execution of arbitrary code, but that seems too dangerous to me. It should be from a specific file only, e.g. "/somefolder/somestuff.php" which gets called via {{somestuff|foo}} , being "foo" a value which is used by a function in somestuff.php
I'm sure this would allow many interesting modifications, customizations and enhancements for MediaWiki.
Can this be done with an extension? How?
If you are trying to do this when the article is saved then yes. For example the spamblacklist extension runs php code when an attempt is made to save an article. That might be a good place to look for an example.
-- Rick DeNatale
Visit the Project Mercury Wiki Site http://www.mercuryspacecraft.com/ _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l