diff options
author | Paul S. Owen <psotfx@users.sourceforge.net> | 2002-08-07 13:03:05 +0000 |
---|---|---|
committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2002-08-07 13:03:05 +0000 |
commit | 523bf91b365a5388904b49efae0966f3e8f9854d (patch) | |
tree | 8ca69ef41d89e59afd298e531685ecdefdf50e8b /phpBB/admin/admin_board.php | |
parent | 2b0b8993e795e1e5e815ff385c45e0a331ff9305 (diff) | |
download | forums-523bf91b365a5388904b49efae0966f3e8f9854d.tar forums-523bf91b365a5388904b49efae0966f3e8f9854d.tar.gz forums-523bf91b365a5388904b49efae0966f3e8f9854d.tar.bz2 forums-523bf91b365a5388904b49efae0966f3e8f9854d.tar.xz forums-523bf91b365a5388904b49efae0966f3e8f9854d.zip |
Insert any new fields required by auth plugins
git-svn-id: file:///svn/phpbb/trunk@2840 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/admin/admin_board.php')
-rw-r--r-- | phpBB/admin/admin_board.php | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/phpBB/admin/admin_board.php b/phpBB/admin/admin_board.php index 8b33955ef8..bb4061ba1f 100644 --- a/phpBB/admin/admin_board.php +++ b/phpBB/admin/admin_board.php @@ -544,13 +544,28 @@ switch ( $mode ) $method = 'admin_' . $method; if ( function_exists($method) ) { - $method($new); + if ( $config_fields = $method($new) ) + { + // + // Check if we need to create config fields for this plugin + // + foreach( $config_fields as $field ) + { + if ( !isset($board_config[$field]) ) + { + $sql = "INSERT INTO " . CONFIG_TABLE . " (config_name, config_value) + VALUES ('$field', '')"; + $db->sql_query($sql); + } + } + } + + unset($config_fields); } } } break; - } ?> |