1 2 3 4 5 6 7 8 9 10 11
<?php function phpbb30_init($config) { global $phpbb_root_path; $phpbb_root_path = $config['root_path']; // Bootstrap the phpBB system. require_once __DIR__ . '/phpbb30_bootstrap.php'; // Load the plugin. require_once __DIR__ . '/BridgePhpBB30.php'; return new BridgePhpBB30($auth, $db); }