From a8c22829d8e8845cd4ddf4ef8b61a1ed79edfffc Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Mon, 12 Mar 2018 22:57:42 +0100 Subject: Imported from the SVN repository http://svn.wolffelaar.nl/wsvn/phpbb/branches/jessie/ Signed-off-by: Olivier Gayot --- debian/config.php | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 debian/config.php (limited to 'debian/config.php') diff --git a/debian/config.php b/debian/config.php new file mode 100644 index 0000000..0a091d5 --- /dev/null +++ b/debian/config.php @@ -0,0 +1,57 @@ + or section of your webserver's config. +That file will then override the standard config. For an example file, see +/usr/share/doc/phpbb3/examples/config.php. See also /usr/share/doc/phpbb3/README.multiboard. + +*/ + +if (!defined('PHPBB_INSTALLED')) { + // database.inc.php also exists when the question if + // dbconfig-common should be used was answered with "No" + // therefore we don't need to check its existence + @include('/etc/phpbb3/database.inc.php'); + if (empty($dbtype) && @constant('IN_INSTALL')!='true') { + die("The board configuration seems to be incomplete. Use the + dbconfig-common method provided with the package setup + (dpkg-reconfigure phpbb3) to have a database + setup automatically, or see + /usr/share/doc/phpbb3/README.Debian and/or + /usr/share/doc/phpbb3/README.multiboard for + information on how to configure manually."); + } + // now translate the dbconfig-common variables to the phpBB internal vars + $dbms = ($dbtype == 'pgsql' ? 'postgres' : $dbtype); + if ($dbtype == 'sqlite') { + $dbhost = "$basepath/$dbname"; + } else { + $dbhost = $dbserver; + } + $dbpasswd = $dbpass; + if (!isset($table_prefix)) { + $table_prefix = 'phpbb_'; + } + + $load_extensions = ''; + + define('PHPBB_INSTALLED', true); +} +if (!isset($acm_type)) { + // don't break multi-sites from < 3.0.7-PL1-1 + $acm_type = 'file'; +} + +// $url_forum is used inside the patched phpBB code in Debian to +// ensure a working multisite cache/store/... +// Use the database name as a default fallback. +if (empty($url_forum)) { + $url_forum = $dbname; +} -- cgit v1.2.3