openstamanager/modules/aggiornamenti/actions.php

23 lines
376 B
PHP
Executable File

<?php
include_once __DIR__.'/../../core.php';
use Modules\Aggiornamenti\UpdateHook;
$id = post('id');
switch (filter('op')) {
case 'check':
$result = UpdateHook::isAvailable();
UpdateHook::update($result);
echo $result;
break;
case 'upload':
include DOCROOT.'/modules/aggiornamenti/upload_modules.php';
break;
}