1
0
mirror of https://github.com/serghey-rodin/vesta.git synced 2025-03-12 04:36:25 -07:00

20 lines
470 B
PHP
Raw Normal View History

2014-09-24 02:52:24 +03:00
<?php
// Init
error_reporting(NULL);
ob_start();
session_start();
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
// Check token
if ((!isset($_GET['token'])) || ($_SESSION['token'] != $_GET['token'])) {
header('location: /login/');
exit();
}
exec (VESTA_CMD."v-delete-cron-reports ".$user, $output, $return_var);
2014-09-24 02:52:24 +03:00
$_SESSION['error_msg'] = __('Cronjob email reporting has been successfully disabled');
unset($output);
2014-09-24 02:52:24 +03:00
header("Location: /list/cron/");
exit;