mikuli.cz

:)
git clone https://git.sr.ht/~ashymad/mikuli.cz
Log | Files | Refs

commit e692d68859e510ed7dd79e467d755b0ad5f66e94
parent be1a8c757104d1aa13cfcf11dc83d56a89a0ab21
Author: markseu <mark2011@mayberg.se>
Date:   Thu, 13 May 2021 13:59:14 +0200

Updated troubleshooting, complete upload

Diffstat:
Msystem/extensions/install.php | 12+++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/system/extensions/install.php b/system/extensions/install.php @@ -2,7 +2,7 @@ // Install extension, https://github.com/datenstrom/yellow class YellowInstall { - const VERSION = "0.8.46"; + const VERSION = "0.8.47"; const PRIORITY = "1"; public $yellow; // access to API @@ -244,12 +244,22 @@ class YellowInstall { public function checkServerRequirements() { list($name) = $this->yellow->toolbox->detectServerInformation(); $troubleshooting = "<a href=\"".$this->yellow->getTroubleshootingUrl()."\">See troubleshooting</a>."; + $this->checkServerComplete() || die("Datenstrom Yellow requires complete upload for $name! $troubleshooting\n"); $this->checkServerConfiguration() || die("Datenstrom Yellow requires configuration file for $name! $troubleshooting\n"); $this->checkServerRewrite() || die("Datenstrom Yellow requires rewrite support for $name! $troubleshooting\n"); $this->checkServerWrite() || die("Datenstrom Yellow requires write access for $name! $troubleshooting\n"); return true; } + // Check web server complete upload + public function checkServerComplete() { + $complete = true; + foreach ($this->yellow->toolbox->getDirectoryEntriesRecursive(".", "/.*/", false, false) as $entry) { + if (filesize($entry)==0) $complete = false; + } + return $complete; + } + // Check web server configuration file public function checkServerConfiguration() { list($name) = $this->yellow->toolbox->detectServerInformation();