Extension:Discuz AutoAuthenticate

Version Infomation

 * Extension: Disucz_AutoAuthenticate
 * Forum: Discuz (http://www.discuz.net/)
 * Version: 1.0
 * Released: 12/12/2008
 * UCenter version: 1.0
 * Discuz Version: 6.1
 * MW Version: 1.13.0

What this is
This causes users who are logged in to Discuz User center to be logged in to the wiki. When the session expires or they logout via Discuz, they will no longer be logged in to the wiki.

This is ideal for my situation since I desire tight user integration between Discuz and MediaWiki, and I require users to be logged in to edit pages. The wiki is new sub-application for my site, so there is no wiki user, and the admin username is the same.

Requirements
- Integrate with Discuz 6.1 and UCenter1.0. - Working MediaWiki (I'm using 1.13.0 as of writing this)

Installation
1. Save Extension:Discuz AutoAuthenticate.

2. Put it into the MediaWiki "./extensions" dir

3. In LocalSettings.php add:

4. Modify config.inc.php Modify the file according your web site's configuration. You can find an example:
 * http://www.discuz.net/thread-879237-1-1.html

5. Setting up the extention as a UCenter application,
 * http://www.discuz.net/thread-909678-1-1.html

Bugs

 * Probably lots more. I am a newbie at both PHP and MW, so it's unlikely that I will have thought of all the contingencies.

Author contact
You can contact me at lihongzhai at gmail dot com. If you make this better, or know of a better approach, please do me a favor and let me know!