mirror of
https://github.com/LinkStackOrg/LinkStack.git
synced 2025-04-15 10:47:25 +02:00
Changed update server
Changed the update server URL to the version.json hosted on GitHub.
This commit is contained in:
parent
fa4f4f1441
commit
98bc1d0172
@ -146,7 +146,7 @@
|
|||||||
return str_contains(get_headers($url)[0], "200 OK");
|
return str_contains(get_headers($url)[0], "200 OK");
|
||||||
}
|
}
|
||||||
// Sets $ServerExists to true if URL exists
|
// Sets $ServerExists to true if URL exists
|
||||||
if (URL_exists("https://littlelink-custom.com/version.json")){
|
if (URL_exists("https://julianprieber.github.io/littlelink-custom/version.json")){
|
||||||
$ServerExists = "true";
|
$ServerExists = "true";
|
||||||
}
|
}
|
||||||
} catch (exception $e) {
|
} catch (exception $e) {
|
||||||
@ -158,7 +158,7 @@
|
|||||||
@if(file_exists(base_path("version.json")) and $ServerExists == 'true')
|
@if(file_exists(base_path("version.json")) and $ServerExists == 'true')
|
||||||
|
|
||||||
<?php // Requests newest version from server and sets it as variable
|
<?php // Requests newest version from server and sets it as variable
|
||||||
$Vgit = file_get_contents("https://littlelink-custom.com/version.json");
|
$Vgit = file_get_contents("https://julianprieber.github.io/littlelink-custom/version.json");
|
||||||
|
|
||||||
// Requests current version from the local version file and sets it as variable
|
// Requests current version from the local version file and sets it as variable
|
||||||
$Vlocal = file_get_contents(base_path("version.json"));
|
$Vlocal = file_get_contents(base_path("version.json"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user