summaryrefslogtreecommitdiff
path: root/plugins/phpbb31/phpbb31.module
diff options
context:
space:
mode:
authorChristoph Burschka2012-11-02 23:19:12 +0100
committerChristoph Burschka2012-11-02 23:19:12 +0100
commitc92b1bd7538ed0eb18bdb3a1401fe4d0010bfdeb (patch)
tree4df80ba2396093c2781e20430f2232190f74976b /plugins/phpbb31/phpbb31.module
parentTypo in config.sample.php (diff)
downloadejabberd-auth-php-c92b1bd7538ed0eb18bdb3a1401fe4d0010bfdeb.tar.gz
Renaming phpbb versions properly.
Diffstat (limited to 'plugins/phpbb31/phpbb31.module')
-rw-r--r--plugins/phpbb31/phpbb31.module10
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/phpbb31/phpbb31.module b/plugins/phpbb31/phpbb31.module
new file mode 100644
index 0000000..22b4de6
--- /dev/null
+++ b/plugins/phpbb31/phpbb31.module
@@ -0,0 +1,10 @@
+<?php
+
+function phpbb4_init($config) {
+ $phpbb_root_path = $config['root_path'];
+ // Bootstrap the phpBB system.
+ require_once __DIR__ . '/phpbb4_bootstrap.php';
+ // Load the plugin.
+ require_once __DIR__ . '/JabberAuthPhpBB4.php';
+ return new JabberAuthPhpBB4($config['auth'], $config['db']);
+}