Commit 602895f9 authored by Jonathan Harker's avatar Jonathan Harker

Fix the SQL connection, use PDO and parameters.

parent b1d401af
This diff is collapsed.
......@@ -8,12 +8,13 @@ Installation
To install this plugin, follow these steps:
1. Copy MaharaAuthPlugin.php into the includes directory in your mediawiki instance.
1. Copy this extension into the extensions directory
2. Add the following to your LocalSettings.php file:
```php
$wgAutoloadLocalClasses['MaharaAuthPlugin'] = 'includes/MaharaAuthPlugin.php';
$wgAuth = new MaharaAuthPlugin('maharadbname', 'dbhost', 'dbtype', 'dbuser',
'dbpass', 'prefix', 'passwordsaltmain');
$wgAutoloadLocalClasses['MaharaAuthPlugin'] = 'extensions/MaharaAuth/MaharaAuthPlugin.php';
$wgAuth = new MaharaAuthPlugin('pdo_dsn', 'dbuser', 'dbpass', 'prefix', 'passwordsaltmain');
```
3. Replacing maharadbname, dbhost, dbtype, dbuser, dbpass, prefix, and
passwordsaltmain with the respective values in your setup.
3. Replacing pdo_dsn, dbuser, dbpass, prefix, and passwordsaltmain with the respective values in
your setup.
For information about PDO connection strings (DSN) see http://php.net/manual/en/book.pdo.php
MaharaAuthPlugin.php var/lib/mediawiki/extensions/MaharaAuth
MaharaAuthPlugin.php var/www/mediawiki/extensions/MaharaAuth
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment