###################################################################### # User authentication via Joomla using AuthJoomla2 # AuthJoomla v 1.1 // disable registration and sign-in from the wiki front page $wgGroupPermissions['*']['read'] = true; // MediaWiki 1.5+ Settings $wgGroupPermissions['*']['edit'] = false; // MediaWiki 1.5+ Settings $wgGroupPermissions['*']['createaccount'] = false; // MediaWiki 1.5+ Settings // YOU MUST CHANGE THIS to something unique to your site and it must // match this setting in mediawikilogin plugin $wgAuthJoomla_security_key = 'CHANGE THIS'; // is Joomla in a different database than Mediawiki? $wgAuthJoomla_UseExtDatabase = true; //NOTE: You only need the next four settings if you set $wgAuthJoomla_UseExtDatabase to true. $wgAuthJoomla_MySQL_Host = 'localhost'; // Joomla MySQL Host Name. $wgAuthJoomla_MySQL_Username = 'username'; // Joomla MySQL Username. $wgAuthJoomla_MySQL_Password = 'password'; // Joomla MySQL Password. $wgAuthJoomla_MySQL_Database = 'database'; // Joomla MySQL Database Name. $wgAuthJoomla_TablePrefix = 'jos_'; $wgAuthJoomla_UserTable = 'users'; // name of Joomla user table without prefix; normally 'users' //set these URLs to appropriate targets: $wgAuthJoomla_domain = 'http://www.domain.nl/'; //location Joomla index.php file $wgAuthJoomla_LogoutLink = base64_encode($wgScriptPath); //return location logout $wgAuthJoomla_LoginLink = base64_encode($wgScriptPath); //return location login $wgAuthJoomla_LoginURL = $wgAuthJoomla_domain .'index.php?option=com_user&view=login&return=' . $wgAuthJoomla_LoginLink; $wgAuthJoomla_LogoutURL = $wgAuthJoomla_domain . 'index.php?option=com_user&task=logout&return=' . $wgAuthJoomla_LogoutLink; require_once 'extensions/AuthJoomla2/AuthJoomla2.php'; SetupAuthJoomla();