Update self-update.php

This commit is contained in:
Julian Prieber 2022-05-28 14:52:37 +02:00
parent 5de8b86b53
commit 9a99d858e0
1 changed files with 1 additions and 7 deletions

View File

@ -2,13 +2,7 @@
declare(strict_types=1); declare(strict_types=1);
$Vgit = file_get_contents("https://julianprieber.github.io/littlelink-custom/version.json");
ini_set('user_agent', 'Mozilla/4.0 (compatible; MSIE 6.0)');
$json = file_get_contents("https://api.github.com/repos/julianprieber/littlelink-custom/releases/latest") ;
$myObj = json_decode($json);
$Vgit = $myObj->tag_name;
$Vlocal = 'v' . file_get_contents(base_path("version.json"));
if ($Vgit > $Vlocal) { if ($Vgit > $Vlocal) {
$userver = 'https://update.littlelink-custom.com/'; $userver = 'https://update.littlelink-custom.com/';