64bit Anpassungen
Name der Distro angepasst Max Value in Statistiken angepasst Hash Verfahren auf SHA256 umgestellt
This commit is contained in:
@@ -62,7 +62,7 @@ foreach ($filesFolders as $file => $info)
|
||||
}
|
||||
|
||||
// Sonstiges
|
||||
if ($otherDistribution['version'] == 'Raspbian GNU/Linux 10' || $otherDistribution['version'] == 'Raspbian GNU/Linux 11')
|
||||
if ($otherDistribution['version'] == 'Raspbian GNU/Linux 10' || $otherDistribution['version'] == 'Raspbian GNU/Linux 11' || $otherDistribution['version'] == 'Debian GNU/Linux 11')
|
||||
$otherDistribution['status'] = true;
|
||||
|
||||
if (isset($_COOKIE['_pi-control_install_language']) && $_COOKIE['_pi-control_install_language'] != '')
|
||||
|
||||
@@ -368,8 +368,15 @@ function urlIsPublic($url)
|
||||
$ip = gethostbyname($url);
|
||||
$long = ip2long($ip);
|
||||
|
||||
if (($long >= 167772160 && $long <= 184549375) || ($long >= -1408237568 && $long <= -1407188993) || ($long >= -1062731776 && $long <= -1062666241) || ($long >= 2130706432 && $long <= 2147483647) || $long == -1)
|
||||
return false;
|
||||
if (PHP_INT_SIZE == 4) {
|
||||
if (($long >= 167772160 && $long <= 184549375) || ($long >= -1408237568 && $long <= -1407188993) || ($long >= -1062731776 && $long <= -1062666241) || ($long >= 2130706432 && $long <= 2147483647) || $long == -1) {
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
if (($long >= 3232235520 && $long <= 3232301055) || ($long >= 2886729728 && $long <= 2887778303) || ($long >= 167772160 && $long <= 184549375) || $long == -1) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -614,4 +621,3 @@ function getURLLangParam($echo = false, $html = true, $first = false)
|
||||
|
||||
return $param;
|
||||
}
|
||||
?>
|
||||
@@ -10,13 +10,13 @@ if (!isset($config))
|
||||
'ssh_ip' => '127.0.0.1'
|
||||
),
|
||||
'version' => array(
|
||||
'version' => '2.3.0',
|
||||
'versioncode' => 31,
|
||||
'version' => '2.3.1beta1',
|
||||
'versioncode' => 32,
|
||||
'android_comp_level' => 25
|
||||
),
|
||||
'url' => array(
|
||||
'update' => 'https://pic.die-schultes.eu/service/v1/update/',
|
||||
'updateDownload' => 'https://www.die-schultes.eu/wp-content/uploads/',
|
||||
'updateDownload' => 'https://bugs.die-schultes.eu/attachments/',
|
||||
'updateNotification' => 'https://pi-control.de/?service=update_notification',
|
||||
'plugin' => 'https://pi-control.de/service/v1/plugin/',
|
||||
'pluginDownload' => 'https://pi-control.de/?service=plugin',
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -84,7 +84,7 @@ $statisticConfig = array(
|
||||
'fix' => true
|
||||
),
|
||||
'max' => array(
|
||||
'value' => 1200,
|
||||
'value' => 2100,
|
||||
'use' => 'fix',
|
||||
'fix' => true
|
||||
)
|
||||
|
||||
@@ -268,7 +268,7 @@ class UpdateController
|
||||
return $curl->getStatusCode();
|
||||
}
|
||||
|
||||
if (md5_file(UPDATE_PATH.'update.zip') !== $version->getChecksum())
|
||||
if (hash_file('sha256', UPDATE_PATH.'update.zip') !== $version->getChecksum())
|
||||
{
|
||||
unlink(UPDATE_PATH.'update.zip');
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user