Seeing how this is now in the core files, do we still need this part of code in index.php?
$plugin_dir = opendir("{$CONF['path']}/plugins/");
while (false !== ($plugin_subdir = readdir($plugin_dir))) {
if ($plugin_subdir != '.' && $plugin_subdir != '..' && $plugin_subdir != 'index.htm') {...