Here is some code that is the result of four days of studying Wordpress and PHP. Unfortunately, it's not working the way it's supposed to. Nothing displays at the admin_notices bar.
Originally, I thought it was the $filename = is_plugin_active($filename) ? "$filename: Active" : "$filename: Disabled"; line, but that was not the problem. What say you?
function show_names()
{
$paths = array();
foreach (glob("*/plugins/*") as $filename) {
$filename = is_plugin_active($filename) ? "$filename: Active" : "$filename: Disabled";
$filename = str_replace('wp-content/plugins/', '', $filename);
$paths[] = $filename;
}
$paths = implode("---", $paths);
echo $paths;
}
add_action("admin_notices", "show_names");