|
4 | 4 | <div class="container"> |
5 | 5 |
|
6 | 6 | <?php // Requests newest version from server and sets it as variable |
7 | | - $Vgit = file_get_contents("https://version.littlelink-custom.com/"); |
| 7 | + $Vgit = external_file_get_contents("https://version.littlelink-custom.com/"); |
8 | 8 |
|
9 | 9 | // Requests current version from the local version file and sets it as variable |
10 | 10 | $Vlocal = file_get_contents(base_path("version.json")); |
|
21 | 21 | <h1>Updater</h1> |
22 | 22 | @if(strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') |
23 | 23 | @if(env('JOIN_BETA') === true) |
24 | | - <p><?php echo "latest beta version= " . file_get_contents("https://update.littlelink-custom.com/beta/vbeta.json"); ?></p> |
| 24 | + <p><?php echo "latest beta version= " . external_file_get_contents("https://update.littlelink-custom.com/beta/vbeta.json"); ?></p> |
25 | 25 | <p><?php if(file_exists(base_path("vbeta.json"))) {echo "Installed beta version= " . file_get_contents(base_path("vbeta.json"));} else {echo "Installed beta version= none";} ?></p> |
26 | 26 | <p><?php if($Vgit > $Vlocal) {echo "You need to update to the latest mainline release";} else {echo "You're running the latest mainline release";} ?></p> |
27 | 27 | @else |
|
34 | 34 | </div> |
35 | 35 | @else |
36 | 36 | @if(env('JOIN_BETA') === true) |
37 | | - <p><?php echo "latest beta version= " . file_get_contents("https://update.littlelink-custom.com/beta/vbeta.json"); ?></p> |
| 37 | + <p><?php echo "latest beta version= " . external_file_get_contents("https://update.littlelink-custom.com/beta/vbeta.json"); ?></p> |
38 | 38 | <p><?php if(file_exists(base_path("vbeta.json"))) {echo "Installed beta version= " . file_get_contents(base_path("vbeta.json"));} else {echo "Installed beta version= none";} ?></p> |
39 | 39 | <p><?php if($Vgit > $Vlocal) {echo "You need to update to the latest mainline release";} else {echo "You're running the latest mainline release";} ?></p> |
40 | 40 | @else |
|
72 | 72 |
|
73 | 73 | // Download the zip file |
74 | 74 |
|
75 | | -$latestversion = trim(file_get_contents("https://version.littlelink-custom.com/")); |
| 75 | +$latestversion = trim(external_file_get_contents("https://version.littlelink-custom.com/")); |
76 | 76 |
|
77 | 77 | if(env('JOIN_BETA') === true){ |
78 | 78 | $fileUrl = 'https://update.littlelink-custom.com/beta/'. $latestversion . '.zip'; |
|
135 | 135 |
|
136 | 136 | <?php // Get update preperation script from GitHub |
137 | 137 | try { |
138 | | - $file = file_get_contents('https://pre-update.littlelink-custom.com'); |
| 138 | + $file = external_file_get_contents('https://pre-update.littlelink-custom.com'); |
139 | 139 | $newfile = base_path('resources/views/components/pre-update.blade.php'); |
140 | 140 | file_put_contents($newfile, $file); |
141 | 141 | } catch (exception $e) {} |
|
215 | 215 | </div> |
216 | 216 | <h1>Success!</h1> |
217 | 217 | @if(env('JOIN_BETA') === true) |
218 | | - <p><?php echo "latest beta version= " . file_get_contents("https://update.littlelink-custom.com/beta/vbeta.json"); ?></p> |
| 218 | + <p><?php echo "latest beta version= " . external_file_get_contents("https://update.littlelink-custom.com/beta/vbeta.json"); ?></p> |
219 | 219 | <p><?php if(file_exists(base_path("vbeta.json"))) {echo "Installed beta version= " . file_get_contents(base_path("vbeta.json"));} else {echo "Installed beta version= none";} ?></p> |
220 | 220 | <p><?php if($Vgit > $Vlocal) {echo "You need to update to the latest mainline release";} else {echo "You're running the latest mainline release";} ?></p> |
221 | 221 | @else |
|
0 commit comments