summaryrefslogtreecommitdiff
path: root/plugins/phpbb3
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/phpbb3')
-rw-r--r--plugins/phpbb3/JabberAuthPhpBB3.php (renamed from plugins/phpbb3/JabberAuthPhpBB.php)0
-rw-r--r--plugins/phpbb3/phpbb3.module10
-rw-r--r--plugins/phpbb3/phpbb3_bootstrap.php (renamed from plugins/phpbb3/phpbb_bootstrap.php)0
3 files changed, 10 insertions, 0 deletions
diff --git a/plugins/phpbb3/JabberAuthPhpBB.php b/plugins/phpbb3/JabberAuthPhpBB3.php
index e60cbae..e60cbae 100644
--- a/plugins/phpbb3/JabberAuthPhpBB.php
+++ b/plugins/phpbb3/JabberAuthPhpBB3.php
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']);
+}
diff --git a/plugins/phpbb3/phpbb_bootstrap.php b/plugins/phpbb3/phpbb3_bootstrap.php
index 4ede950..4ede950 100644
--- a/plugins/phpbb3/phpbb_bootstrap.php
+++ b/plugins/phpbb3/phpbb3_bootstrap.php