From 841bcac241bac980d5e943793ffda3372d7f8f82 Mon Sep 17 00:00:00 2001 From: Christoph Burschka Date: Thu, 16 Jan 2014 19:34:39 +0100 Subject: Big multiple-plugins patch (fixes #2). --- config.sample.php | 76 +++++++++++++++++++++++++++++++++++++------------------ 1 file changed, 51 insertions(+), 25 deletions(-) (limited to 'config.sample.php') diff --git a/config.sample.php b/config.sample.php index 14c6153..59e0613 100644 --- a/config.sample.php +++ b/config.sample.php @@ -1,28 +1,54 @@ 'drupal8', + * 'config' => [ + * 'root_path' => '/path/to/drupal8', + * 'site' => 'default', + * ], + * ]; + * + * Example 2: Add a phpBB and MediaWiki subdomain (exact match): + * + * $config['forum.example.com'][0] = [ + * 'plugin' => 'phpbb30', + * 'config => ['root_path' => '/path/to/phpbb'], + * ]; + * $config['wiki.example.com'][0] = [ + * 'plugin' => 'mediawiki', + * 'config' => ['root_path' => '/path/to/mediawiki'], + * ]; + * + * Example 3: Allow session authentication (see plugins/session/README.md) + * + * $config['*'][0] = [ + * 'plugin' => 'phpbb30', + * 'config => ['root_path' => '/path/to/phpbb'], + * ]; + * $config['*'][1] = [ + * 'plugin' => 'session', + * 'config' => [ + * 'mysql' => [ + * 'dsn' => 'mysql:host=localhost;dbname=DATABASE;charset=utf8', + * 'username' => 'USER', + * 'password' => 'PASSWORD', + * 'table' => 'TABLE', + * ], + * 'plugin' => 'phpbb30' + * ], + * ]; + */ -$config['plugin'] = ''; -$config['log_path'] = __DIR__ . '/logs/'; - -$config['phpbb30'] = array( - 'root_path' => '' /* path to your phpBB30 installation */, -); - -$config['phpbb31'] = array( - 'root_path' => '' /* path to your phpBB31 installation */, -); - -$config['drupal7'] = array( - 'root_path' => '' /* path to your Drupal 7 installation */, - 'site' => 'default' /* site directory */, -); - -$config['drupal8'] = array( - 'root_path' => '' /* path to your Drupal 8 installation */, - 'site' => 'default' /* site directory */, -); - -$config['smf2'] = array( - 'root_path' => '' /* path to your SMF 2.x installation */, -); +$config['*'][0] = [ + 'plugin' => '', + 'config' => [ + 'root_path' => '', + ], +]; -- cgit v1.1