diff --git a/archive/community.applications-2017.10.26.txz b/archive/community.applications-2017.10.26.txz new file mode 100644 index 00000000..c63afe0c Binary files /dev/null and b/archive/community.applications-2017.10.26.txz differ diff --git a/source/community.applications/usr/local/emhttp/plugins/community.applications/scripts/showStatistics.php b/source/community.applications/usr/local/emhttp/plugins/community.applications/scripts/showStatistics.php index 2fe921c4..3f032ada 100644 --- a/source/community.applications/usr/local/emhttp/plugins/community.applications/scripts/showStatistics.php +++ b/source/community.applications/usr/local/emhttp/plugins/community.applications/scripts/showStatistics.php @@ -50,6 +50,25 @@ switch ($_GET['arg1']) { echo "
"; } } + $templates = json_decode(file_get_contents($communityPaths['community-templates-info']),true); + foreach ($templates as $template) { + $count = 0; + foreach ($templates as $searchTemplates) { + if ( ($template['Repository'] == $searchTemplates['Repository']) ) { + if ( $searchTemplates['BranchName'] || $searchTemplates['Blacklist'] ) { + continue; + } + $count++; + } + } + if ($count > 1) { + $dupeRepos .= "Duplicated Template: {$template['RepoName']} - {$template['Repository']} - {$template['Name']}
"; + } + } + if ( $dupeRepos ) { + echo "
The following docker applications refer to the same docker repository, but may have subtle changes in the template to warrant this

$dupeRepos"; + } + break; case 'Blacklist': $moderation = @file_get_contents($communityPaths['blacklisted_txt']);