mirror of
https://github.com/myvesta/vesta.git
synced 2024-12-12 07:01:47 -08:00
20 lines
470 B
PHP
20 lines
470 B
PHP
<?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);
|
|
$_SESSION['error_msg'] = __('Cronjob email reporting has been successfully disabled');
|
|
unset($output);
|
|
|
|
header("Location: /list/cron/");
|
|
exit;
|