Merge remote-tracking branch 'origin/master' into 0.10.0
This commit is contained in:
@@ -53,7 +53,7 @@ https://files.froxlor.org/releases/froxlor-latest.tar.gz [MD5](https://files.fro
|
|||||||
[HowTo](https://github.com/Froxlor/Froxlor/wiki/Install-froxlor-on-debian)
|
[HowTo](https://github.com/Froxlor/Froxlor/wiki/Install-froxlor-on-debian)
|
||||||
|
|
||||||
/etc/apt/sources.list.d/froxlor.list
|
/etc/apt/sources.list.d/froxlor.list
|
||||||
> deb http://debian.froxlor.org {wheezy|jessie} main
|
> deb http://debian.froxlor.org {wheezy|jessie|stretch} main
|
||||||
|
|
||||||
### Gentoo repository
|
### Gentoo repository
|
||||||
|
|
||||||
|
|||||||
@@ -86,6 +86,7 @@ if ($page == 'overview') {
|
|||||||
if ((isset($_GET['lookfornewversion']) && $_GET['lookfornewversion'] == 'yes')
|
if ((isset($_GET['lookfornewversion']) && $_GET['lookfornewversion'] == 'yes')
|
||||||
|| (isset($lookfornewversion) && $lookfornewversion == 'yes')
|
|| (isset($lookfornewversion) && $lookfornewversion == 'yes')
|
||||||
) {
|
) {
|
||||||
|
if (function_exists('curl_version')) {
|
||||||
$update_check_uri = 'http://version.froxlor.org/Froxlor/api/' . $version;
|
$update_check_uri = 'http://version.froxlor.org/Froxlor/api/' . $version;
|
||||||
$latestversion = HttpClient::urlGet($update_check_uri);
|
$latestversion = HttpClient::urlGet($update_check_uri);
|
||||||
$latestversion = explode('|', $latestversion);
|
$latestversion = explode('|', $latestversion);
|
||||||
@@ -116,6 +117,12 @@ if ($page == 'overview') {
|
|||||||
} else {
|
} else {
|
||||||
redirectTo($update_check_uri.'/pretty', NULL, false);
|
redirectTo($update_check_uri.'/pretty', NULL, false);
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
$lookfornewversion_lable = "Version-check not available due to missing php-curl extension";
|
||||||
|
$lookfornewversion_link = htmlspecialchars($filename . '?s=' . urlencode($s) . '&page=' . urlencode($page) . '&lookfornewversion=yes');
|
||||||
|
$lookfornewversion_addinfo = '';
|
||||||
|
$isnewerversion = 0;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
$lookfornewversion_lable = $lng['admin']['lookfornewversion']['clickhere'];
|
$lookfornewversion_lable = $lng['admin']['lookfornewversion']['clickhere'];
|
||||||
$lookfornewversion_link = htmlspecialchars($filename . '?s=' . urlencode($s) . '&page=' . urlencode($page) . '&lookfornewversion=yes');
|
$lookfornewversion_link = htmlspecialchars($filename . '?s=' . urlencode($s) . '&page=' . urlencode($page) . '&lookfornewversion=yes');
|
||||||
|
|||||||
Reference in New Issue
Block a user