read()) !== false) {
if (!preg_match('|^\.+$|', $file)) $plugin_files[] = $file;
}
}
if ('' != trim(get_settings('active_plugins'))) {
$current_plugins = unserialize(get_settings('active_plugins'));
}
/*
Plugin Name: matt's cool plugin
Plugin URI: http://photomatt.net/plugins/cool-plugin
Description: blah blah blah anything until a newline
Author: photo matt
Author URI: http://photomatt.net
*/
if (!$plugins_dir || !$plugin_files) {
echo "Couldn't open plugins directory or there are no plugins available.
"; // TODO: make more helpful
} else {
?>
Plugin |
Author |
Description |
Action |
{$plugin_name[1]}");
}
if ('' == $author_uri) {
$author = $author_name[1];
} else {
$author = wp_filter_kses("{$author_name[1]}");
}
$style = ('class="alternate"' == $style) ? '' : 'class="alternate"';
echo "
$plugin |
$author |
$description |
activate |
";
}
?>