further timeout refinements

pull/11/head
Squidly271 2022-09-04 12:48:53 -04:00
parent 5fcb79c637
commit f9d9460c53
5 changed files with 4 additions and 38 deletions

View File

@ -2,7 +2,7 @@ bcdbfc0c658bcc641a809f45808fbd95 ./Apps.page
4e55f7483b661af21a25b677179baffe ./CA_notices.page
42a1658a916a3a3eed2a9f2af80603c4 ./ca_settings.page
e718d7825dbdc96a17a915079222b098 ./default.cfg
69837040d99db6ace79fa8c995579b52 ./include/exec.php
215a78bda8752c4356e4eda79518fe03 ./include/exec.php
f25b1ed0b1cddfb4ff95a10ced212a0d ./include/helpers.php
116042a918060278e77379b0dd73482c ./include/paths.php
532fffdf939594c143e679da02bd841e ./javascript/libraries.js

View File

@ -908,7 +908,7 @@ function force_update() {
@unlink($caPaths['lastUpdated']);
$latestUpdate = download_json($caPaths['application-feed-last-updated'],$caPaths['lastUpdated'],"",5);
if ( ! $latestUpdate['last_updated_timestamp'] )
$latestUpdate = download_json($caPaths['application-feed-last-updatedBackup'],$caPaths['lastUpdated']);
$latestUpdate = download_json($caPaths['application-feed-last-updatedBackup'],$caPaths['lastUpdated'],"",5);
if ( ! $latestUpdate['last_updated_timestamp'] ) {
$latestUpdate['last_updated_timestamp'] = INF;
@ -2447,7 +2447,8 @@ function saveMultiPluginPending() {
function downloadStatistics() {
global $caPaths;
download_json($caPaths['statisticsURL'],$caPaths['statistics']);
if ( ! is_file($caPaths['statistics']) )
download_json($caPaths['statisticsURL'],$caPaths['statistics']);
}
#######################################

View File

@ -1,14 +0,0 @@
#!/usr/bin/php
<?
###############################################################
# #
# Community Applications copyright 2015-2022, Andrew Zawadzki #
# Licenced under GPLv2 #
# #
###############################################################
if ( $argv[1] == "check" || $argv[1] == "checkall" )
return;
echo "Executing Community Applications Post-Plugin Settings\n";
@unlink("/tmp/community.applications/pluginPending/{$argv[2]}");
echo "Finished";
?>

View File

@ -1,21 +0,0 @@
#!/usr/bin/php
<?
###############################################################
# #
# Community Applications copyright 2015-2022, Andrew Zawadzki #
# Licenced under GPLv2 #
# #
###############################################################
if ( $argv[1] == "check" || $argv[1] == "checkall" )
return;
echo "Executing Community Applications Pre-Plugin Settings\n";
@mkdir("/tmp/community.applications/pluginPending",0777,true);
touch("/tmp/community.applications/pluginPending/{$argv[2]}");
if ( $argv[1] == "update" ) {
if ( is_file("/var/log/plugins/{$argv[2]}") )
passthru("/usr/local/emhttp/plugins/dynamix.plugin.manager/scripts/plugin check ".escapeshellarg($argv[2]));
return;
}
?>