Integration of phpNuke and MediaWiki (Authentication) ==================================================== March 2006, Timotheus@Pokorra.de The goal is, that users are only registered on phpNuke, and can use the same username on MediaWiki, without logging in twice. Acknowledgments: This work is based on: * http://meta.wikimedia.org/wiki/User:Otheus/Auto_Login_via_REMOTE_USER/code (for Auth_phpnuke.php) * http://www.extrosoft.com/Modules/Authentication/PHP-Nuke_Authentication/ (for authphpnuke.php) Please feel free to use this solution, and improve it! Let me know what you think about it! Locations of files: * in the phpNuke installation, create a directory modules/MediaWiki; the index.php goes there * in the MediaWiki installation, put the 2 files Auth_phpnuke.php and authphpnuke.php into the extensions directory Modifications: * MediaWiki, LocalSettings.php: require_once('extensions/Auth_phpnuke.php'); $wgAuth = new Auth_phpnuke(); #$privilegedUsers = array( "user1", "user2"); # if you activate this line, only those phpNuke users can login * MediaWiki, extensions/authphpnuke.php modify the line to reflect your installation of phpNuke $nuke_opts['path'] = '/home/user/web/nuke/html'; * MediaWiki, extensions/Auth_phpnuke.php modify the line to reflect your installations of phpNuke and MediaWiki $phpNukeLogin = 'http://www.somephpnukewebsite.com/modules.php?name=Your_Account'; $mediaWikiLogin = 'http://www.thewikiwebsite.net/index.php'; * phpNuke/modules/MediaWiki/index.php: modify the path to your wiki