mirror of
https://github.com/devcode-it/openstamanager.git
synced 2024-12-29 17:21:54 +01:00
25 lines
441 B
PHP
Executable File
25 lines
441 B
PHP
Executable File
<?php
|
|
|
|
include_once __DIR__.'/../../core.php';
|
|
|
|
use Models\Cache;
|
|
use Modules\Aggiornamenti\UpdateHook;
|
|
|
|
$id = post('id');
|
|
|
|
switch (filter('op')) {
|
|
case 'check':
|
|
$result = UpdateHook::isAvailable();
|
|
|
|
Cache::get('Ultima versione di OpenSTAManager disponibile')->set($result);
|
|
|
|
echo $result;
|
|
|
|
break;
|
|
|
|
case 'upload':
|
|
include DOCROOT.'/modules/aggiornamenti/upload_modules.php';
|
|
|
|
break;
|
|
}
|