Menu="Plugins"
Title="Plugin History"
Tag="puzzle-piece"
Cond="glob('/boot/config/plugins-stale/*.plg')"
---
require_once "$docroot/plugins/dynamix.plugin.manager/include/PluginHelpers.php";
echo "
";
echo " | ".('Plugin')." | "._('Author')." | "._('Version')." | "._('Status')." | |
";
echo "";
foreach (glob("/boot/config/plugins-stale/*.plg", GLOB_NOSORT) as $plugin_file) {
// plugin name
$name = plugin("name", $plugin_file);
if ($name === false) $name = basename($plugin_file, ".plg");
// icon
$icon = icon($name);
// desc
$readme = "plugins/{$name}/README.md";
if (file_exists($readme))
$desc = Markdown(file_get_contents($readme));
else
$desc = Markdown("**{$name}**");
// author
$author = plugin("author", $plugin_file);
if ($author === false) $author = _("anonymous");
// version
$version = plugin("version", $plugin_file);
if ($version === false) $version = _("unknown");
// status info
$status = " "._('STALE')."";
// action
$action = make_link("delete", $plugin_file);
// echo our plugin information
echo " | $desc | $author | $version | $status | $action |
";
}
echo "
";
?>
:plugin_stale_help: