Files
VestaCP/web/delete/cron/autoupdate/index.php

16 lines
375 B
PHP
Raw Normal View History

2014-04-16 02:26:45 +03:00
<?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);
2014-07-22 18:31:02 +02:00
$_SESSION['error_msg'] = __('Autoupdate has been successfully disabled');
unset($output);
2014-04-16 02:26:45 +03:00
}
header("Location: /list/updates/");
exit;