summaryrefslogtreecommitdiff
path: root/main.php
diff options
context:
space:
mode:
authorChristoph Burschka2012-10-30 02:45:21 +0100
committerChristoph Burschka2012-10-30 02:45:21 +0100
commit7fc3addf1b2796998fe0350cd4c5d7513612b1ba (patch)
treeda7b47008fc112e53aee5ab51b8a39f6be4f54f2 /main.php
downloadejabberd-auth-php-7fc3addf1b2796998fe0350cd4c5d7513612b1ba.tar.gz
Initial checkin
Diffstat (limited to 'main.php')
-rw-r--r--main.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/main.php b/main.php
new file mode 100644
index 0000000..fee0f33
--- /dev/null
+++ b/main.php
@@ -0,0 +1,16 @@
+#!/usr/bin/php
+<?php
+// by Aran, October 2012
+
+// Bootstrap the phpBB system.
+define('ROOT', __DIR__);
+require_once __DIR__ . '/config.php';
+require_once __DIR__ . '/phpbb-bridge/phpbb_bootstrap.php';
+
+// Load the classes.
+require_once __DIR__ . '/classes/JabberAuth.php';
+require_once __DIR__ . '/classes/JabberAuthPhpBB.php';
+
+// Launch the script.
+$main = new JabberAuthPhpBB($auth, $db, $log_path);
+$main->run();