From 7fc3addf1b2796998fe0350cd4c5d7513612b1ba Mon Sep 17 00:00:00 2001 From: Christoph Burschka Date: Tue, 30 Oct 2012 02:45:21 +0100 Subject: Initial checkin --- phpbb-bridge/noweb_user.php | 17 ++++++++++++++ phpbb-bridge/phpbb_bootstrap.php | 51 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+) create mode 100644 phpbb-bridge/noweb_user.php create mode 100644 phpbb-bridge/phpbb_bootstrap.php (limited to 'phpbb-bridge') diff --git a/phpbb-bridge/noweb_user.php b/phpbb-bridge/noweb_user.php new file mode 100644 index 0000000..3291222 --- /dev/null +++ b/phpbb-bridge/noweb_user.php @@ -0,0 +1,17 @@ +load('services.yml'); + +$processor = new phpbb_di_processor_config($phpbb_root_path . 'config.' . $phpEx, $phpbb_root_path, $phpEx); +$processor->process($phpbb_container); + +// Setup class loader first +$phpbb_class_loader = $phpbb_container->get('class_loader'); +$phpbb_class_loader_ext = $phpbb_container->get('class_loader.ext'); + +// Instantiate some basic classes +$user = new noweb_user; +$auth = $phpbb_container->get('auth'); +$db = $phpbb_container->get('dbal.conn'); + +// Grab global variables, re-cache if necessary +$config = $phpbb_container->get('config'); +set_config(null, null, null, $config); +set_config_count(null, null, null, $config); -- cgit v1.1