Subversion Repositories oidplus

Compare Revisions

No changes between revisions

Regard whitespace Rev 1445 → Rev 1446

/trunk/changelog.json.php
3,6 → 3,14
"dummy": "<?php die('For security reasons, this file can only be accessed locally (without PHP).'.base64_decode('IgogICAgfQpdCg==')); /* @phpstan-ignore-line */ ?>"
},
{
"version": "2.0.1.12",
"date": "2023-12-26 23:55:00 +0100",
"author": "Daniel Marschall (ViaThinkSoft)",
"changes": [
"Fix broken update procedure introcuced with 2.0.1.11"
]
},
{
"version": "2.0.1.11",
"date": "2023-12-26 16:55:00 +0100",
"author": "Daniel Marschall (ViaThinkSoft)",
/trunk/plugins/viathinksoft/adminPages/900_software_update/OIDplusPageAdminSoftwareUpdate.class.php
115,21 → 115,28
 
$cont = false;
$basename = 'changescript_'.$ver.'.txt';
$url = '';
for ($retry=1; $retry<=3; $retry++) {
$update_packages_candidates = OIDplus::getEditionInfo()['update_packages'];
if (!is_array($update_packages_candidates)) $update_packages_candidates = [ $update_packages_candidates ];
 
foreach ($update_packages_candidates as $update_packages_candidate) {
if (function_exists('gzdecode')) {
$url = OIDplus::getEditionInfo()['update_packages'].$basename.'.gz';
$url = $update_packages_candidate.$basename.'.gz';
$cont = url_get_contents($url);
if ($cont !== false) $cont = @gzdecode($cont);
} else {
$url = OIDplus::getEditionInfo()['update_packages'].$basename;
$url = $update_packages_candidate.$basename;
$cont = url_get_contents($url);
}
 
if ($cont !== false) {
break;
} else {
break 2;
}
}
 
sleep(1);
}
}
if ($cont === false) throw new OIDplusException(_L("Update %1 could not be downloaded from the remote server (%2). Please try again later.",$ver,$url));
 
// Check signature...
/trunk/plugins/viathinksoft/adminPages/902_systemfile_check/checksums.json
Cannot display: file marked as a binary type.
svn:mime-type = application/json