summaryrefslogtreecommitdiff
path: root/plugins/phpbb3/phpbb3.module
diff options
context:
space:
mode:
authorChristoph Burschka2012-10-30 15:40:38 +0100
committerChristoph Burschka2012-10-30 15:40:38 +0100
commitb04c17301ec17397f858fb8cca7cb0043c16d4d5 (patch)
tree720e0d076e035f00e300e426b9323f05b77f9e36 /plugins/phpbb3/phpbb3.module
parentRefactor to a general, flexible and extensible architecture. (diff)
downloadejabberd-auth-php-b04c17301ec17397f858fb8cca7cb0043c16d4d5.tar.gz
Add phpbb4 plugin (for trunk of phpBB)
Diffstat (limited to 'plugins/phpbb3/phpbb3.module')
-rw-r--r--plugins/phpbb3/phpbb3.module10
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/phpbb3/phpbb3.module b/plugins/phpbb3/phpbb3.module
new file mode 100644
index 0000000..4c58762
--- /dev/null
+++ b/plugins/phpbb3/phpbb3.module
@@ -0,0 +1,10 @@
+<?php
+
+function phpbb3_init($config) {
+ $phpbb_root_path = $config['root_path'];
+ // Bootstrap the phpBB system.
+ require_once __DIR__ . '/phpbb3_bootstrap.php';
+ // Load the plugin.
+ require_once __DIR__ . '/JabberAuthPhpBB3.php';
+ return new JabberAuthPhpBB3($config['auth'], $config['db']);
+}