autoupdates

This commit is contained in:
Serghey Rodin 2014-04-16 02:26:45 +03:00
commit 44d907f202
8 changed files with 284 additions and 0 deletions

View file

@ -0,0 +1,15 @@
<?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 susscessfully disabled');
unset($output);
}
header("Location: /list/updates/");
exit;