diff --git a/archive/community.applications-2021.03.25-x86_64-1.txz b/archive/community.applications-2021.03.25-x86_64-1.txz new file mode 100644 index 00000000..e290943f Binary files /dev/null and b/archive/community.applications-2021.03.25-x86_64-1.txz differ diff --git a/archive/community.applications-2021.03.27-x86_64-1.txz b/archive/community.applications-2021.03.27-x86_64-1.txz new file mode 100644 index 00000000..c25cbe5d Binary files /dev/null and b/archive/community.applications-2021.03.27-x86_64-1.txz differ diff --git a/copy_to_git.sh b/copy_to_git.sh index fe1c8439..731a1ac3 100644 --- a/copy_to_git.sh +++ b/copy_to_git.sh @@ -3,5 +3,9 @@ mkdir -p "/tmp/GitHub/community.applications/source/community.applications/usr/local/emhttp/plugins/community.applications/" cp /usr/local/emhttp/plugins/community.applications/* /tmp/GitHub/community.applications/source/community.applications/usr/local/emhttp/plugins/community.applications -R -v -p +cd /tmp/GitHub/community.applications/source/community.applications/usr/local/emhttp/plugins/community.applications +rm -f ca.md5 +find . -type f -exec md5sum {} + > /tmp/ca.md5 +mv /tmp/ca.md5 ca.md5 diff --git a/source/community.applications/usr/local/emhttp/plugins/community.applications/CommunityApps.page b/source/community.applications/usr/local/emhttp/plugins/community.applications/CommunityApps.page index 1204f877..1f9f940d 100644 --- a/source/community.applications/usr/local/emhttp/plugins/community.applications/CommunityApps.page +++ b/source/community.applications/usr/local/emhttp/plugins/community.applications/CommunityApps.page @@ -41,6 +41,11 @@ $unRaid69 = version_compare($unRaidSettings['version'],"6.8.2",">"); $translations = is_file("$docroot/plugins/dynamix/include/Translations.php"); $unRaid69B2 = version_compare($unRaidSettings['version'],"6.9.0-beta1",">"); +// Check md5's of files +$caSettings = parse_plugin_cfg("community.applications"); +exec("cd /usr/local/emhttp/plugins/$plugin/ && md5sum -c ca.md5",$output,$md5Error); + + $previousLocale = $_COOKIE["locale"]; if ( $unRaid69B2 ) { @@ -1515,7 +1520,7 @@ function scrollToTop() { function addDockerWarning(enableDisable) { if (enableDisable) { if ( dockerWarningAdded === false) { - dockerWarningAdded = addBannerWarning("",true,true); + dockerWarningAdded = addBannerWarning("",true,false); } } else { if ( dockerWarningAdded !== false ) { diff --git a/source/community.applications/usr/local/emhttp/plugins/community.applications/ca.md5 b/source/community.applications/usr/local/emhttp/plugins/community.applications/ca.md5 new file mode 100644 index 00000000..67886826 --- /dev/null +++ b/source/community.applications/usr/local/emhttp/plugins/community.applications/ca.md5 @@ -0,0 +1,30 @@ +767d6f2203fed9541daeb57bbf7b58b3 ./Apps.page +83b3f89cd42e8601c7c217d5b4889c81 ./CA_notices.page +cea8e7a1af52cfcab295700884d393d3 ./CommunityApps.page +6db73582f22dab13d329e862067ee84e ./PluginAPI.page +b398273cf7daa62ab00d2de2336ca25f ./README.md +1a908064914041c48be7bf0dab77515a ./ca_settings.page +411b835e910b987ecdf4293cf351f79b ./default.cfg +4344942541019c3b5464d508c7f0dd30 ./images/community.applications.png +6e48a62b91bdd066f023f46c6b491afd ./images/discord-azure.svg +389e13f48a67895377189b855b950497 ./images/discord-black.svg +6e48a62b91bdd066f023f46c6b491afd ./images/discord-gray.svg +8e7dc33512b8a78f28d7179a972c7c34 ./images/discord-hover.svg +54e46db492ddb033dfeb2827c5efd4a8 ./images/discord-white.svg +1bac5e1e7a654e133d13e3641ea16da3 ./include/exec.php +b170210649f9cb7396ba3ae64d346bf3 ./include/helpers.php +8f1129e0cdb994c6d1900192252433d8 ./include/paths.php +9ba7ea3ef8bad60cb8335da9c0daea4f ./javascript/libraries.js +6522829d02f7fae8b7f9d491cbc8b981 ./skins/Narrow/css.php +b8e3ba44167496091be052434c90d296 ./skins/Narrow/skin.html +7bebedcb67df7ed7c3933a79a3757d9b ./skins/Narrow/skin.php +38d1f40cbc64eed32cdb3292e1ec1f6e ./scripts/PluginAPI.php +bbd9dec6c5df486d75c46388c14f09ce ./scripts/installMulti.php +ce2c904b6a40c4677a3ff3484776959e ./scripts/installMultiPlugin.sh +524afab04ca930f59117a846f819fb2f ./scripts/installPluginUpdate.sh +5846421e95b475e1156c3f68164ccc4f ./scripts/languageInstall.sh +729c178196af99c94116246f0c8be7a5 ./scripts/notices.php +1efbd780e8ead27a768d1631fb51150c ./scripts/pluginInstall.sh +10e9f1a136907d8df1c46f1669831db8 ./scripts/showStatistics.php +4425f8fd4ef662a7dc65cee01de3e419 ./scripts/updatePLG.sh +02759ea835ee4ce5a051fead96ab9b9b ./scripts/updatePluginSupport.php diff --git a/source/community.applications/usr/local/emhttp/plugins/community.applications/include/exec.php b/source/community.applications/usr/local/emhttp/plugins/community.applications/include/exec.php index 43c15994..c481ead3 100644 --- a/source/community.applications/usr/local/emhttp/plugins/community.applications/include/exec.php +++ b/source/community.applications/usr/local/emhttp/plugins/community.applications/include/exec.php @@ -59,7 +59,12 @@ if ( !is_dir($caPaths['templates-community']) ) { } if ($caSettings['debugging'] == "yes") { - file_put_contents($caPaths['logging'],"POST CALLED\n".print_r($_POST,true),FILE_APPEND); + if ( ! is_file($caPaths['logging']) ) { + $caVersion = plugin("version","/var/log/plugins/community.applications.plg"); + file_put_contents($caPaths['logging'],"Community Applications Version: $caVersion\n"); + file_put_contents($caPaths['logging'],"MD5's: \n".shell_exec("cd /usr/local/emhttp/plugins/community.applications && md5sum -c ca.md5")."\n",FILE_APPEND); + } + file_put_contents($caPaths['logging'],"POST CALLED ({$_POST['action']})\n".print_r($_POST,true),FILE_APPEND); } $sortOrder = readJsonFile($caPaths['sortOrder']); diff --git a/source/community.applications/usr/local/emhttp/plugins/community.applications/include/helpers.php b/source/community.applications/usr/local/emhttp/plugins/community.applications/include/helpers.php index dc1bb072..5770e17e 100644 --- a/source/community.applications/usr/local/emhttp/plugins/community.applications/include/helpers.php +++ b/source/community.applications/usr/local/emhttp/plugins/community.applications/include/helpers.php @@ -577,7 +577,7 @@ function postReturn($retArray) { flush(); if ($caSettings['debugging'] == "yes") { - file_put_contents($caPaths['logging'],"POST RETURN:\n".var_dump_ret($retArray)."\n",FILE_APPEND); + file_put_contents($caPaths['logging'],"POST RETURN ({$_POST['action']})\n".var_dump_ret($retArray)."\n",FILE_APPEND); } } #################################### diff --git a/source/community.applications/usr/local/emhttp/plugins/community.applications/skins/Narrow/skin.html b/source/community.applications/usr/local/emhttp/plugins/community.applications/skins/Narrow/skin.html index 07326b6a..de4160e2 100644 --- a/source/community.applications/usr/local/emhttp/plugins/community.applications/skins/Narrow/skin.html +++ b/source/community.applications/usr/local/emhttp/plugins/community.applications/skins/Narrow/skin.html @@ -28,6 +28,9 @@