aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/common.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2003-02-25 16:49:45 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2003-02-25 16:49:45 +0000
commit46267dce884f76204a21f8c72bb0eb28c47c228c (patch)
treee34b1d78d3542ec58839b7467a09e4d8517ceb27 /phpBB/common.php
parent74c6eec7257d99949a273287c97e0a52e492beba (diff)
downloadforums-46267dce884f76204a21f8c72bb0eb28c47c228c.tar
forums-46267dce884f76204a21f8c72bb0eb28c47c228c.tar.gz
forums-46267dce884f76204a21f8c72bb0eb28c47c228c.tar.bz2
forums-46267dce884f76204a21f8c72bb0eb28c47c228c.tar.xz
forums-46267dce884f76204a21f8c72bb0eb28c47c228c.zip
added extension loading. please note the additional variable '
$load_extensions = "";' within config.php. git-svn-id: file:///svn/phpbb/trunk@3528 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/common.php')
-rw-r--r--phpBB/common.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/phpBB/common.php b/phpBB/common.php
index f9bf10da9e..e637594f5a 100644
--- a/phpBB/common.php
+++ b/phpBB/common.php
@@ -44,6 +44,17 @@ if (!defined('PHPBB_INSTALLED'))
exit;
}
+// Load Extensions
+if ( (isset($load_extensions)) && ($load_extensions != '') )
+{
+ $load_extensions = explode(',', $load_extensions);
+
+ for ($i = 0; $i < count($load_extensions); $i++)
+ {
+ @dl(trim($load_extensions[$i]));
+ }
+}
+
// Include files
require($phpbb_root_path . 'includes/acm/cache_' . $acm_type . '.'.$phpEx);
require($phpbb_root_path . 'db/' . $dbms . '.'.$phpEx);