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;
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user