mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-02-03 16:43:09 -08:00
16 lines
375 B
PHP
16 lines
375 B
PHP
<?php
|
|
// Init
|
|
error_reporting(NULL);
|
|
ob_start();
|
|
session_start();
|
|
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
|
|
|
|
if ($_SESSION['user'] == 'admin') {
|
|
exec (VESTA_CMD."v-delete-cron-vesta-autoupdate", $output, $return_var);
|
|
$_SESSION['error_msg'] = __('Autoupdate has been successfully disabled');
|
|
unset($output);
|
|
}
|
|
|
|
header("Location: /list/updates/");
|
|
exit;
|