#!/usr/bin/php <?php error_reporting(0); $auth = new JabberAuth(); $auth->setSecret("CHANGE_ME"); // Set the secret password to allow us access $auth->setForumURL("http://your-webhost.com/forum"); // Set the location where the base phpBB forum can be found at ( without the trailing '/' ) $auth->startRun(); // We simply start process ! class JabberAuth { private $_log = true; private $_debug = false; private $_logfile = "/var/log/ejabberd/exauth_phpbb.log"; private $_rlog; private $_location = ""; private $_secret = ""; private $_stdin; private $_stdout; function __construct() { $this->_rlog = fopen($this->_logfile, "a") or die("Error opening log file: " . $this->_logfile); $this->log("Starting pipe-auth ..."); // We notice that it's starting ... $this->_stdout = fopen("php://stdout", "w"); // We open STDOUT so we can read $this->_stdin = fopen("php://stdin", "r"); // and STDIN so we can talk ! } public function startRun()