mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-01-19 10:40:33 +01:00
33f7fd1d7b
Migliorie minori
25 lines
467 B
PHP
Executable File
25 lines
467 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[0].' ('.$result[1].')');
|
|
|
|
echo $result[0];
|
|
|
|
break;
|
|
|
|
case 'upload':
|
|
include DOCROOT.'/modules/aggiornamenti/upload_modules.php';
|
|
|
|
break;
|
|
}
|