Updated services and fixed minor bugs.

This commit is contained in:
Alexander 2021-10-28 10:55:00 +03:00
commit 2a12fec5ea
90 changed files with 1706 additions and 3 deletions

View file

@ -0,0 +1,28 @@
<?php
// Init
error_reporting(NULL);
ob_start();
session_start();
header('Content-Type: application/json');
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
$message = '';
$error = '';
// Check token
if ((!isset($_GET['token'])) || ($_SESSION['token'] != $_GET['token'])) {
exit();
}
if ($_SESSION['user'] == 'admin') {
exec (VESTA_CMD."v-delete-cron-vesta-autoupdate", $output, $return_var);
$message = __('Autoupdate has been successfully disabled');
unset($output);
}
$result = array(
'message' => $message,
'error' => $error
);
print json_encode($result);