This commit is contained in:
Squidly271 2021-07-13 19:14:39 -04:00
parent e55631029b
commit 5678117ca6
4 changed files with 15 additions and 3 deletions

Binary file not shown.

View File

@ -80,7 +80,7 @@ if ( is_file($caPaths['addConverted']) ) {
$date = (date("n/d"));
// Only check for updates to containers / plugins max once per hour
if ( $cfg['checkForUpdates'] == "yes" ) {
if ( $cfg['updateCheck'] == "yes" ) {
if ( ( time() - @filemtime($caPaths['updateTime']) ) > 3600 ) {
touch($caPaths['updateTime']);
exec("echo '/usr/local/emhttp/plugins/community.applications/scripts/checkForUpdates.php >/dev/null 2>&1' | at now >/dev/null");
@ -272,7 +272,7 @@ $(function(){
$('.mainArea').on("click",".dockerUpdate",function() {
var container = $(this).attr("data-name");
openBox('/plugins/dynamix.docker.manager/include/CreateDocker.php?updateContainer=true&ct[]='+encodeURIComponent(container),tr('Update Container'),600,1100,true,refreshDisplay);
openBox('/plugins/community.applications/scripts/installUpdate.php?ct[]='+encodeURIComponent(container),tr('Update Container'),600,1100,true,refreshDisplay);
});
$('.mainArea').on("click",".ca_non_favouriteRepo",function() {
if ( popupVisible(this) ) return;

View File

@ -1,6 +1,6 @@
767d6f2203fed9541daeb57bbf7b58b3 ./Apps.page
83b3f89cd42e8601c7c217d5b4889c81 ./CA_notices.page
fb20889fd933fe9511975455d71559c2 ./CommunityApps.page
464e08e065233dd9fca3fabcbe6f6669 ./CommunityApps.page
6db73582f22dab13d329e862067ee84e ./PluginAPI.page
b398273cf7daa62ab00d2de2336ca25f ./README.md
2cdb7da0d67a11278ada7fd029707738 ./ca_settings.page
@ -29,3 +29,4 @@ f9c3f431935fb20801f3fef152dc7b58 ./scripts/showStatistics.php
4425f8fd4ef662a7dc65cee01de3e419 ./scripts/updatePLG.sh
02759ea835ee4ce5a051fead96ab9b9b ./scripts/updatePluginSupport.php
0a4b291ae29b73cea0437a11ba28c8d9 ./scripts/checkForUpdates.php
4d085a2c11108ac26a5591c2ac5ccda9 ./scripts/installUpdate.php

View File

@ -0,0 +1,11 @@
<?
$_GET['updateContainer'] = "true";
// $_GET['communityApplications'] = true;
include("/usr/local/emhttp/plugins/dynamix.docker.manager/include/CreateDocker.php");
?>
<script>
function addCloseButton() {
addLog("<p class='centered'><button class='logLine' type='button' onclick='" + (top.Shadowbox ? "top.Shadowbox" : "window") + ".close()'>Done</button></p>");
}
addCloseButton();
</script>