1
0
www.mikescher.com/www/pages/api_updatecheck.php

15 lines
403 B
PHP
Raw Normal View History

2017-11-09 17:43:34 +01:00
<?php
global $OPTIONS;
require_once (__DIR__ . '/../internals/base.php');
2017-11-20 17:15:12 +01:00
require_once (__DIR__ . '/../internals/programs.php');
2017-11-09 17:43:34 +01:00
$name = $OPTIONS['name'];
2018-01-27 00:35:13 +01:00
$updatedata = Programs::listUpdateData();
2017-11-09 17:43:34 +01:00
2017-11-20 17:15:12 +01:00
if (! array_key_exists($name, $updatedata)) httpError(404, 'Invalid Request - [Name] not found');
2017-11-09 17:43:34 +01:00
2017-11-20 17:15:12 +01:00
$data = $updatedata[$name];
2017-11-09 17:43:34 +01:00
print($data['Name']."<hr>".$data['Version']."<hr>".$data['Link']);