Remove unused code in plugins.page

This commit is contained in:
bergware
2017-06-22 16:16:19 +02:00
parent 5a6f2b209f
commit e37edf5613

View File

@@ -19,8 +19,7 @@ Tabs="true"
<?
$empty = "<tr><td colspan='6' style='text-align:center;padding-top:12px'><i class='fa fa-spinner fa-spin icon'></i><em>Please wait, retrieving and updating plugin information ...</em></td><tr>";
// Remove stale /tmp/plugin/*.plg entries
$stale = ($path != $prev);
if ($stale) foreach (glob("/tmp/plugins/*.{plg,txt}", GLOB_NOSORT+GLOB_BRACE) as $entry) if (!file_exists("/var/log/plugins/".basename($entry))) @unlink($entry);
if ($path != $prev) foreach (glob("/tmp/plugins/*.{plg,txt}", GLOB_NOSORT+GLOB_BRACE) as $entry) if (!file_exists("/var/log/plugins/".basename($entry))) @unlink($entry);
?>
<link type="text/css" rel="stylesheet" href="/webGui/styles/jquery.filetree.css">
<style>
@@ -42,7 +41,7 @@ function resize(bind) {
}
<?endif;?>
$(function() {
$.get('/plugins/dynamix.plugin.manager/include/ShowPlugins.php',{stale:'<?=$stale?>'},function(data) {
$.get('/plugins/dynamix.plugin.manager/include/ShowPlugins.php',{},function(data) {
if (data) $('#plugin_list').html(data);
<?if ($display['resize']):?>
resize();